summaryrefslogtreecommitdiff
path: root/examples/allyesconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2017-11-06 03:46:41 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2017-11-06 03:58:04 +0100
commitdccbad534a1ffe688d45810faf986ff79a0f3a41 (patch)
tree271ee08edfa561cd0d767387f2c1d3e059bffd0e /examples/allyesconfig.py
parentde6e57ff6dd4bab3d2a78f8d01b2bfecbd663fc4 (diff)
Clean up examples a bit
conf -> kconf, for consistency, plus various nits.
Diffstat (limited to 'examples/allyesconfig.py')
-rw-r--r--examples/allyesconfig.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/allyesconfig.py b/examples/allyesconfig.py
index b9210d3..a515196 100644
--- a/examples/allyesconfig.py
+++ b/examples/allyesconfig.py
@@ -2,7 +2,8 @@
# identical to 'make allyesconfig', for all ARCHES.
#
# This example is implemented a bit differently from allnoconfig.py to
-# demonstrate some other possibilities.
+# demonstrate some other possibilities. A variant similar to
+# allnoconfig_simpler.py could be constructed too.
#
# In theory, we need to handle choices in two different modes:
#
@@ -39,7 +40,7 @@ def all_choices(node):
(I was thinking of making a list of choices available directly in the API,
but I'm not sure it will always be needed internally, and I'm trying to
- spam the API with less seldom-used stuff compared to Kconfiglib 1.)
+ spam the API with less seldomly-used stuff compared to Kconfiglib 1.)
"""
res = []
@@ -75,8 +76,9 @@ while True:
choice.set_value(choice.assignable[-1])
changed = True
+ # For y-mode choices, we just let the choice get its default
+ # selection. For m-mode choices, we set all choice symbols to m.
if choice.tri_value == 1:
- # For m-mode choices, set all choice symbols to m
for sym in choice.syms:
sym.set_value(1)