mirror of
https://review.coreboot.org/flashrom.git
synced 2025-07-02 14:33:18 +02:00
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 <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user