diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-03-08 00:09:11 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2011-03-08 00:09:11 +0000 |
commit | b752d04bf3a801e4a0cb23b33a921b840f53c846 (patch) | |
tree | af6f2f08a9143e40a5b7862426ca644d8985e65a /print_wiki.c | |
parent | 00848e4f8d07b43564023a83a264a06c55760f0d (diff) | |
download | flashrom-b752d04bf3a801e4a0cb23b33a921b840f53c846.tar.gz |
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.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1278 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'print_wiki.c')
-rw-r--r-- | print_wiki.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |