Re: [PATCH] [ANNOUNCE] kconfig: Kconfiglib: a flexible Python Kconfig parser
From: Ulf Magnusson <hidden>
Date: 2011-02-03 21:59:07
On Wed, Feb 02, 2011 at 12:27:52AM +0100, Ulf Magnusson wrote:
Hi, This is the initial release of Kconfiglib: a Python library for scripting, debugging, and extracting information from Kconfig-based configuration systems. It can be used to programmatically generate a .config when the '*conf' tools are too inflexible, to quickly find out interesting information about a Kconfig configuration such as dependency relations between symbols and where undefined symbols are referenced, and in applications that need to parse and extract information from Kconfig files. For a much longer introduction including multiple examples, see arch/kconfig/kconfiglib.py. Have fun! Signed-off-by: Ulf Magnusson <redacted> --- Convenience links: Documentation, generated from kconfiglib.py with pydoc -w: http://dl.dropbox.com/u/10406197/kconfiglib.html Examples as separate files: http://dl.dropbox.com/u/10406197/kconfiglib-examples.tar.gz The patch should be preferably be applied to a recent kernel, i.e. Linus's (2.6.38-rc3 at the time of writing). Due to recent Kconfig changes, the kconfigtest.py test suite - which compares output character-for-character - will indicate failure on older (a few months old) kernels versions even though the outputs are functionally equivalent. [...]
Seems linux-kbuild and linux-doc won't accept the patch (too large?), so here's a link to the message on linux-kernel: https://lkml.org/lkml/2011/2/1/439 /Ulf Magnusson