summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-08-30 08:37:59 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-08-30 09:13:22 +0200
commit66832138bfb0e82190b55fb410104d969cbc829b (patch)
treeac7868a32943182e849f0efb6a3755c99d35c859 /kconfiglib.py
parent78682a8e3c4fefffec281f13168cec5c297827bb (diff)
Allow user values on 'option env' symbols
Gets rid of a check, doesn't hurt. The check was added before 'option env' was changed to just add a 'default' under the hood. Note: New Kconfig code doesn't need 'option env'. Environment variables are now expanded directly, including in the C tools. 'option env' is only maintained for backwards compatibility.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index 1d6a1e3..b7b5c24 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -3754,15 +3754,8 @@ class Symbol(object):
"assignment ignored"
.format(TRI_TO_STR[value] if value in (0, 1, 2) else
"'{}'".format(value),
- _name_and_loc(self),
- TYPE_TO_STR[self.orig_type]))
-
- return False
+ _name_and_loc(self), TYPE_TO_STR[self.orig_type]))
- if self.env_var is not None:
- self.kconfig._warn("ignored attempt to assign user value to "
- "{}, which is set from the environment"
- .format(_name_and_loc(self)))
return False
if self.orig_type in (BOOL, TRISTATE) and value in ("n", "m", "y"):