Atlas - olddefconfig.py

Home / ext / kconfiglib Lines: 1 | Size: 761 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1#!/usr/bin/env python3 2 3# Copyright (c) 2018-2019, Ulf Magnusson 4# SPDX-License-Identifier: ISC 5 6""" 7Updates an old .config file or creates a new one, by filling in default values 8for all new symbols. This is the same as picking the default selection for all 9symbols in oldconfig, or entering the menuconfig interface and immediately 10saving. 11 12The default input/output filename is '.config'. A different filename can be 13passed in the KCONFIG_CONFIG environment variable. 14 15When overwriting a configuration file, the old version is saved to 16<filename>.old (e.g. .config.old). 17""" 18import kconfiglib 19 20 21def main(): 22 kconf = kconfiglib.standard_kconfig(__doc__) 23 print(kconf.load_config()) 24 print(kconf.write_config()) 25 26 27if __name__ == "__main__": 28 main() 29
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.