diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2013-06-11 17:00:11 +0300 |
---|---|---|
committer | Marc Jones <marc.jones@se-eng.com> | 2013-06-24 17:22:44 +0200 |
commit | 6aeb4a269c2ded6e6f72bf87da12b9295ef903f7 (patch) | |
tree | 053e42ac6389de837492bb531b1da93b52e06cef /util/sconfig | |
parent | ef561a5582963b21d098e671cfb83ac7bb4819a1 (diff) | |
download | coreboot-6aeb4a269c2ded6e6f72bf87da12b9295ef903f7.tar.xz |
AMD: Drop empty root_complex
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 <kyosti.malkki@gmail.com>
Reviewed-on: http://review.coreboot.org/3434
Tested-by: build bot (Jenkins)
Reviewed-by: Marc Jones <marc.jones@se-eng.com>
Diffstat (limited to 'util/sconfig')
-rw-r--r-- | util/sconfig/main.c | 9 |
1 files changed, 7 insertions, 2 deletions
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) |