[coreboot] [PATCH]Kconfig for v2

Patrick Georgi patrick.georgi at coresystems.de
Wed Aug 5 17:21:27 CEST 2009


Hi,

I think it's time to push the Kconfig branch to trunk.

As the patch is ~1MB, I won't add it to the list, it is available from
https://www.coresystems.de/~patrick/20090805-5-kconfig

It's kconfig, a kbuild-style build system (quite similar, with a twist),
sconfig (a new tool to compile the devicetree structures that were in
the mainboard's Config.lb so far), and just enough Kconfig/Makefile
stuff to make kontron/986lcd-m and emulation/qemu-x86 work.
Everything else is stubbed or missing, and I expect that some of the
future changes will require some bigger changes and data moved between
the Kconfig files (in particular).

The patch doesn't affect abuild, except for ignoring "Kconfig" files in
the mainboard hierarchy (so it doesn't try to build
"emulation/Kconfig"), so there is no loss in functionality in the tree.

Kconfig has no support for non-CBFS boards, and that's on purpose: The
old rom layout is deprecated, and maintaining both systems would have
increased the effort.

Overview of the new files:

Makefile
contains the common rules, and machinery to import the Makefile
fragments from the tree. No more generated Makefiles (except inside gnu
make)

*/Makefile.inc
The various Makefile fragments

*/Kconfig
Configuration files, compatible to Linux's

util/kconfig
The Kconfig utilities

util/sconfig
compiles devicetree.cb files into data structures suitable for compilation

*/devicetree.cb
The devicetree that formerly resided in src/mainboard/*/*/Config.lb.
Just without the build system crap

util/xcompile
support utility to find a suitable cross compiler and various GNU tools


Regards,
Patrick




More information about the coreboot mailing list