diff options
| author | ulfalizer <ulfalizer@gmail.com> | 2015-03-13 01:04:08 +0100 |
|---|---|---|
| committer | ulfalizer <ulfalizer@gmail.com> | 2015-03-13 01:04:08 +0100 |
| commit | 5cc87664ae6fe0b05b6f2d3cc98aae864f9eafb0 (patch) | |
| tree | 9d475f7735d0ff7202ffee933fade87ee1d22de3 /kconfiglib.py | |
| parent | cad5853418f4d080e6191e92f0f5d8042d0f8ea8 (diff) | |
| parent | 589d9b7fc305848df64b73eeac6bdfd76de7ce34 (diff) | |
Merge pull request #14 from philipc/linux-3.19
Fixes to make testsuite pass
Diffstat (limited to 'kconfiglib.py')
| -rw-r--r-- | kconfiglib.py | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 0ea81b6..152c7af 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1060,7 +1060,7 @@ class Config(): choice.block = self._parse_block(line_feeder, T_ENDCHOICE, choice, - None, + deps, visible_if_deps) choice._determine_actual_symbols() @@ -1325,9 +1325,12 @@ error, and you should e-mail kconfiglib@gmail.com. linenr) elif tokens.check(T_ALLNOCONFIG_Y): - self._warn("the 'allnoconfig_y' option is not supported.", - filename, - linenr) + if not isinstance(stmt, Symbol): + _parse_error(line, + "the 'allnoconfig_y' option is only valid for symbols.", + filename, + linenr) + stmt.allnoconfig_y = True else: _parse_error(line, "unrecognized option.", filename, linenr) @@ -2765,6 +2768,11 @@ class Symbol(Item, _HasVisibility): and sym.get_parent().get_selection() is sym'.""" return self.is_choice_symbol_ and self.parent.get_selection() is self + def is_allnoconfig_y(self): + """Returns True if the symbol has the 'allnoconfig_y' option set; + otherwise, returns False.""" + return self.allnoconfig_y + def __str__(self): """Returns a string containing various information about the symbol.""" return self.config._get_sym_or_choice_str(self) @@ -2862,6 +2870,9 @@ class Symbol(Item, _HasVisibility): # Does the symbol get its value from the environment? self.is_from_env = False + # Does the symbol have the 'allnoconfig_y' option set? + self.allnoconfig_y = False + def _invalidate(self): if self.is_special_: return |
