diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-30 21:18:49 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-30 21:40:27 +0200 |
| commit | f9b158ebb3d81c923461981d2b087989c284c2d4 (patch) | |
| tree | 0720a09a931c0a241bb444077708389fa7efc035 /allnoconfig.py | |
| parent | 791b930930b9ddcb752c97c8a8ef859b7afbeb0e (diff) | |
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().
Diffstat (limited to 'allnoconfig.py')
| -rwxr-xr-x | allnoconfig.py | 6 |
1 files changed, 1 insertions, 5 deletions
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() |
