From 57bbcb3dff99f5eeba390ccd216cd4306107582b Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Tue, 26 May 2020 22:39:47 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41744 Reviewed-by: Angel Pons Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- util/sconfig/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util') diff --git a/util/sconfig/main.c b/util/sconfig/main.c index 3e3bd17098..0d8f7f86af 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -889,9 +889,6 @@ static void emit_chip_headers(FILE *fil, struct chip *chip) { struct chip *tmp = chip; - fprintf(fil, "#include \n"); - fprintf(fil, "#include \n"); - while (chip) { if (chip->chiph_exists) 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, "#include \n\n"); + fprintf(autogen, "#include \n"); + fprintf(autogen, "#include \n\n"); + emit_chips(autogen); walk_device_tree(autogen, autohead, &base_root_dev, inherit_subsystem_ids); -- cgit v1.2.3