From f9b158ebb3d81c923461981d2b087989c284c2d4 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 30 May 2018 21:18:49 +0200 Subject: Add tool helper for loading/saving .config files Removes repeated KCONFIG_CONFIG boilerplate. Also make allyesconfig use KCONFIG_CONFIG when writing (oversight), and document the sys.exit() behavior for standard_kconfig(). --- allnoconfig.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'allnoconfig.py') diff --git a/allnoconfig.py b/allnoconfig.py index a840ea6..f90cb28 100755 --- a/allnoconfig.py +++ b/allnoconfig.py @@ -28,11 +28,7 @@ def main(): if sym.orig_type in BOOL_TRI: sym.set_value(2 if sym.is_allnoconfig_y else 0) - config_filename = os.environ.get("KCONFIG_CONFIG") - if config_filename is None: - config_filename = ".config" - - kconf.write_config(config_filename) + kconf.write_config(kconfiglib.standard_config_filename()) if __name__ == "__main__": main() -- cgit v1.2.3