From c9c27bb14e7acb8a1df39561662b0fab725266bd Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Fri, 5 Aug 2016 18:15:06 -0600 Subject: sconfig: Remove mainboard chip.h support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mainboard chip.h files were (mostly) removed long ago. Change-Id: I1d5a9381945427c96868fa17756e6ecabb1048b2 Signed-off-by: Martin Roth Reviewed-on: https://review.coreboot.org/16080 Tested-by: build bot (Jenkins) Reviewed-by: Kyösti Mälkki Reviewed-by: Patrick Georgi --- util/sconfig/main.c | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) (limited to 'util/sconfig') diff --git a/util/sconfig/main.c b/util/sconfig/main.c index a4271aa0cf..9bf2db1476 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -40,11 +40,7 @@ static struct device mainboard = { .id = 0, .chip = &mainboard, .type = chip, -#ifdef MAINBOARDS_HAVE_CHIP_H - .chiph_exists = 1, -#else .chiph_exists = 0, -#endif .children = &root }; @@ -538,34 +534,24 @@ static void inherit_subsystem_ids(FILE *file, struct device *dev) static void usage(void) { - printf("usage: sconfig vendor/mainboard devicetree_file output_file\n"); + printf("usage: sconfig devicetree_file output_file\n"); exit (1); } enum { - MAINBOARD_ARG = 1, - DEVICEFILE_ARG, + DEVICEFILE_ARG = 1, OUTPUTFILE_ARG}; -#define ARG_COUNT 4 +#define ARG_COUNT 3 int main(int argc, char** argv) { if (argc != ARG_COUNT) usage(); - char *mainboard = argv[MAINBOARD_ARG]; char *devtree = argv[DEVICEFILE_ARG]; char *outputc = argv[OUTPUTFILE_ARG]; headers.next = 0; -#ifdef MAINBOARDS_HAVE_CHIP_H - if (scan_mode == STATIC_MODE) { - headers.next = malloc(sizeof(struct header)); - headers.next->name = malloc(strlen(mainboard)+12); - headers.next->next = 0; - sprintf(headers.next->name, "mainboard/%s", mainboard); - } -#endif FILE *filec = fopen(devtree, "r"); if (!filec) { @@ -619,9 +605,6 @@ int main(int argc, char** argv) { walk_device_tree(autogen, &root, pass0, NULL); fprintf(autogen, "\n/* pass 1 */\n" "ROMSTAGE_CONST struct device * ROMSTAGE_CONST last_dev = &%s;\n", lastdev->name); -#ifdef MAINBOARDS_HAVE_CHIP_H - fprintf(autogen, "static ROMSTAGE_CONST struct mainboard_config ROMSTAGE_CONST mainboard_info_0;\n"); -#endif walk_device_tree(autogen, &root, pass1, NULL); fclose(autogen); -- cgit v1.2.3