diff options
| author | ulfalizer <ulfalizer@gmail.com> | 2015-02-16 21:05:53 +0100 |
|---|---|---|
| committer | ulfalizer <ulfalizer@gmail.com> | 2015-02-16 21:05:53 +0100 |
| commit | cad5853418f4d080e6191e92f0f5d8042d0f8ea8 (patch) | |
| tree | 39147bb38ab4c154ba3c8e57e2895f0de38f7acc | |
| parent | ce84c22e58fa59cb93679d4ead03c3cd1387965e (diff) | |
| parent | e04bb5772dbcbcd50ee517c232256f2bee00ee11 (diff) | |
Merge pull request #13 from jsitnicki/ignore-allnoconfig
Warn about and ignore the "allnoconfig_y" Kconfig option
| -rw-r--r-- | kconfiglib.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 743d48f..0ea81b6 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1324,6 +1324,11 @@ error, and you should e-mail kconfiglib@gmail.com. filename, linenr) + elif tokens.check(T_ALLNOCONFIG_Y): + self._warn("the 'allnoconfig_y' option is not supported.", + filename, + linenr) + else: _parse_error(line, "unrecognized option.", filename, linenr) @@ -2017,8 +2022,8 @@ def _make_and(e1, e2): T_OPTIONAL, T_PROMPT, T_DEFAULT, T_BOOL, T_TRISTATE, T_HEX, T_INT, T_STRING, T_DEF_BOOL, T_DEF_TRISTATE, - T_SELECT, T_RANGE, T_OPTION, T_ENV, - T_DEFCONFIG_LIST, T_MODULES, T_VISIBLE) = range(0, 38) + T_SELECT, T_RANGE, T_OPTION, T_ALLNOCONFIG_Y, T_ENV, + T_DEFCONFIG_LIST, T_MODULES, T_VISIBLE) = range(0, 39) # Keyword to token map keywords = { @@ -2050,6 +2055,7 @@ keywords = { "select" : T_SELECT, "range" : T_RANGE, "option" : T_OPTION, + "allnoconfig_y" : T_ALLNOCONFIG_Y, "env" : T_ENV, "defconfig_list" : T_DEFCONFIG_LIST, "modules" : T_MODULES, |
