summaryrefslogtreecommitdiff
path: root/allnoconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-11-17 09:21:13 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2018-11-17 19:03:36 +0100
commitb65baa47f69ae4c3993876a7edf0da0075aa70ff (patch)
tree2f4c7b4c7b54c7a97ed125d488e27ab351f2bc96 /allnoconfig.py
parenteb83890ae60be8509be1e42fe706d268e5b7f80d (diff)
Add support for KCONFIG_ALLCONFIG
This allows some symbol values to be forced while running all{def,no,yes,mod}config.py. See Documentation/kbuild/kconfig.txt in the Linux kernel. Add a helper function load_allconfig() to Kconfiglib to avoid code duplication in the tools. Also add functions for enabling/disabling the warning that's generated when a symbol is assigned multiple times in a (set of) .config files and the values differ. It should be disabled when merging the KCONFIG_ALLCONFIG configuration file. Previously, only the warning generated when the assigned values are identical could be disabled. Disable all warnings related to assigning a symbol multiple times in examples/merge_config.py as well.
Diffstat (limited to 'allnoconfig.py')
-rwxr-xr-xallnoconfig.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/allnoconfig.py b/allnoconfig.py
index 4e1c228..1ef6e27 100755
--- a/allnoconfig.py
+++ b/allnoconfig.py
@@ -30,9 +30,11 @@ def main():
# accept 0/1/2, for n/m/y). The assignments will be ignored for other
# symbol types, which is what we want.
kconf.disable_warnings()
-
for sym in kconf.unique_defined_syms:
sym.set_value(2 if sym.is_allnoconfig_y else 0)
+ kconf.enable_warnings()
+
+ kconfiglib.load_allconfig(kconf, "allno.config")
kconf.write_config(kconfiglib.standard_config_filename())