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 --- print_wiki.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'print_wiki.c') diff --git a/print_wiki.c b/print_wiki.c index 7b354d9..8b13f70 100644 --- a/print_wiki.c +++ b/print_wiki.c @@ -246,6 +246,8 @@ static void print_supported_chips_wiki(int cols) printf("\n|}\n\n|}\n"); } +/* Not needed for CONFIG_INTERNAL, but for all other PCI-based programmers. */ +#if CONFIG_NIC3COM+CONFIG_NICREALTEK+CONFIG_NICNATSEMI+CONFIG_GFXNVIDIA+CONFIG_DRKAISER+CONFIG_SATASII+CONFIG_ATAHPT+CONFIG_NICINTEL_SPI+CONFIG_OGP_SPI+CONFIG_SATAMV >= 1 static void print_supported_pcidevs_wiki(const struct pcidev_status *devs) { int i = 0; @@ -262,6 +264,7 @@ static void print_supported_pcidevs_wiki(const struct pcidev_status *devs) (devs[i].status == NT) ? "?3" : "OK"); } } +#endif void print_supported_wiki(void) { -- cgit v1.1