summaryrefslogtreecommitdiff
path: root/kconfiglib.py
AgeCommit message (Collapse)Author
2012-12-10Remove _Feed.is_at_end().Ulf Magnusson
Unused.
2012-12-10Register refs. for symbols on the RHS of =/!=.Ulf Magnusson
Omission.
2012-12-10Copy less when searching for symbols.Ulf Magnusson
2012-12-10Do less copying of _Blocks.Ulf Magnusson
Make _parse_block/file() take an optional parameter that is a _Block to to add items to. This also cleans up the code a bit.
2012-12-10Fix outdated comment.Ulf Magnusson
2012-12-10Update references to old Linux versions.Ulf Magnusson
2012-12-10Put _make_and/or() globally.Ulf Magnusson
Preparation for later clean-up.
2012-12-10Put _get_expr_syms() globally.Ulf Magnusson
Preparation for later clean-up.
2012-12-10Simplify dependency generation and improve caching.Ulf Magnusson
- Get rid of Config.dep. Store direct dependencies in Symbol.dep instead. - Use recursive _get_dependent() calls in _get_dependent() to make best use of caching. This roughly doubles the speed of allnoconfig_simpler.py.
2012-12-09Clarify purpose of _build_dep().Ulf Magnusson
2012-12-09Avoid registering symbols for junk after a T_HELP token.Ulf Magnusson
2012-12-09Remove get_sibling_symbols/items().Ulf Magnusson
Can easily be had with Choice.get_items(), Menu.get_symbols/items(), and get_top_level_items(), and the interface is getting a bit cluttered. Scream if you were using this. :)
2012-12-09Make get_referenced_symbols() include symbols from ranges.Ulf Magnusson
Previously only included symbols from the condition for ranges.
2012-12-09Add note about internal APIs.Ulf Magnusson
2012-12-09Clarify _get_dependent() documentation.Ulf Magnusson
2012-12-09Spell nit.Ulf Magnusson
2012-12-09Make introduction less verbose.Ulf Magnusson
2012-12-08Register dependencies from ranges.Ulf Magnusson
Oversight.
2012-12-08Avoid getting 'self' as a dependency.Ulf Magnusson
Harmless but pointless.
2012-12-08Add _get_dependent() note.Ulf Magnusson
2012-12-08Reuse cached deps from other symbols in _get_dependent().Ulf Magnusson
Speeds up allnoconfig_simpler.py by 30%.
2012-12-08Cache the list of dependent symbols.Ulf Magnusson
Will speed things up if a user value is set more than once on a symbol. Also, return the result as a list, which should be quicker to iterate through.
2012-12-08Remove warning for assigning to symbol without prompt.Ulf Magnusson
Annoying when running allnoconfig_simpler.py.
2012-12-08Arrange _tokenize() cases by frequency.Ulf Magnusson
Now arranged by the frequency different cases are encountered while parsing the x86 configuration (likely the same as for all archs). Gives a small speed-up. Also get rid of an unnecessary sym_chars membership test and add/fix some comments.
2012-12-07Use consistent style for tuple unpacking.Ulf Magnusson
2012-12-07Use a frozenset for string_lex.Ulf Magnusson
2012-12-07Small simplification.Ulf Magnusson
2012-12-07Fix get_menus() ordering w.r.t. nested menus.Ulf Magnusson
Menus were being added in the order of their 'endmenu's instead of the order of their 'menu's.
2012-12-07Clarify ordering with get_actual_items().Ulf Magnusson
2012-12-06Add Choice.get_help().Ulf Magnusson
Oversight.
2012-12-06Clarify eval() and always use transform_m = True.Ulf Magnusson
The old version was a bit confusing, and it's probably best to always handle expressions like for conditionals.
2012-12-06Clarify documentation for 'Choice'.Ulf Magnusson
2012-12-06Get rid of _eval_to_int().Ulf Magnusson
Was always called for things guaranteed not to be expressions, so it was an all around waste.
2012-12-06Clarify and tighten up get_assignable_values().Ulf Magnusson
Also get rid of the kludgey _is_assignable_bool_or_tristate().
2012-12-06Clarify and tighten up get_lower/upper_bound().Ulf Magnusson
2012-12-06Clarify and tighten up is_modifiable().Ulf Magnusson
2012-12-06Clean up is_modifiable().Ulf Magnusson
2012-12-06Move examples into separate directory.Ulf Magnusson
2012-12-06Spell nit.Ulf Magnusson
2012-12-06Remove redundant variable.Ulf Magnusson
2012-12-06Remove some ugly redundant else's.Ulf Magnusson
2012-12-06Space out a bit.Ulf Magnusson
2012-12-06Add Config.n/m/y as aliases for Config.syms["n"/"m"/"y"].Ulf Magnusson
2012-12-06Fix _internal_error() call.Ulf Magnusson
2012-12-06Unconvolute evaluation of (in)equalities.Ulf Magnusson
2012-12-06Fix get_mainmenu_text() when none available.Ulf Magnusson
2012-12-06Only print Config.arch/srcarch if non-None.Ulf Magnusson
Also, Config.srctree cannot be None.
2012-12-04Improve some comments.Ulf Magnusson
2012-12-04Make $SRCARCH, $srctree, and the config filename queryable.Ulf Magnusson
Thanks to fpemud for spotting this.
2012-12-03add parent assignment for Choice objectfpemud