coreboot-kgpe-d16/util/sconfig
Tim Wawrzynczak ba4a4909a8 sconfig: Split up sconfig-generated static.h
Currently sconfig generates a `static.h` to accompany
`static.c`. However, some payloads may decide they would like to consume
the FW_CONFIG macros as well. The current state of `static.h` makes this
impossible (relying on `device/device.h`).

This patch splits up `static.h` into 3 files: `static.h,
`static_devices.h`, and `static_fw_config.h`. `static.h` simply includes
the other two `.h` files to ensure no changes are needed to other
code. `static_devices.h` contains the extern'd definitions of the device
names recently introduced to sconfig.  `static_fw_config.h` contains the
FW_CONFIG_FIELD_* macros only, which makes it easily consumable by a
payload which wishes to use FW_CONFIG.

Also refactor the generation of all these output files, as the code was
getting messy.

Change-Id: Ie0f4520ee055528c7be84d1d1e2dcea113ea8b5f
Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45667
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
2020-10-26 06:54:16 +00:00
..
Makefile.inc
description.md
lex.yy.c_shipped sconfig: Allow chipset to provide a base devicetree 2020-10-09 23:25:46 +00:00
main.c sconfig: Split up sconfig-generated static.h 2020-10-26 06:54:16 +00:00
sconfig.h sconfig: Allow chipset to provide a base devicetree 2020-10-09 23:25:46 +00:00
sconfig.l sconfig: Allow chipset to provide a base devicetree 2020-10-09 23:25:46 +00:00
sconfig.tab.c_shipped sconfig: Allow chipset to provide a base devicetree 2020-10-09 23:25:46 +00:00
sconfig.tab.h_shipped sconfig: Allow chipset to provide a base devicetree 2020-10-09 23:25:46 +00:00
sconfig.y sconfig: Allow chipset to provide a base devicetree 2020-10-09 23:25:46 +00:00