summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-10-21Make 10.15.0 releasev10.15.0Ulf Magnusson
- Commit 9a4127a ("Allow programmatically expanding preprocessor functions with args") adds a Variable.expanded_value_w_args() function for calling preprocessor functions programmatically. Not being able to pass arguments to Variable.expanded_value was an oversight. - Commit 516deb4 ("menuconfig: Show the selected symbol for promptless choices") makes menuconfig show the selected symbol next to promptless choices in show-all mode. This is relevant for named choices defined in multiple locations. Some minor parsing optimizations are included as well.
2018-10-21Allow programmatically expanding preprocessor functions with argsUlf Magnusson
Add a Variable.expanded_value_w_args() function for expanding a preprocessor function with particular arguments. This is what expanded_value should have been, because expanded_value_w_args() is more general (expanded_value corresponds to zero arguments). Keep expanded_value for backwards compatibility though. Also add a simple __repr__() to Variable. It could show the expanded value, but that might mean calling shell functions or user-defined functions as a side effect (possibly with missing arguments). Not sure that's a good idea, so just show the unexpanded value.
2018-10-21Test _parse_block() blank line case earlierUlf Magnusson
Can be treated as just another case, and moved later so that the cases become sorted by frequency.
2018-10-21Sort _parse_properties() cases by frequencyUlf Magnusson
Use the Linux x86 Kconfig frequencies. Most cases were already sorted, but the blank line case was treated specially. 'imply' was checked too early too (though it's used more in some other projects).
2018-10-21Simplify node->item property copyingUlf Magnusson
Turn _add_props_to_sc() into _add_props_to_sym(), and handle choices separately, as they're trivial. This gets rid of some if's too.
2018-10-21menuconfig: Show the selected symbol for promptless choicesUlf Magnusson
If a choice is defined in multiple locations to add symbols, and show-all mode is turned on to reveal one of the promptless definitions, then it doesn't hurt to show the selected symbol next to it.
2018-10-21menuconfig: _node_str() simplification nitUlf Magnusson
2018-10-16Make 10.14.3 releasev10.14.3Ulf Magnusson
Adds commit 98af94d ("Make Kconfig.choices match its description"). Previously, Kconfig.choices was accidentally identical to Kconfig.unique_choices. It's now crappy as advertised, and keeps duplicates. Removing duplicates (while preserving order) was the original reason for adding Kconfig.unique_defined_syms and Kconfig.unique_choices. It'd be rare to need Kconfig.choices.
2018-10-16Make Kconfig.choices match its descriptionUlf Magnusson
Kconfig.choices has accidentally been identical to Kconfig.unique_choices all along, because named choices defined in multiple locations (which are pretty obscure) were only added once. Fix Kconfig.choices to match its description. This simplifies the code a bit too. Kconfig.unique_choices is usually what you want.
2018-10-16menuconfig: Use Kconfig.unique_choices in jump-toUlf Magnusson
Use Kconfig.unique_choices instead of Kconfig.choices in the jump-to dialog, as choices defined in multiple locations should only get their menu nodes added once (to avoid redundant entries). I noticed a related Kconfiglib issue while working on this: Kconfig.choices has been identical to Kconfig.unique_choices all long, so things were never actually broken. That means Kconfig.choices should be fixed to match its description though. The next commit will do that.
2018-10-15menuconfig: Simplify _sorted_menu_comment_nodes()Ulf Magnusson
Can use the same function for both sort keys, and the logic can be simplified a bit too. The += is deliberate, to do in-place modification.
2018-10-15Fix typo in _add_props_to_sc() commentUlf Magnusson
2018-10-14Make 10.14.2 releasev10.14.2Ulf Magnusson
Adds two small menuconfig improvements/fixes: - Commit 9a7b374 ("menuconfig: Fix some minor resizing jumpiness on gnome-terminal") - Commit 3d0dc9f ("menuconfig: Switch back to "very visible" cursor after Ctrl-F")
2018-10-14menuconfig: Fix some minor resizing jumpiness on gnome-terminalUlf Magnusson
gnome-terminal jerks a bit whenever the terminal is shrunk so that the row with the cursor on it disappears. This is probably gnome-terminal shoddiness, but it's pretty easy to work around by drawing stuff at the top last, so do it. No need to do it for the jump-to dialog, because the cursor is already in the edit box at the top there.
2018-10-14menuconfig: Switch back to "very visible" cursor after Ctrl-FUlf Magnusson
Was set back to "normal" instead due to a typo, which is inconsistent with the rest of the code.
2018-10-14menuconfig: Mention some ncurses ESCDELAY investigationUlf Magnusson
2018-10-14menuconfig: Mention some potential (though never seen) ESCDELAY iffinessUlf Magnusson
2018-10-14menuconfig: Mention that jump-to has been generalized in docstringUlf Magnusson
Can jump to choices, menus, and comments now as well.
2018-10-14Link ACRNUlf Magnusson
2018-10-14Make 10.14.1 releasev10.14.1Ulf Magnusson
Adds commit 63bbecb ("menuconfig: Fix crash when pressing Ctrl-F with no matches in jump-to dialog"). Ctrl-F is the view-help shortcut in the jump-to dialog.
2018-10-14menuconfig: Fix crash when pressing Ctrl-F with no matches in jump-to dialogUlf Magnusson
Ctrl-F is the jump-to dialog view-help shortcut. It needs to check whether there are any matches, like Enter/jump-to does.
2018-10-14Make 10.14.0 releasev10.14.0Ulf Magnusson
Adds two menuconfig improvements and a documentation improvement: - Commit 96682d7 ("menuconfig: Add jump-to for choices, menus, and comments") generalizes the jump-to feature so that choices, menus, and comments can be jumped to in addition to symbols (or into, in the case of choices and menus). - Commit fae2e70 ("menuconfig: Do not show range hint for symbols without ranges") despams the menuconfig interface and could potentially avoid some confusion. - Commit bde4cc7 ("Add some hints re. generating custom configuration output") adds some documentation hints re. using the Symbol.config_string field when generating custom output. It can be useful for pruning symbols even when the output format isn't .config-like.
2018-10-14menuconfig: Add jump-to for choices, menus, and commentsUlf Magnusson
For choices, search the name and the prompt. This is the same as for symbols, except names are optional (and rare) for choices. For menus and comments, search the prompt (title text). When jumping to a non-empty choice or menu, jump into it instead of jumping to its menu node. If show-all mode is off and there are visible items in the choice/menu, then jump to the first visible node. Otherwise, enable show-all and jump to the first node.
2018-10-13menuconfig: Do not show range hint for symbols without rangesUlf Magnusson
The 'no range constraints' input dialog hint for int/hex symbols might be more confusing than helpful, especially if you assume it was something the symbol author put there. Only show the range hint for symbols with active ranges instead, and show nothing for other symbols.
2018-10-13Add some hints re. generating custom configuration outputUlf Magnusson
It's not obvious that Symbol.config_string can be useful even when generating other output formats, as it provides a hook for _write_to_conf. Mention it in the 'config_string' documentation and in relevant parts of the README.
2018-10-10Make 10.13.0 releasev10.13.0Ulf Magnusson
Adds commit a247f3f ("menuconfig: Improve/fix promptless choice handling"), which fixes an obscure menuconfig crash involving symbols in promptless choices, and improves how choices are displayed in show-all/show-name mode a bit ('<choice (name, if any)>' instead of either nothing or '<name>').
2018-10-10menuconfig: Comment formatting nitsUlf Magnusson
2018-10-10menuconfig: Improve/fix promptless choice handlingUlf Magnusson
The code assumed that all parent (interface) menus always have a prompt, which is false for items in promptless choices. This lead to a crash e.g. when viewing the symbol information for a symbol within a promptless choice. Promptless choices with children can show up "legitimately" when people define choices in multiple locations to add symbols, though this is broken in the C tools. Use standard_sc_expr_str(node.item) instead of the non-existing prompt for promptless choices. That way they show up as <choice (name if any>)>, which is consistent with how they're shown elsewhere. This commit also changes how choices names are displayed in show-name/show-all mode, to the standard_sc_expr_str() format.
2018-10-08_shell_fn() comment nitUlf Magnusson
2018-10-08Remove redundant elifs in expr_value()Ulf Magnusson
Leftover from assigning a 'res' variable.
2018-10-07Remove useless local variable in _parse_factor()Ulf Magnusson
Not sure how I missed that one so long...
2018-10-06Make 10.12.0 releasev10.12.0Ulf Magnusson
Adds commit f1e4d04 ("menuconfig: Remove "Value for " prefix from input dialog titles"), which de-spams the menuconfig interface a bit. Some documentation fixes and improvements are included as well: - Commit 631c51f ("Point to IS_ENABLED() is README") - Commit f594975 ("Add hints on incremental building to 'getting started'") - Commit d044ee9 ("Clarify --config-out description a bit") - Commit 358b77a ("Hint that load_config() with replace=False is for merging") - Commit 5d15df9 ("Update genconfig usage description") The naming in some internal evaluation functions was cleaned up too.
2018-10-06Fix typo in READMEUlf Magnusson
2018-10-06Add hints on incremental building to 'getting started'Ulf Magnusson
2018-10-06Point to IS_ENABLED() is READMEUlf Magnusson
Might be tricky to discover.
2018-10-06Clean up naming in expr_value()Ulf Magnusson
Reuse the v1/v2 naming for the operands for the relation case, and call the relation variable 'rel' instead of 'op'. Piggy-back removal of the 'res' variable. Just as readable without it. Indirectly strips some locals.
2018-10-06Use a common variable name for deps in tri_valueUlf Magnusson
Might clarify the scopes a bit.
2018-10-06Update genconfig usage descriptionUlf Magnusson
Didn't mention --config-out.
2018-10-06Hint that load_config() with replace=False is for mergingUlf Magnusson
2018-10-05menuconfig: Fix Page Up typo in docstringUlf Magnusson
2018-10-05menuconfig: Remove "Value for " prefix from input dialog titlesUlf Magnusson
The prompt and type alone make it obvious, and it prevents many dialogs from getting overly wide.
2018-10-04Fix link to kconfig-language.txt in how-toUlf Magnusson
The link accidentally went to kconfig-macro-language.txt.
2018-10-03Clarify --config-out description a bitUlf Magnusson
2018-10-03README language nitUlf Magnusson
Remove some parentheses.
2018-10-03Make 10.11.0 releasev10.11.0Ulf Magnusson
Adds commit 4602028 ("genconfig: Allow writing a full .config without incremental build info"), which adds a flag to genconfig that might be handy in projects that include .config files in Makefiles but that don't use incremental build information.
2018-10-03genconfig: Allow writing a full .config without incremental build infoUlf Magnusson
For projects that don't use incremental build information, it's a bit wasteful to generate it just to get an updated .config file to include in Makefiles. Add a '--config-out <filename>' option that just writes the updated .config file, for those cases. Also remove a redundant default=None argument for --sync-deps. None is the default value.
2018-10-03Clarify '# CONFIG_FOO is not set' in how-toUlf Magnusson
2018-10-03Make 10.10.2 releasev10.10.2Ulf Magnusson
Just adds commit 4af2ac3 ("Actually fix README RST display on PyPI").
2018-10-03Actually fix README RST display on PyPIUlf Magnusson
Use anonymous hyperlinks to avoid having two links named 'Kconfig', like in commit fe28703 ("Fix README RST display on PyPI").
2018-10-03Make 10.10.1 releasev10.10.1Ulf Magnusson
Just adds commit fe28703 ("Fix README RST display on PyPI").