From b65baa47f69ae4c3993876a7edf0da0075aa70ff Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 17 Nov 2018 09:21:13 +0100 Subject: 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. --- alldefconfig.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'alldefconfig.py') diff --git a/alldefconfig.py b/alldefconfig.py index 8b5d105..2c0b3fb 100755 --- a/alldefconfig.py +++ b/alldefconfig.py @@ -16,8 +16,9 @@ import kconfiglib def main(): - kconfiglib.standard_kconfig().write_config( - kconfiglib.standard_config_filename()) + kconf = kconfiglib.standard_kconfig() + kconfiglib.load_allconfig(kconf, "alldef.config") + kconf.write_config(kconfiglib.standard_config_filename()) if __name__ == "__main__": main() -- cgit v1.2.3