From f35f03cd4181288d69f8a47b27cf53afbbc3c62b Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Wed, 30 May 2018 21:53:51 +0200 Subject: Add an alldefconfig.py script Will be packaged. Piggyback test suite cleanups to make test names match the name of the script being tested. --- alldefconfig.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 alldefconfig.py (limited to 'alldefconfig.py') diff --git a/alldefconfig.py b/alldefconfig.py new file mode 100755 index 0000000..fb8075c --- /dev/null +++ b/alldefconfig.py @@ -0,0 +1,17 @@ +#!/usr/bin/env python + +# Works like 'make alldefconfig'. Verified by the test suite to generate +# identical output to 'make alldefconfig' for all ARCHes. +# +# Usage for the Linux kernel: +# +# $ make [ARCH=] scriptconfig SCRIPT=Kconfiglib/alldefconfig.py + +import kconfiglib + +def main(): + kconfiglib.standard_kconfig().write_config( + kconfiglib.standard_config_filename()) + +if __name__ == "__main__": + main() -- cgit v1.2.3