From d95355880a66fcbdb056031425288d29a9e6691f Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Tue, 8 Mar 2011 00:09:11 +0000 Subject: Fix compilation if CONFIG_INTERNAL=no Fix compilation if everything except CONFIG_SATAMV is no. Do not compile in PCI support for wiki printing if no PCI devices are supported. Corresponding to flashrom svn r1278. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Michael Karcher --- flashrom.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'flashrom.c') diff --git a/flashrom.c b/flashrom.c index cfb8e5f..34248ed 100644 --- a/flashrom.c +++ b/flashrom.c @@ -1186,11 +1186,12 @@ notfound: if (!flash || !flash->name) return NULL; - if (programmer_table[programmer].map_flash_region == physmap) { +#if CONFIG_INTERNAL == 1 + if (programmer_table[programmer].map_flash_region == physmap) snprintf(location, sizeof(location), "at physical address 0x%lx", base); - } else { + else +#endif snprintf(location, sizeof(location), "on %s", programmer_table[programmer].name); - } msg_cinfo("%s chip \"%s %s\" (%d KB, %s) %s.\n", force ? "Assuming" : "Found", -- cgit v1.1