summaryrefslogtreecommitdiff
path: root/menuconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-08-25 23:22:40 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-08-26 01:51:09 +0200
commit2320b7adb703c22e44ec9716a0d2605e80a02783 (patch)
treefeee0aae8378342aa5e7bd8f42cc7bb7516cb26c /menuconfig.py
parent932d0f7b8a69bdcac5d945de600ce6be807aeff7 (diff)
oldconfig: Use Kconfig.node_iter() and clean up
Some general cleanup: - Handle the iteration with the new Kconfig.node_iter() helper. This makes some function so short that they become pointless. Have just main() + oldconfig(node) + small helper functions. - Use _name_and_loc_str(sc) for choices too, so that all locations get reported for named choices defined in multiple locations - Rewrite the intro to be less wordy and remove the sample session (leftover from when oldconfig.py was in examples/, and not that exciting) - Print "Updated configuration written to..." instead of "Configuration saved to..." - Various other nits
Diffstat (limited to 'menuconfig.py')
-rwxr-xr-xmenuconfig.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/menuconfig.py b/menuconfig.py
index ee79864..25047f3 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -268,10 +268,7 @@ def _expr_str(expr):
# Custom expression printer that shows symbol values
return expr_str(expr, _name_and_val_str)
-
-# Entry point when run as an executable, split out so that setuptools'
-# 'entry_points' can be used. It produces a handy menuconfig.exe launcher on
-# Windows.
+# Note: Used as the entry point in setup.py
def _main():
menuconfig(standard_kconfig())