summaryrefslogtreecommitdiff
path: root/alldefconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-30 21:53:51 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-30 21:56:18 +0200
commitf35f03cd4181288d69f8a47b27cf53afbbc3c62b (patch)
treedbc48b4f8cf50a035ac2811d18e029f26116236b /alldefconfig.py
parent747cc16621c42671a4930bd907c8ba14678fad36 (diff)
Add an alldefconfig.py script
Will be packaged. Piggyback test suite cleanups to make test names match the name of the script being tested.
Diffstat (limited to 'alldefconfig.py')
-rwxr-xr-xalldefconfig.py17
1 files changed, 17 insertions, 0 deletions
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=<arch>] scriptconfig SCRIPT=Kconfiglib/alldefconfig.py
+
+import kconfiglib
+
+def main():
+ kconfiglib.standard_kconfig().write_config(
+ kconfiglib.standard_config_filename())
+
+if __name__ == "__main__":
+ main()