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>
This commit is contained in:
Kyösti Mälkki
2013-06-11 17:00:11 +03:00
committed by Marc Jones
parent ef561a5582
commit 6aeb4a269c
79 changed files with 7 additions and 114 deletions

View File

@ -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)