summaryrefslogtreecommitdiff
path: root/kconfiglib.py
AgeCommit message (Collapse)Author
2015-02-16Warn about and ignore the "allnoconfig_y" Kconfig optionJakub Sitnicki
A new option has appeared in Linux 3.15-rc1. Ignore it for now.
2013-08-07Add Symbol and Choice interfaces for getting prompt strings.Ulf Magnusson
2012-12-19Use regexes instead of frozensets to lex ids/keywords.Ulf Magnusson
Faster and a bit more readable.
2012-12-18Flesh out Symbol docstring.Ulf Magnusson
2012-12-18Flesh out Config docstring.Ulf Magnusson
2012-12-18Remove redundant invalidation from load_config().Ulf Magnusson
unset_user_values() will indirectly invalidate everything, so we don't need to do it ourselves.
2012-12-18Properly unescape .config string assignments.Ulf Magnusson
2012-12-18Simplify load_config() a bit.Ulf Magnusson
2012-12-18Escape \ and " when writing .config entries for strings.Ulf Magnusson
2012-12-17Tighten up string literal parsing a bit more.Ulf Magnusson
2012-12-17Fix comment re. fast path.Ulf Magnusson
2012-12-17Small simplification.Ulf Magnusson
2012-12-17Add a fast path for string literal lexing.Ulf Magnusson
Speeds up _tokenize() by ~20%.
2012-12-16Use 'while 1' instead of 'while True'.Ulf Magnusson
Bit faster (http://wiki.python.org/moin/PythonSpeed).
2012-12-16Use | and |= instead of set.union() and set.update().Ulf Magnusson
2012-12-16Mention UNAME_RELEASE in is_special() docstring.Ulf Magnusson
2012-12-16Remove redundant elif.Ulf Magnusson
2012-12-16Fix 'source' error message.Ulf Magnusson
2012-12-15Remove redundant newline.Ulf Magnusson
2012-12-15Spell nit.Ulf Magnusson
2012-12-15Remove unused variable.Ulf Magnusson
2012-12-15Add comment about m && MODULES rewriting.Ulf Magnusson
2012-12-15Remove redundant elif.Ulf Magnusson
2012-12-15Simplify _parse_error().Ulf Magnusson
2012-12-15Add optimization note for write_config().Ulf Magnusson
2012-12-15Optimize Symbol._make_conf().Ulf Magnusson
- Remove _should_write(). - Remove redundant get_value() calls.
2012-12-14Reference another example in the intro.Ulf Magnusson
2012-12-14Simplify _get_dependent().Ulf Magnusson
2012-12-14Remove superfluous variable in get_value().Ulf Magnusson
2012-12-14Clarify comment on the value of undefined symbols.Ulf Magnusson
2012-12-14Make _comment() preserve trailing newlines.Ulf Magnusson
2012-12-13Small get_value() clarification.Ulf Magnusson
2012-12-13Make _comment() correctly comment an empty line.Ulf Magnusson
2012-12-13Do not indent user-provided .config header.Ulf Magnusson
Inflexible.
2012-12-13Return constant instead.Ulf Magnusson
2012-12-13Fix loading of .config files with empty assignments.Ulf Magnusson
"CONFIG_FOO=" was broken because _strip_quotes() could not handle empty strings.
2012-12-13Rewrap some docstrings.Ulf Magnusson
2012-12-13Remove outdated comment.Ulf Magnusson
2012-12-13Add get_config() for Menu, Choice, and Comment.Ulf Magnusson
Omission.
2012-12-13Add Comment.get_visibility().Ulf Magnusson
Omission.
2012-12-13Rename Menu.get_depends_on_visibility() to Menu.get_visibility().Ulf Magnusson
2012-12-13Rename some APIs to be more consistent and intuitive.Ulf Magnusson
2012-12-13Get rid of some "in (" in favor of direct comparisons.Ulf Magnusson
Slightly faster and no less readable.
2012-12-13Clean up get_value() for hex/int and fix edge cases.Ulf Magnusson
If a range is active and no defaults are active, the low end of the range should be used for the default if no valid user value is set.
2012-12-12Rename kconfigtest.py to testsuite.py.Ulf Magnusson
2012-12-12Break encapsulation a bit to clarify code.Ulf Magnusson
Perhaps the public API should be properties instead of functions for things like .name that are very unlikely to not be static as well. Would take more work to document though.
2012-12-12Re-enable set_user_value() warning for symbols with no prompts.Ulf Magnusson
Disable warnings in allnoconfig_simpler.py instead.
2012-12-12Remove redundant check.Ulf Magnusson
2012-12-12Use 'type' instead of 'get_type()' internally.Ulf Magnusson
2012-12-12Always count non-bool/tristate symbols as 'n' in tristate context.Ulf Magnusson
Previously a string symbol that happened to have the value "y" would count as "y" in tristate context, which is incorrect.