From 3b692df8996f5ce55037f5340a6e92db8ad4df67 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 1 Oct 2018 03:52:32 +0200 Subject: olddefconfig: Add script Works like 'make olddefconfig', updating a configuration by filling in default values for all new symbols. This could also be accomplished by entering the 'menuconfig' interface and saving the configuration, but it's more awkward and less obvious. Piggyback two oldconfig changes: - Mention KCONFIG_CONFIG - Check if the .config file exists before parsing the Kconfig files, instead of after --- oldconfig.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'oldconfig.py') diff --git a/oldconfig.py b/oldconfig.py index 29ca533..956bc07 100755 --- a/oldconfig.py +++ b/oldconfig.py @@ -10,6 +10,9 @@ # aren't already set in the .config # 3. Write new .config # +# The default input/output filename is '.config'. A different filename can be +# passed in the KCONFIG_CONFIG environment variable. +# # Unlike 'make oldconfig', this script doesn't print menu titles and comments, # but gives Kconfig definition locations. Printing menus and comments would be # pretty easy to add: Look at the parents of each item and print all menu @@ -39,13 +42,11 @@ def _main(): # visible symbols. global conf_changed - kconf = standard_kconfig() - config_filename = standard_config_filename() if not os.path.exists(config_filename): sys.exit("{}: '{}' not found".format(sys.argv[0], config_filename)) - + kconf = standard_kconfig() kconf.load_config(config_filename) while True: -- cgit v1.2.3