summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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.
2019-03-06genconfig: Get rid of DESCRIPTION variableUlf Magnusson
Used in a single place.
2019-03-06Fix typo in commentUlf Magnusson
2019-02-23Make 10.38.0 releasev10.38.0Ulf Magnusson
Adds a small documentation improvement in commit 99a7af7 ("Document that kconfig_filenames keeps absolute paths as-is").
2019-02-23Fix spelling in commentUlf Magnusson
2019-02-23Shorten Symbol/Choice.referenced()Ulf Magnusson
Use a set comprehension.
2019-02-23Shorten __repr__() and __str__() code a bitUlf Magnusson
2019-02-20Document that kconfig_filenames keeps absolute paths as-isUlf Magnusson
Came up in https://github.com/ulfalizer/Kconfiglib/issues/67.
2019-02-11Make 10.37.0 releasev10.37.0Ulf Magnusson
Adds a utility for setting configuration values from the command line, in commit 22d3cc3 ("setconfig: Add script").
2019-02-11setconfig: Add scriptUlf Magnusson
This is a simple script for updating configuration values from the command line, with (optional) checking that the assigned value matches the actual symbol value afterwards (which it might not if there are unsatisfied dependencies). Sample usage: $ setconfig FOO_SUPPORT=y BAR_BITS=8 This is useful for patching the configuration in automated build systems, in a way that's safer than directly patching configuration files.
2019-01-15setup.cfg formatting nitUlf Magnusson
2019-01-15Bump latest version to 10.36.0 in READMEUlf Magnusson
Forgot when pushing out the release.