[Buildroot] [Question] How is the kconfig parser working ?

Thomas De Schampheleire patrickdepinguin at gmail.com
Mon May 19 14:59:27 UTC 2014


Hi Frank,

(please use plaintext-only mail, no html or mixed mail)

On Mon, May 19, 2014 at 3:01 PM, Frank Ihle <frank.ihle at hs-offenburg.de> wrote:
> Hi everyone,
>
> I'd like to parse some packages in the Buildroot directory and their
> dependencies.
>
> I've seen that BR is using the lxdialog. I already got it running to load
> the "config.in"s with my own frontends. But what I couldn't figure out is
> how to get the information of a specific package, e.g.: how can I trigger
> the parser to print all names and dependencies of the packages e.g. in the
> "audio/video" section? Is it even possible to parse all of the Config.in
> easily? The "conf_parse()" in zconf.y looks like to me it is parsing the
> .config and not the Config.in - but maybe I got this part wrong.
>
> I guess this would lead to a long answer, therefor maybe you can just point
> me to the right direction, like: where BR itself uses this functionality, an
> example, or a helpful link in the internet.

Buildroot is not using this directly, but are you aware that there is
a kconfiglib python module, that is for example used by the
gen-manual-lists.py script? See support/scripts/ for that. Maybe it
can be useful to you.

Best regards,
Thomas


More information about the buildroot mailing list