From 6aeb4a269c2ded6e6f72bf87da12b9295ef903f7 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Tue, 11 Jun 2013 17:00:11 +0300 Subject: AMD: Drop empty root_complex MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are no files to build left under AMD nortbridge/x/root_complex directories. For some cases, even the Kconfig file was no longer sourced. Remove all such references and empty files. For devicetree.cb treat component paths with "/root_complex" in them valid even when the directory does not exists. This is because AMD boards us this dummy chip component as the root node in their devicetree.cb. The generated devicetree file static.c remains unchanged. Change-Id: I9278ebb50a83cebbf149b06afb5669899a8e4d0b Signed-off-by: Kyösti Mälkki Reviewed-on: http://review.coreboot.org/3434 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones --- util/sconfig/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'util/sconfig/main.c') diff --git a/util/sconfig/main.c b/util/sconfig/main.c index c3f2cdf872..03ba1ef60a 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -168,9 +168,14 @@ struct device *new_chip(struct device *parent, struct device *bus, char *path) { char *chip_h = malloc(strlen(path)+18); sprintf(chip_h, "src/%s", path); if ((stat(chip_h, &st) == -1) && (errno == ENOENT)) { - fprintf(stderr, "ERROR: Chip component %s does not exist.\n", + if (strstr(path, "/root_complex")) { + fprintf(stderr, "WARNING: Use of deprecated chip component %s\n", path); - exit(1); + } else { + fprintf(stderr, "ERROR: Chip component %s does not exist.\n", + path); + exit(1); + } } if (scan_mode == STATIC_MODE) -- cgit v1.2.3