Hi,
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 files: - 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@coresystems.de
Patrick Georgi wrote:
Signed-off-by: Patrick Georgi patrick.georgi@coresystems.de
Acked-by: Peter Stuge peter@stuge.se