
On Fri, Jun 12, 2015 at 6:56 PM, Ulf Magnusson ulfalizer@gmail.com wrote:
Corresponds to 2f319b8 in https://github.com/ulfalizer/Kconfiglib.
Fixes:
- Unset user values when loading a zero-byte .config. (5e54e2c)
- Ignore indented .config assignments. (f8a7510)
- Do not require $srctree to be set for non-kernel projects. (d56e9c1)
Also adds Python 3 support and has a lot of internal cleanup and optimization. Makes tools/genboardscfg.py run slightly faster.
Signed-off-by: Ulf Magnusson ulfalizer@gmail.com
tools/buildman/kconfiglib.py | 2898 +++++++++++++++++++----------------------- 1 file changed, 1329 insertions(+), 1569 deletions(-)
diff --git a/tools/buildman/kconfiglib.py b/tools/buildman/kconfiglib.py index 655cf44..e71f43e 100644 --- a/tools/buildman/kconfiglib.py +++ b/tools/buildman/kconfiglib.py @@ -36,57 +36,61 @@ Kconfig-based configuration systems. Features include the following:
[SNIP]
Adding __slots__ (https://docs.python.org/2/reference/datamodel.html#slots) to the Kconfiglib classes reduces the runtime of genboardscfg.py further from 1.6 to 1.4 seconds on my system, also saving a lot of memory. It'd remove some flexibility though (and breaks the kconfig-diff.py example), so it should probably be optional if I add it. Maybe genboardscfg.py is fast enough already.
/Ulf