summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-04-27Make 10.50.0 releasev10.50.0Ulf Magnusson
Adds a simple utility for initializing the configuration from an existing configuration, in commit 4f1674f ("defconfig: Add script").
2019-04-27defconfig: Add scriptUlf Magnusson
Simple script for initializing the configuration from an existing configuration file (usually a minimal configuration). Just copying the minimal configuration to .config would usually work, due to Kconfig semantics, but having it be a full configuration file from the start might be handier and less confusing.
2019-04-27Add link to Zephyr CI checksUlf Magnusson
Might be handy in other projects. Also clean up formatting a bit.
2019-04-26menuconfig: Style consistency nitsUlf Magnusson
2019-04-26Make 10.49.0 releasev10.49.0Ulf Magnusson
Improves menuconfig.py behavior slightly, in commit 61591f0 ("menuconfig: Improve space/enter behavior slightly").
2019-04-26menuconfig: Remove unused UNKNOWN importUlf Magnusson
2019-04-26menuconfig: Improve space/enter behavior slightlyUlf Magnusson
Space toggles value is possible, and enters menus otherwise. Enter works the other way around. Make this explicit in the code, which also fixes some corner cases, like space doing nothing on a y-selected menuconfig symbol.
2019-04-26menuconfig: Use "(Top)" instead of "(top menu)"Ulf Magnusson
Consistent with guiconfig.py and shorter.
2019-04-26menuconfig: Use 'orig_type' instead of 'type' where possibleUlf Magnusson
Symbol.type is only needed when there might be tristates demoted to bools due to modules being disabled. Symbol.orig_type is faster to read otherwise (no @property magic).
2019-04-26menuconfig: NitUlf Magnusson
Make a comment consistent with guiconfig.py.
2019-04-18Make 10.48.0 releasev10.48.0Ulf Magnusson
Improves save/load UI design in the menuconfig, in commit 90c5573 ("menuconfig: Remember last saved/loaded path and improve _conf_changed").
2019-04-18menuconfig: Remember last saved/loaded path and improve _conf_changedUlf Magnusson
Remember the last path that was manually saved/loaded instead of reverting back to standard_config_filename() (e.g. .config). Remember the path to the last saved minimal configuration separately as well. Also improve the _conf_changed behavior when loading a .config within the interface. Instead of always treating it as needing to be saved, check if it's outdated, like for the .config file loaded on startup. Also make the exit message ("No changes to save", etc.) always include the target .config file, which is helpful. Previously, only the save message did.
2019-04-17Make 10.47.0 releasev10.47.0Ulf Magnusson
Adds a (perhaps not noticeable) performance improvement to the menuconfig, in commit a47615f ("menuconfig: Prune _shown_nodes() recursion").
2019-04-17menuconfig: Prune _shown_nodes() recursionUlf Magnusson
When looking for visible children of invisible symbol nodes, _shown_nodes() was always recursing all the way out the leaf nodes. That's a ton of redundant work, though it doesn't seem to have lead to noticeable slowness (it does in the GUI menuconfig). Stop the search at symbol nodes with node.dep = n (from 'if'/'depends on'). Those can never have visible children, because node.dep gets propagated to prompts.
2019-04-17menuconfig: Style nitUlf Magnusson
Shorten a bit.
2019-04-17Make 10.46.1 releasev10.46.1Ulf Magnusson
Fixes a display issue for m/y-valued 'menuconfig' symbols with disabled optional prompts and visible children, in commit 37c6984 ("menuconfig: Fix display issue for optional-prompt menuconfigs").
2019-04-17menuconfig: _select_imply_info() style nitUlf Magnusson
2019-04-17menuconfig: Micro-optimize incremental searchUlf Magnusson
removing the matches.append lookup saves a few %, as measured with line_profiler. It's fast enough already on any reasonable machine, so it's a bit silly, but it's pretty trivial.
2019-04-17menuconfig: _jump_to_dialog() comment nitsUlf Magnusson
Make things a bit more compact.
2019-04-17menuconfig: Add missing 'return' in _select_selected_choice_sym()Ulf Magnusson
Won't affect behavior, but it was intended.
2019-04-17menuconfig: Fix display issue for optional-prompt menuconfigsUlf Magnusson
_shown_nodes() needs to check whether invisible 'menuconfig' symbols with optional prompts have visible children, so that they can be shown outside show-all mode. Previously, only 'config' symbols were checked.
2019-04-11menuconfig: Simplify _menu_path_info()Ulf Magnusson
2019-04-11Make 10.46.0 releasev10.46.0Ulf Magnusson
Makes menu paths shown in the menuconfig more informative, in commit 136c0e4 ("menuconfig: Include all parents in menu paths").
2019-04-11menuconfig: Include all parents in menu pathsUlf Magnusson
Previously, symbols not defined with 'menuconfig' with children weren't listed in the children's menu paths. It was deliberate, but it's probably an anti-feature in retrospect, because it can make it harder to find stuff by following the menu path. Don't try to be clever and just list all the parent nodes in the menu path.
2019-04-11menuconfig: Rename _try_set_locale() to try_set_locale()Ulf Magnusson
This function isn't defined at the module level.
2019-04-10Make 10.45.2 releasev10.45.2Ulf Magnusson
Adds a fix to avoid automatically turning on show-all in obscure cases when loading a .config file from within the menuconfig interface: commit 50173b2 ("menuconfig: Avoid needlessly turning on show-all in rare cases").
2019-04-10menuconfig: Rename _check_validity() to _check_valid()Ulf Magnusson
Bit shorter, as clear.
2019-04-10menuconfig: Code style nitsUlf Magnusson
2019-04-05menuconfig: Make comment re. preserving cursor position more accurateUlf Magnusson
Items being added above the selected item would mess with the cursor position too, if we didn't compensate.
2019-04-05menuconfig: Avoid needlessly turning on show-all in rare casesUlf Magnusson
Loading a new configuration with the cursor on an invisible item with visible children (can happen with optional prompts) would needlessly turn on show-all, even though such invisible items are always shown. Fix it by doing a more explicit check for whether the selected item shows up in the menu after loading the configuration, like _toggle_show_all() and _jump_to() do.
2019-04-05menuconfig: Fix typo in comment in _load_dialog()Ulf Magnusson
Show-all mode is turned on if the node becomes invisible. The comment said the opposite if you didn't include the parenthesis. Piggyback some code nits.
2019-04-04make 10.45.1 releasev10.45.1Ulf Magnusson
Fixes a minor menuconfig issue, in commit 08cfc33 ("menuconfig: Show menus with unsatisfied 'visible if' in red in show-all mode").
2019-04-04menuconfig: Show menus with unsatisfied 'visible if' in red in show-all modeUlf Magnusson
Previously they were shown in white, due to an oversight in _draw_main(). _draw_main() should use the same logic as _shown_nodes(). Move it into a separate _visible() function and call it from both.
2019-04-03menuconfig: Simplify show-all backwards searchUlf Magnusson
Roll the reversing into the slice.
2019-03-26olddefconfig: Fix typo in helpUlf Magnusson
filing -> filling
2019-03-24savedefconfig: Fix typo in helpUlf Magnusson
2019-03-24Make 10.45.0 releasev10.45.0Ulf Magnusson
Improves the savedefconfig help text a tiny bit, in commit 13f84c7 ("savedefconfig: Have '--out MINIMAL_CONFIGURATION' instead of '--out OUT'"). Also improves 'source' performance a bit.
2019-03-24Use 'from ... import ...' for os.path and glob stuffUlf Magnusson
These are clear in context without the module name, and it speeds up the 'source' code a tiny bit.
2019-03-22savedefconfig: Have '--out MINIMAL_CONFIGURATION' instead of '--out OUT'Ulf Magnusson
Small help text improvement.
2019-03-22Whitespace consistency nitUlf Magnusson
2019-03-22Make 10.44.0 releasev10.44.0Ulf Magnusson
Makes more documentation available via pydoc(3), in commit c70a45e ("Convert some comments to module docstrings in utilities").
2019-03-22Convert some comments to module docstrings in utilitiesUlf Magnusson
This makes running pydoc(3) on the utilities helpful. Reuse the module docstring for the --help text for utilities that use argparse. Also fix some copy-paste errors in the all*config.py descriptions and clean up the language a bit. Piggyback removal of an optimization in allmodconfig.py that's pretty irrelevant now.
2019-03-22README nitUlf Magnusson
2019-03-21setup: Whitespace nitUlf Magnusson
Guess setuptools strictly isn't in the stdlib...
2019-03-21setup: Style nitsUlf Magnusson
2019-03-21menuconfig: Whitespace nitUlf Magnusson
2019-03-20Make 10.43.0 releasev10.43.0Ulf Magnusson
Adds a new savedefconfig script in commit b7a1ea6 ("savedefconfig: Add script").
2019-03-20savedefconfig: Add scriptUlf Magnusson
Minimal configuration files can already be generated from within the menuconfig too, but having a script available can be handy for scripting.
2019-03-20menuconfig: Style nitsUlf Magnusson
2019-03-20Whitespace nitUlf Magnusson