[coreboot] [PATCH]Refactor sconfig

Patrick Georgi patrick at georgi-clan.de
Wed May 5 13:14:17 CEST 2010


attached patch moves all the device tree processing out of the parser
into a dedicated C source file.
It should help understanding what the parser is doing and thus help with
further sconfig development.

Unfortunately the patch isn't very readable, due to autogenerated code
(in the _shipped files), and because I svn-copied sconfig.y to the new
- sconfig.h (shared data structures)
- main.c (device tree handling, main())

The change also requires some modifications to the build. The more
general issue of cleaning up this area of the build system is registered
as ticket #160 (assigned to me).

I tested the patch by doing two full abuild runs (slightly modified to
only emit static.c), with and without the patch.
All mainboards' static.c were identical with or without the patch.

Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20100505-1-sconfig-refactoring
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20100505/c07c1381/attachment.ksh>

More information about the coreboot mailing list