summaryrefslogtreecommitdiff
path: root/kconfiglib.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-08-21 14:08:55 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-08-21 15:19:52 +0200
commitd78c293c41351256f76fb2fa27e72e399b130e4f (patch)
treef616c9dd51d83a1da72cfa6df21e4db37ae65c57 /kconfiglib.py
parentdb6cb68b74bc3a9f88f802a0f32613f95df7b854 (diff)
Make header symbol order match .config symbol order again
I accidentally broke this when I added the _defined_syms_set optimization. No semantic difference, but having the order match is more readable.
Diffstat (limited to 'kconfiglib.py')
-rw-r--r--kconfiglib.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/kconfiglib.py b/kconfiglib.py
index a01df27..fd114ea 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1020,7 +1020,8 @@ class Kconfig(object):
for sym in self._defined_syms_set:
sym._written = False
- for sym in self._defined_syms_set:
+ # Using 'defined_syms' gives us the same order as in .config files
+ for sym in self.defined_syms:
if not sym._written:
sym._written = True
# Note: _write_to_conf is determined when the value is
@@ -1151,7 +1152,8 @@ class Kconfig(object):
for sym in self._defined_syms_set:
sym._written = False
- for sym in self._defined_syms_set:
+ # Using 'defined_syms' gives us the same order as in .config files
+ for sym in self.defined_syms:
if not sym._written:
sym._written = True