summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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
2019-03-19menuconfig: Mention windows-curses in module docstringUlf Magnusson
People might miss it otherwise, and think they have to download and install the wheels manually.
2019-03-19menuconfig: Get rid of 'platform' importUlf Magnusson
Test for Windows with os.name == 'nt' instead. Saves around 10 ms of startup time.
2019-03-16Make 10.42.0 releasev10.42.0Ulf Magnusson
Adds a new style warning in commit df2d26f ("Warn for unquoted argument to 'source', etc.").
2019-03-16Fix link to Kconfig best practices pageUlf Magnusson
Got moved. Also link it in the 'Getting started' section.
2019-03-16menuconfig: Add generic window height/width helpersUlf Magnusson
Replace _menu_win_height() with two generic _height(win)/_width(win) helpers and use them for other windows as well. Makes things a bit easier to read.
2019-03-16Warn for unquoted argument to 'source', etc.Ulf Magnusson
Print a warning suggesting to add quotes for things like source foo/bar/Kconfig menu title prompt unquoted Example warning: Kconfig:32: warning: style: quotes recommended around 'lib/Kconfig.debug' in 'source lib/Kconfig.debug' That quoteless syntax is supported for compatibility with old versions of the C tools. It only works for a single word.
2019-03-14Make 10.41.0 releasev10.41.0Ulf Magnusson
Adds some minor optimization (and internal refactoring) in commit c0b9b07 ("Refactor and optimize type parsing a bit").
2019-03-14menuconfig: Fix some typos in commentsUlf Magnusson
2019-03-14oldconfig: Style nitUlf Magnusson
2019-03-14Comment nitUlf Magnusson
2019-03-14menuconfig: Put two blank lines between top-level functionsUlf Magnusson
Be consistent with the other utilities.
2019-03-14Put two blank lines between top-level functions/classesUlf Magnusson
Make kconfiglib.py consistent with the utilities.
2019-03-14Refactor and optimize type parsing a bitUlf Magnusson
Have BOOL/TRISTATE/... match _T_BOOL/_T_TRISTATE/... so that _set_type() doesn't have to do any conversion in the common case. Conversion is still needed for _T_DEF_BOOL/_T_DEF_TRISTATE/..., but those are rare. Also make use of UNKNOWN being falsy. Piggyback some rearranging of global constants so that related stuff appears closer together, for readability.
2019-03-14Clarify shutil lazy importUlf Magnusson
2019-03-10Make 10.40.0 releasev10.40.0Ulf Magnusson
Adds a silly small optimization in commit 8ddefea ("Import 'platform' and 'subprocess' as needed").
2019-03-10Import 'platform' and 'subprocess' as neededUlf Magnusson
Saves around 10 ms of startup time when they aren't, as measured with '-X importtime'.
2019-03-08Say 'implementation' instead of 'parser' in descriptionUlf Magnusson
Does more than just parsing.
2019-03-08Fix typo in kconfig_filenames docUlf Magnusson
2019-03-06listnewconfig: Remove redundant backslashUlf Magnusson
2019-03-06Code formatting nitUlf Magnusson
Make the exception argument to _KconfigIOError() harder to miss.
2019-03-06Make 10.39.0 releasev10.39.0Ulf Magnusson
- Commit 132e579 ("Give more helpful error messages when files are missing") makes the hint in error messages for missing files more helpful. - Commit faa4476 ("setconfig: Fix help text format") fixes the format of 'setconfig --help'. - Commit 553cca8 ("Use a consistent style in small utilities") and commit 66557ed ("Use a consistent style in examples") cleans the utilities and examples up a bit and removes some unused imports.
2019-03-06setconfig: Fix help text formatUlf Magnusson
Need to use RawDescriptionHelpFormatter to preserve newlines in the description. Also fix a typo in the help text (s/assignments/assignment/)
2019-03-06Give more helpful error messages when files are missingUlf Magnusson
The current error message talks a lot about $srctree, but $srctree is seldom the culprit in practice. More common is 'source "$(SOME_ENV_VAR)/foo"`, where SOME_ENV_VAR hasn't been set. Include the complete 'source ...' line for missing Kconfig files, and mention unset environment variables as a hint. Only mention $srctree briefly. Also shorten the message when a .config can't be a found a bit. This message would usually only be seen when working directly with the library.
2019-03-06Use a consistent style in examplesUlf Magnusson
Also remove some unused imports.
2019-03-06Use a consistent style in small utilitiesUlf Magnusson
Also remove some no longer used imports.