util/sconfig: Move default includes out of emit_chips()
This should make it easier to add more includes. Change-Id: Ib4a25352901408c2b36de4972391df742a0d8037 Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41744 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
d09459fe30
commit
57bbcb3dff
|
@ -889,9 +889,6 @@ static void emit_chip_headers(FILE *fil, struct chip *chip)
|
||||||
{
|
{
|
||||||
struct chip *tmp = chip;
|
struct chip *tmp = chip;
|
||||||
|
|
||||||
fprintf(fil, "#include <device/device.h>\n");
|
|
||||||
fprintf(fil, "#include <device/pci.h>\n");
|
|
||||||
|
|
||||||
while (chip) {
|
while (chip) {
|
||||||
if (chip->chiph_exists)
|
if (chip->chiph_exists)
|
||||||
fprintf(fil, "#include \"%s/chip.h\"\n", chip->name);
|
fprintf(fil, "#include \"%s/chip.h\"\n", chip->name);
|
||||||
|
@ -1347,6 +1344,9 @@ int main(int argc, char **argv)
|
||||||
fprintf(autohead, "#define __STATIC_DEVICE_TREE_H\n\n");
|
fprintf(autohead, "#define __STATIC_DEVICE_TREE_H\n\n");
|
||||||
fprintf(autohead, "#include <device/device.h>\n\n");
|
fprintf(autohead, "#include <device/device.h>\n\n");
|
||||||
|
|
||||||
|
fprintf(autogen, "#include <device/device.h>\n");
|
||||||
|
fprintf(autogen, "#include <device/pci.h>\n\n");
|
||||||
|
|
||||||
emit_chips(autogen);
|
emit_chips(autogen);
|
||||||
|
|
||||||
walk_device_tree(autogen, autohead, &base_root_dev, inherit_subsystem_ids);
|
walk_device_tree(autogen, autohead, &base_root_dev, inherit_subsystem_ids);
|
||||||
|
|
Loading…
Reference in New Issue