summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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").
2018-10-03Fix README RST display on PyPIUlf Magnusson
Use anonymous hyperlinks to avoid having two links named 'here', which RST apparently doesn't like. Related: https://stackoverflow.com/questions/5464627/how-to-have-same-text-in-two-links-with-restructured-text/14067756
2018-10-03Make 10.10.0 releasev10.10.0Ulf Magnusson
Gets the README updated from commit 534e3e7 ("Add a 'getting started' section to the README") up on PyPI.
2018-10-03Fix is/if typo in READMEUlf Magnusson
2018-10-03Mention that pip3 is needed for menuconfigUlf Magnusson
2018-10-03Add a 'getting started' section to the READMEUlf Magnusson
Might make it clearer how the different parts fit together. Also mention that deps/auto.conf can be used as Make input, and that it's preferable to using .config. This is hard to discover on your own.
2018-10-03Make 10.9.3 releasev10.9.3Ulf Magnusson
Adds commit 21e47ce ("Fix parse error message on the line after help texts"), which fixes incorrect line contents being reported for parse errors on the line after a help text.
2018-10-03Fix parse error message on the line after help textsUlf Magnusson
The correct error and line number was reported, but not the correct line contents. self._line needs to be set before calling _tokenize(), so that _parse_error() knows the context. There's no need to set self._line for empty lines, because we immediately end up back in _next_line() after parsing the help text, which refetches the empty line and updates self._line.
2018-10-02Link olddefconfig.py in the READMEUlf Magnusson
2018-10-02Mention documentation generation earlyUlf Magnusson
2018-10-02API should be stable by nowUlf Magnusson
2018-10-02Make 10.9.2 releasev10.9.2Ulf Magnusson
Adds some documentation nits: - 08abf44 ("Mention that pydoc works after installing with pip") - 6aaf01c ("Clean up documentation a bit re. named choice") - 6fe5198 ("menuconfig: Mark quit_dialog() as internal")
2018-10-02Mention that pydoc works after installing with pipUlf Magnusson
Also mention that menuconfig.py has documentation.
2018-10-02Clean up documentation a bit re. named choiceUlf Magnusson
Zephyr uses several named choices, and I've seen them in other projects now too, so don't imply that they aren't used. The menuconfig interface now has better support for them than the C tools too, where adding symbols by defining a choice in multiple locations is broken. Also remove a reference to Kconfiglib 1.
2018-10-02menuconfig: Mark quit_dialog() as internalUlf Magnusson
Oversight. The _ hides it from e.g. pydoc.
2018-10-02__slots__ formatting consistency nitUlf Magnusson
2018-10-01Make 10.9.1 releasev10.9.1Ulf Magnusson
Adds commit 43e7711 ("setup: Use a list instead of a tuple for 'classifiers'"), which fixes a setup.py issue on Python 3.7.
2018-10-01setup: Use a list instead of a tuple for 'classifiers'Ulf Magnusson
Fixes a warning on Python 3.7: Warning: 'classifiers' should be a list, got type 'tuple' Maybe it could prevent other issues too: https://github.com/pypa/pypi-legacy/issues/670
2018-10-01Make 10.9.0 releasev10.9.0Ulf Magnusson
Adds commit 3b692df ("olddefconfig: Add script"), which bundles a new script that mimics 'make olddefconfig'. This could also be accomplished by entering the menuconfig interface and saving, but its more awkward. Some minor internal documentation clarifications and cleanups are included as well: - Commit 53db3ee ("Clarify node_iter() documentation re. iteration order") - Commit c1dcaa3 ("Refactor parsing to get rid of _saved_line") - Commit 6aab113 ("Don't set filename and linenr on 'if' menu nodes")
2018-10-01olddefconfig: Add scriptUlf Magnusson
Works like 'make olddefconfig', updating a configuration by filling in default values for all new symbols. This could also be accomplished by entering the 'menuconfig' interface and saving the configuration, but it's more awkward and less obvious. Piggyback two oldconfig changes: - Mention KCONFIG_CONFIG - Check if the .config file exists before parsing the Kconfig files, instead of after
2018-10-01Don't set filename and linenr on 'if' menu nodesUlf Magnusson
There's no way to query them later, as 'if's get flattened and removed, and they're not needed during parsing either.
2018-09-29Clarify node_iter() documentation re. iteration orderUlf Magnusson
The old version might not have made it obvious that a node is visited before its children.
2018-09-29Refactor parsing to get rid of _saved_lineUlf Magnusson
Handle the line-after-help-text case specially, which allows _has_tokens (renamed to _reuse_tokens) to be used as the unget mechanism for help texts as well, leaving _saved_line unused. Move the _reuse_tokens check into _next_line(). This makes _parse_block() as straightforward as _parse_properties(), and simplifies _parse_properties() a tiny bit too by getting rid of the '_tokens_i = -1' assignment.
2018-09-28Fix comment formatting in help_grep.pyUlf Magnusson
Consistently indent with tabs, like in the actual output.
2018-09-27Use a consistent import style in the examplesUlf Magnusson
Do the PEP 8 ordering thingy with standard library imports first.
2018-09-27Simplify the defconfig and eval_expr examples a bitUlf Magnusson
Style nits.
2018-09-27Remove stray tab characterUlf Magnusson
2018-09-27Make 10.8.1 releasev10.8.1Ulf Magnusson
Adds commit c91e17c ("Give clearer errors for bad endchoice/endif/endmenu nesting"). Previously, an endchoice/endif/endmenu without a corresponding choice/if/menu generated a cryptic "unrecognized construct" error.
2018-09-27Unmatched endchoice/endif/endmenu formatting nitUlf Magnusson
Easier to read.
2018-09-27Give clearer errors for bad endchoice/endif/endmenu nestingUlf Magnusson
An endchoice/endif/endmenu with no corresponding choice/if/menu generated a cryptic 'unrecognized construct' parse error. Improve the error message so that the problem is pointed out explicitly: kconfiglib.KconfigError: Kconfig:37: couldn't parse 'endmenu': no corresponding 'menu' Reported in https://github.com/ulfalizer/Kconfiglib/issues/56.
2018-09-26Point out the Linux kernel Kconfigs being hugeUlf Magnusson
2018-09-23Fix formatting nit in user-defined Python function testsUlf Magnusson
2018-09-23Make 10.8.0 releasev10.8.0Ulf Magnusson
Adds support for user-defined preprocessor functions in Python, which can be used to get information from existing Python tools into Kconfig, e.g. to have Kconfig symbols depend on hardware information stored in some other format. See commit b6827ca ("Add support for user-defined Python preprocessor functions").
2018-09-23Add support for user-defined Python preprocessor functionsUlf Magnusson
Allow preprocessor functions to be defined in Python by putting a module called 'kconfigfunctions' into sys.path. Internally, this simply adds the functions to the predefined functions in Kconfig._functions. User-defined Python functions make it simple to integrate information from existing Python tools into Kconfig, e.g. to have Kconfig symbols depend on hardware information stored in some other format. This might be used to get device tree information into Kconfig in Zephyr. Piggyback module docstring documentation for some extensions that were previously only mentioned in the README.
2018-09-19menuconfig: Fix some nits reported by flake8Ulf Magnusson
- Remove some unused imports - Replace a lambda with a plain function - Shorten some long lines - Remove some redundant backslashes within brackets
2018-09-19Remove unused variable reported by flake8Ulf Magnusson
Also remove some redundant backslashes within brackets.
2018-09-15Update some examples to use node_iter()Ulf Magnusson
Simplifies the code. Should promote new APIs. Also fix list_undefined.py for recent kernels. More environment variables are referenced now.
2018-09-14menuconfig: Fix typo re. menuconfig()Ulf Magnusson
No idea where "menu." came from.
2018-09-14Make 10.7.0 releasev10.7.0Ulf Magnusson
Adds commit b9b2ebb ("menuconfig: Add RGB color support to styles."), which makes it possible to specify colors in MENUCONFIG_STYLE using #RRGGBB notation. The rendered colors may be more or less exact depending on terminal capabilities. In the best case, we can redefine colors. Otherwise, we fall back on the closest available color. Contributed by Mitja Horvat (punkfluid).
2018-09-14menuconfig: Reorganize code a bitUlf Magnusson
- Point out where the styling part starts and ends - Move _style_attr() into the styling part (by moving the comment) - Move _name_and_val_str() and _expr_str() to later in the file, closer to where they're used (mostly in the help dialog) - Turn _input_dialog() input handling into one if-elif-... chain, like for the other dialogs.
2018-09-14menuconfig: Fix a small symbol information display issueUlf Magnusson
Prevent the 'Symbol/choice/menu/comment information' title string from disappearing when it won't fit on the terminal. Piggyback some code nits: - Remove a redundant 'global _style' - Use 'elif' after checking for KEY_RESIZE - Consistently use '_sel_node_i = _menu_scroll = 0' to reset positions, e.g. when entering menus
2018-09-14menuconfig: RGB color implementation nitsUlf Magnusson
- Make the coding style a bit more consistent with the rest of the code - Allow colors to be allocated from the xterm 256-color grayscale range, and emulate it when dynamically allocating colors. Never allocate above color number 255 though, as anything there would be unknown territory. - Switch back to consistently passing tuples to functions. This was the original design, before I suggested changing it... - Remove some repeated information from docstrings and fix some small typos - Make use of the element1=element2 feature in the style definition for the 'default' style
2018-09-14menuconfig: Add RGB color support to styles.Mitja HORVAT
Styles can now take a HTML notation as a color value: - on terminals that support RGB color mode these are rendered perfeclty - on 256 color terminals the closes matching color is used - on other terminals, the current color palette is scanned and the closes matching color is used. This has few quirks Example: Use "pure" red as selection foreground and "pure" blue as background: MENUCONFIG_STYLE="selection=fg:#ff0000,bg:#0000ff" Additionally, it is possible to copy the style from other elements, for example: MENUCONFIG_STYLE="selection=fg:#ff0000,bg:#0000ff path=selection" In the notation above, the "path" style will be copied from "selection".
2018-09-09Make 10.6.1 releasev10.6.1Ulf Magnusson
Adds commit af6c8dc ("menuconfig: Fix some glitching on small terminals"), which fixes some minor graphical glitching in the menuconfig interface when the terminal is too small for things to fit. Commit 374f488 ("Clean up kernel Makefile patch and add new targets") adds some new targets to the Linux makefile patch as well, though the makefile patch isn't bundled on PyPI.
2018-09-09menuconfig: Menu drawing code nitUlf Magnusson
2018-09-09Mention the jump-to menuconfig functionality in the text tooUlf Magnusson
2018-09-09Replace all menuconfig screenshots with a single gif animationUlf Magnusson
Makes the README much less spammy.
2018-09-09menuconfig: Fix some glitching on small terminalsUlf Magnusson
- 'mainmenu' and dialog titles now get clipped instead of disappearing when they don't fit - Lines of text no longer wrap to the next line (this glitch was mostly hidden if something was printed on the next line) - Text in a dialog can no longer end up on top of the dialog's frame