summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-05-19Remove some comments re. setup.py entry pointsUlf Magnusson
Only appeared in two of the scripts, and main() is such a common convention anyway.
2019-05-19Make .config.old easier to discoverUlf Magnusson
Mention that the old version of an overwritten configuration file is saved to <filename>.old in a few different places, to make it easier to discover.
2019-05-19Add guiconfig to PHONY in Makefile patchUlf Magnusson
Oversight.
2019-05-19String repetition consistency nitUlf Magnusson
2019-05-19Comment nitUlf Magnusson
2019-05-14Add installation instructions for tkinterUlf Magnusson
Not installed by default on many Linux systems, despite being part of the Python standard library.
2019-05-11Make 11.3.0 releasev11.3.0Ulf Magnusson
Improves dependency-related documentation a bit, in commit 95b80e1 ("Clarify direct_dep and dep documentation").
2019-05-11Clarify direct_dep and dep documentationUlf Magnusson
- Mention that having no direct dependencies corresponds to having y direct dependencies - Remove the note about how direct_dep is used internally. It's also used for the select-with-unsatisfied-deps warning. - Remove the note about how checking direct_dep might be "redundant" since it's propagated. direct_dep can be useful in scripts still, and maybe it could scare people away from it. - Say 'surrounding menus and ifs' instead of of 'parent' in the 'dep' docstring - Fix two s/config/kconfig/ typos
2019-05-11Make 11.2.0 releasev11.2.0Ulf Magnusson
Improves documentation for the Symbol/Choice.referenced attribute, in commit 814e2de ("Improve the 'referenced' docstring").
2019-05-10Improve the 'referenced' docstringUlf Magnusson
- Point out why dependencies from surrounding if's and menus are included - Clarify that .referenced isn't transitive. Only "direct" references are included. - Give a hint about direct dependencies and expr_items() Prompted by https://github.com/ulfalizer/Kconfiglib/issues/69.
2019-05-10Link ESP-IDF scriptsUlf Magnusson
2019-05-10Do not set top_node location to location of 'mainmenu' statementUlf Magnusson
It's undocumented and unguessable that Kconfig.top_node.filename/linenr gets set to the location of the 'mainmenu' statement (if any). Always set it to the first line of the top-level Kconfig instead, which should be more expected.
2019-05-07guiconfig: Remove unused UNKNOWN importUlf Magnusson
2019-05-06guiconfig: Comment nitsUlf Magnusson
Move the global variable descriptions earlier, remove some redundant comments, and clarify that the Python 3-only comment in setup.py is talking about the terminal menuconfig.
2019-05-06guiconfig: Micro-optimize tree item creation some moreUlf Magnusson
Mostly to get things consistent with _update_jump_to_display().
2019-05-03Make 11.1.0 releasev11.1.0Ulf Magnusson
Adds a Python 2/3-compatible GUI menuconfig, in commit 9be6b7b ("guiconfig: Add a Tkinter-based menuconfig"). See that commit and the updated README for a longer description.
2019-05-03Mention where _USE_EMBEDDED_IMAGES isUlf Magnusson
2019-05-03Fix guiconfig.py linkUlf Magnusson
2019-05-03Fix guiconfig screenshot linkUlf Magnusson
2019-05-03guiconfig: Add a Tkinter-based menuconfigUlf Magnusson
This is a graphical configuration interface written in Tkinter. Like menuconfig.py, it supports showing all symbols (with invisible symbols in red) and jumping directly to symbols. Symbol values can also be changed directly from the jump-to dialog. When single-menu mode is enabled, a single menu is shown at a time, like in the terminal menuconfig. Only this mode distinguishes between symbols defined with 'config' and symbols defined with 'menuconfig'. Compatible with both Python 2 and Python 3. Has been tested on X11, Windows, and macOS. To avoid having to carry around a bunch of GIFs, the image data is embedded in guiconfig.py. To use separate GIF files instead, change _USE_EMBEDDED_IMAGES to False. The image files can be found in https://github.com/ulfalizer/Kconfiglib/tree/screenshots/guiconfig. A new `make guiconfig` target in the Makefile patch will run the GUI configuration interface on the Linux kernel.
2019-04-30Make 11.0.0 releasev11.0.0Ulf Magnusson
Simplifies the filename calculation for .old files, in commit 4fed39d ("Never prepend '.' to $KCONFIG_CONFIG.old"). This makes it reliable to refer to the backup file as $KCONFIG_CONFIG.old in scripts. This is a backwards-incompatible change when $KCONFIG_CONFIG is set to a filename that does not start with a '.', so the major version is increased. Note that $KCONFIG_CONFIG is usually set to <some path>/.config, so few people should be affected.
2019-04-30Never prepend '.' to $KCONFIG_CONFIG.oldUlf Magnusson
In retrospect, trying to be "helpful" by saving the old version of a $KCONFIG_CONFIG that does not start with a '.' as e.g. '.config.old' instead of 'config.old' is a bad idea, because it means that scripts can't rely on the backup file simply being called $KCONFIG_CONFIG.old. I spotted this causing compatibility issues in https://github.com/automate-lfs/jhalfs/commit/a645174fd43ba4eee84089965df85785878e7aa6. I had Vim backup files and the like in mind originally, but .config.old is much more likely to be processed by scripts. This is a small backwards compatibility break, so the major version will be increased to 11.
2019-04-28Make 10.51.0 releasev10.51.0Ulf Magnusson
Makes sync_deps() safe to use in threaded scripts, in commit a664a6d ("Avoid chdir()ing in sync_deps()").
2019-04-28Avoid chdir()ing in sync_deps()Ulf Magnusson
Temporarily changing the working directory is iffy if threads are involved, since other code will see the change. Seems like a generally rude thing for a random library function to do. dir_fd (open() relative to directory) is another option, but it's Python 3 only, only available on the low-level os.open() interface, and might not be universally supported.
2019-04-28Make 10.50.1 releasev10.50.1Ulf Magnusson
Fixes an obscure menuconfig display issue, in commit 4b387e0 ("menuconfig: Fix display issue for unsatisfied-deps selected symbol with children").
2019-04-28Remove redundant comment in _auto_menu_dep()Ulf Magnusson
Says the same thing the comment above it says.
2019-04-28menuconfig: Fix display issue for unsatisfied-deps selected symbol with childrenUlf Magnusson
A symbol with unsatisfied direct dependencies can end up with visible children in an implicit submenu if it is selected (though that generates a warning), so the optimization in _shown_nodes() isn't safe, and causes the child nodes to not be shown outside show-all mode. Just remove the optimization. Trying things out some more, everything's plenty fast enough anyway. Checking the direct dependencies of the parent instead would be safe.
2019-04-27menuconfig: Fix typo in docsUlf Magnusson
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