| Age | Commit message (Collapse) | Author |
|
Makes menu paths shown in the menuconfig more informative, in commit
136c0e4 ("menuconfig: Include all parents in menu paths").
|
|
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.
|
|
This function isn't defined at the module level.
|
|
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").
|
|
Bit shorter, as clear.
|
|
|
|
Items being added above the selected item would mess with the cursor
position too, if we didn't compensate.
|
|
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.
|
|
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.
|
|
Fixes a minor menuconfig issue, in commit 08cfc33 ("menuconfig: Show
menus with unsatisfied 'visible if' in red in show-all mode").
|
|
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.
|
|
Roll the reversing into the slice.
|
|
filing -> filling
|
|
|
|
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.
|
|
These are clear in context without the module name, and it speeds up the
'source' code a tiny bit.
|
|
Small help text improvement.
|
|
|
|
Makes more documentation available via pydoc(3), in commit c70a45e
("Convert some comments to module docstrings in utilities").
|
|
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.
|
|
|
|
Guess setuptools strictly isn't in the stdlib...
|
|
|
|
|
|
Adds a new savedefconfig script in commit b7a1ea6 ("savedefconfig: Add
script").
|
|
Minimal configuration files can already be generated from within the
menuconfig too, but having a script available can be handy for
scripting.
|
|
|
|
|
|
People might miss it otherwise, and think they have to download and
install the wheels manually.
|
|
Test for Windows with os.name == 'nt' instead. Saves around 10 ms of
startup time.
|
|
Adds a new style warning in commit df2d26f ("Warn for unquoted argument
to 'source', etc.").
|
|
Got moved.
Also link it in the 'Getting started' section.
|
|
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.
|
|
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.
|
|
Adds some minor optimization (and internal refactoring) in commit
c0b9b07 ("Refactor and optimize type parsing a bit").
|
|
|
|
|
|
|
|
Be consistent with the other utilities.
|
|
Make kconfiglib.py consistent with the utilities.
|
|
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.
|
|
|
|
Adds a silly small optimization in commit 8ddefea ("Import 'platform'
and 'subprocess' as needed").
|
|
Saves around 10 ms of startup time when they aren't, as measured with
'-X importtime'.
|
|
Does more than just parsing.
|
|
|
|
|
|
Make the exception argument to _KconfigIOError() harder to miss.
|
|
- 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.
|
|
Need to use RawDescriptionHelpFormatter to preserve newlines in the
description.
Also fix a typo in the help text (s/assignments/assignment/)
|