summaryrefslogtreecommitdiff
path: root/examples/defconfig_oldconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-08 11:11:26 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-08 11:14:57 +0100
commitbac2790485ad61cf8f06de4017ff8c88f652eca8 (patch)
tree0ba9e6e7752ec8a749c5f8febe98bd2977828bf4 /examples/defconfig_oldconfig.py
parentb6e79e39ed7a371f17a59ab992c8c0682da30209 (diff)
Add a release test script
Confirms that all the examples that aren't tested in the test suite at least run. Easy to miss brokenness there. Output can be inspected manually (it'll vary depending on the kernel version). Fix defconfig_oldconfig.py, which hadn't been properly updated for the new API.
Diffstat (limited to 'examples/defconfig_oldconfig.py')
-rw-r--r--examples/defconfig_oldconfig.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/defconfig_oldconfig.py b/examples/defconfig_oldconfig.py
index 8e72c8a..84aa134 100644
--- a/examples/defconfig_oldconfig.py
+++ b/examples/defconfig_oldconfig.py
@@ -15,23 +15,23 @@
import kconfiglib
import sys
-conf = kconfiglib.Kconfig(sys.argv[1])
+kconf = kconfiglib.Kconfig(sys.argv[1])
# Mirrors defconfig
-conf.load_config("arch/x86/configs/x86_64_defconfig")
-conf.write_config(".config")
+kconf.load_config("arch/x86/configs/x86_64_defconfig")
+kconf.write_config(".config")
# Mirrors the first oldconfig
-conf.load_config(".config")
-conf.syms["ETHERNET"].set_value(0)
-conf.write_config(".config")
+kconf.load_config(".config")
+kconf.syms["ETHERNET"].set_value(0)
+kconf.write_config(".config")
# Mirrors the second oldconfig
-conf.load_config(".config")
-conf.syms["ETHERNET"].set_value(2)
-for s in conf:
+kconf.load_config(".config")
+kconf.syms["ETHERNET"].set_value(2)
+for s in kconf.defined_syms:
if s.user_value is None and 0 in s.assignable:
s.set_value(0)
# Write the final configuration
-conf.write_config(".config")
+kconf.write_config(".config")