1#!/usr/bin/env python
2
3# SPDX-License-Identifier: ISC
4# Copyright (c) 2018, Ulf Magnusson
5
6# Works like 'make olddefconfig', updating an old .config file or creating a
7# new one by filing in default values for all new symbols. This is the same as
8# picking the default selection for all symbols in oldconfig, or entering the
9# menuconfig interface and immediately saving.
10#
11# The default output filename is '.config'. A different filename can be passed
12# in the KCONFIG_CONFIG environment variable.
13
14import os
15import sys
16
17import kconfiglib
18
19
20def main():
21    kconf = kconfiglib.standard_kconfig()
22    kconf.load_config()
23    kconf.write_config()
24
25
26if __name__ == "__main__":
27    main()
28