Sconfig: parse Kconfig options from devicetree.cb
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Mon, 5 Dec 2011 18:33:55 +0000 (20:33 +0200)
committerPatrick Georgi <patrick@georgi-clan.de>
Sat, 24 Dec 2011 11:25:12 +0000 (12:25 +0100)
commit472d9025e57a3afcd8af547df218db134253a56f
tree2f178216c6d1a53741d66678248e2b58187204c9
parentf28dbe0c5d299297029afe01bb7329c6c18ae3db
Sconfig: parse Kconfig options from devicetree.cb

Mainboard and chip Kconfig files have several build options that
are redundant with information in devicetree.cb. This patch enables
sconfig to auto-generate equivalent configuration.

  sconfig -s

Generates mainboard's static.c file, as before.

  sconfig -b

This operation creates mainboard's bootblock init code. By default,
for every chip listed in mainboard/devicetree.cb, if there is a
chip/bootblock.c file, the init function is called.
A mainboard/bootblock.c file can be added to override default
behaviour.

  sconfig -k

This operation generates select -options for component paths.

Change-Id: I808d44af552dbc5e0565d6a0f4f72c7be9f5740e
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/472
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
util/sconfig/main.c