summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-07-01Mention that passing subexpressions to expr_items() worksUlf Magnusson
Consistent with the other functions.
2019-07-01Use STR_TO_TRI for some n/m/y membership testsUlf Magnusson
20% faster lookup in line_profiler in _tokenize(). The test usually fails.
2019-06-28Remove stray comma in commentUlf Magnusson
2019-06-27Check for a symbol first in _finalize_tree(), and refactor a bitUlf Magnusson
Symbol is the most common case by far. Also rename _finalize_tree() to _finalize_node(), and make the explanation for what it does more specific. The recursion gets a bit tricky.
2019-06-27Remove redundant parens in set_value()Ulf Magnusson
2019-06-25Make 12.10.0 releasev12.10.0Ulf Magnusson
Adds commit 7403203 ("Make choice.set_value() no-change check work for "n"/"m"/"y" strings").
2019-06-25Make choice.set_value() no-change check work for "n"/"m"/"y" stringsUlf Magnusson
Same deal as in commit f2ac5e3 ("Make set_value() no-change check work for "n"/"m"/"y" strings"). Overlooked the similar logic for choices.
2019-06-24Make 12.9.0 releasev12.9.0Ulf Magnusson
Adds commit a7302a6 ("menuconfig/guiconfig: Use orig_defaults in symbol info").
2019-06-24menuconfig/guiconfig: Use orig_defaults in symbol infoUlf Magnusson
Forgot that they show defaults separately. Use orig_defaults instead of 'defaults' to de-spam it a bit. The direct dependencies are shown above the defaults.
2019-06-24Make 12.8.0 releasev12.8.0Ulf Magnusson
Adds commit 0ca8e78 ("Add {Symbol,Choice}.orig_*, corresponding to the MenuNode fields").
2019-06-24Add {Symbol,Choice}.orig_*, corresponding to the MenuNode fieldsUlf Magnusson
Getting defaults, select, implies, and ranges without dependencies propagated to conditions can be useful for symbols and choices as well, e.g. when generating standalone documentation for properties.
2019-06-24Factor out multiplication in expr_value()Ulf Magnusson
2019-06-23Remove some blank linesUlf Magnusson
2019-06-23Make 12.7.0 releasev12.7.0Ulf Magnusson
Adds commit 58c65e0 ("Make REL_TO_STR public").
2019-06-23Make REL_TO_STR publicUlf Magnusson
Generally useful, and not likely to need any internal hackery.
2019-06-23Shorten __repr__() functions a bitUlf Magnusson
Do 'add = fields.append'. Pointless as an optimization, but shaves some lines, and obvious in context. Also add test coverage for __repr__() for string symbols with user values.
2019-06-23Whitespace nitUlf Magnusson
2019-06-22Shorten choice parsing a tiny bitUlf Magnusson
2019-06-21Make 12.6.0 releasev12.6.0Ulf Magnusson
Makes set_value() smarter about saving redundant work, in commit f2ac5e3 ("Make set_value() no-change check work for "n"/"m"/"y" strings").
2019-06-21Clarify that set_value() takes a string for int/hexUlf Magnusson
Worth pointing out explicitly.
2019-06-21Make set_value() no-change check work for "n"/"m"/"y" stringsUlf Magnusson
Convert "n"/"m"/"y" to 0/1/2 earlier, so that e.g. sym.set_value("y") is recognized as a no-op when sym.user_value == 2. This also helps when loading several configuration files that assign some of the same symbols, because load_config() calls set_value() with "n"/"m"/"y". This could also cut down on the number of times a particular warning is displayed when loading lots of overlapping configuration files.
2019-06-21Clean up _load_config() a bitUlf Magnusson
- Reorganize symbol fetching to remove some duplicated _undef_assign() calls - Move duplicated assignment warning generation into an _assigned_twice() helper function
2019-06-15Use 'change' instead of 'convert' re. changing LC_CTYPEUlf Magnusson
Might be less confusing in the context of locales.
2019-06-15Make 12.5.0 releasev12.5.0Ulf Magnusson
Adds commit 0c79d23 ("menuconfig: Be silent when changing LC_CTYPE to a UTF-8 locale").
2019-06-15menuconfig: Be silent when changing LC_CTYPE to a UTF-8 localeUlf Magnusson
Having LC_ALL=C and the like in Makefiles is probably pretty common, to get consistent collation and messages from commands and stuff. It currently makes menuconfig.py spit out a warning about changing the locale to a UTF-8 locale though. Just remove the message, and silently change the locale. The Python 3.7 PEP 538 code is silent as well.
2019-06-15Move .close() to a better spot in _leave_file()Ulf Magnusson
2019-06-13Hint towards sym.config_string where _write_to_conf is usedUlf Magnusson
It's pretty subtle that sym.config_string can be used instead of the internal sym._write_to_conf variable in client code. Mention it in comments near where _write_to_conf is used. Seen client code access _write_to_conf a few times now. No plans to remove it though, so it'll most likely keep working.
2019-06-11Add Python 3.8 trove classifierUlf Magnusson
Tested, works fine.
2019-06-09Replace os.environ.get() with os.getenv()Ulf Magnusson
Same behavior, simpler.
2019-06-09Make 12.4.0 releasev12.4.0Ulf Magnusson
Adds a small error message improvement, in commit 49831dd ("Give the 'source ...' line being parsed when a file can't be opened").
2019-06-09Move macro-related $ later in regexesUlf Magnusson
Bit cleaner-looking.
2019-06-09Give the 'source ...' line being parsed when a file can't be openedUlf Magnusson
Helpful when env. variables are involved. Previously only shown when the file couldn't be found.
2019-06-09Move self._line setting into _tokenize()Ulf Magnusson
Factors out some common code.
2019-06-09Get test coverage for --help---- and the likeUlf Magnusson
Weirdly formatted _T_HELP tokens are supported for compatibility with old versions of the C tools. Also add a lone '#' after the tricky help text. Some reconsidered refactoring choked on that.
2019-06-09menuconfig/guiconfig: Clean up 'range' checking a bitUlf Magnusson
Just cosmetic.
2019-06-07genconfig: Code ordering nitUlf Magnusson
Match the order the flags are defined.
2019-06-07Make 12.3.0 releasev12.3.0Ulf Magnusson
Adds a genconfig feature that can be used to avoid needless reconfiguration, and improves the dumpvars output format. - Commit dd1be54 ("genconfig: Support generating lists of files and environment vars.") - Commit f503ea3 ("dumpvars: Make the output format copy-pasteable")
2019-06-07genconfig: Support generating lists of files and environment vars.Ulf Magnusson
This can be useful to avoid needless reconfiguration, by checking if any Kconfig file or environment variable has changed value before running genconfig.
2019-06-07dumpvars: Make the output format copy-pasteableUlf Magnusson
Have it write assignments on a single line that can be copy-pasted before a command.
2019-06-06Make 12.2.1 releasev12.2.1Ulf Magnusson
Adds commit 443e6bb ("menuconfig: Fix help display on Python 2").
2019-06-06menuconfig: Fix help display on Python 2Ulf Magnusson
textwrap.indent() was added in Python 3.3.
2019-06-06Move Linux kernel installation instructions before Python compat. sectionUlf Magnusson
2019-06-06Make 12.2.0 releasev12.2.0Ulf Magnusson
Do the opposite of what other people are doing and make menuconfig.py Python 2-compatible. Turns out it's not that tricky after all, and it makes everything consistently Python 2/3-compatible and streamlines things. - Commit 41b5891 ("menuconfig: Get rid of 'nonlocal'") - Commit b2e211d ("menuconfig: Fall back on getch() when get_wch() isn't available") - Commit c3162be ("menuconfig: Only decode curses.erasechar() on Python 3") - Commit fe6ed99 ("menuconfig: Import print_function for Python 2 compatibility") - Commit c209188 ("menuconfig: Have hashbang point to 'python' instead of 'python3'") - Commit d577865 ("Remove Python 3 menuconfig special-casing from Makefile patch") - Commit 319f7f0 ("Update various comments now that menuconfig is Python 2-compatible") - Commit 5fbd70e ("Update setup.py now that menuconfig is Python 2-compatible") Also investigate exactly what the Python version requirements are and tweak and document things a bit: - Commit e0baa79 ("Tweak python_requires to 2.7/3.2+") - Commit 3a772a6 ("Add a section on version compatibility to the README")
2019-06-06Update sample session in READMEUlf Magnusson
Make it reflect various output improvements added since it was written (e.g. 'depends on' not being shown on each property).
2019-06-06Add a section on version compatibility to the READMEUlf Magnusson
2019-06-06Tweak python_requires to 2.7/3.2+Ulf Magnusson
Many of the utilities need argparse, which was added in 3.2. Kconfiglib itself is compatible with 3.1.
2019-06-06Update setup.py now that menuconfig is Python 2-compatibleUlf Magnusson
Remove the Python 3 installation prereq for windows-curses, and another comment saying the menuconfig is Python 3 only.
2019-06-06Update various comments now that menuconfig is Python 2-compatibleUlf Magnusson
2019-06-06Remove Python 3 menuconfig special-casing from Makefile patchUlf Magnusson
Since it's now compatible with Python 2, it can use PYTHONCMD like the other targets.
2019-06-06menuconfig: Have hashbang point to 'python' instead of 'python3'Ulf Magnusson
Consistent with the other utilities, and now works even when 'python' is Python 2.