summaryrefslogtreecommitdiffstats
path: root/print_wiki.c
diff options
context:
space:
mode:
Diffstat (limited to 'print_wiki.c')
-rw-r--r--print_wiki.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/print_wiki.c b/print_wiki.c
index 87adf4d..38505ed 100644
--- a/print_wiki.c
+++ b/print_wiki.c
@@ -25,6 +25,7 @@
#include "flash.h"
#include "flashchips.h"
+#if INTERNAL_SUPPORT == 1
struct board_info_url {
const char *vendor;
const char *name;
@@ -36,6 +37,7 @@ struct board_info_notes {
const char *name;
const char *note;
};
+#endif
const char *wiki_header = "= Supported devices =\n\n\
<div style=\"margin-top:0.5em; padding:0.5em 0.5em 0.5em 0.5em; \
@@ -44,6 +46,7 @@ Please do '''not''' edit these tables in the wiki directly, they are \
generated by pasting '''flashrom -z''' output.<br />\
'''Last update:''' %s(generated by flashrom %s)\n</small></div>\n";
+#if INTERNAL_SUPPORT == 1
const char *chipset_th = "{| border=\"0\" style=\"font-size: smaller\"\n\
|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
! align=\"left\" | Southbridge\n! align=\"left\" | PCI IDs\n\
@@ -69,6 +72,7 @@ or may not be added later.\n\n\
Mainboards which don't appear in the list may or may not work (we don't \
know, someone has to give it a try). Please report any further verified \
mainboards on the [[Mailinglist|mailing list]].\n";
+#endif
const char *chip_th = "{| border=\"0\" style=\"font-size: smaller\" \
valign=\"top\"\n|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
@@ -85,6 +89,7 @@ smaller\" valign=\"top\"\n|- bgcolor=\"#6699dd\"\n! align=\"left\" | Vendor\n\
! align=\"left\" | Device\n! align=\"left\" | PCI IDs\n\
! align=\"left\" | Status\n\n";
+#if INTERNAL_SUPPORT == 1
const char *laptop_intro = "\n== Supported laptops/notebooks ==\n\n\
In general, flashing laptops is more difficult because laptops\n\n\
* often use the flash chip for stuff besides the BIOS,\n\
@@ -505,6 +510,7 @@ void print_supported_boards_wiki(void)
wiki_helper("Known good (worked out of the box)", "OK", 1, laptops_ok);
wiki_helper("Not supported (yet)", "No", 1, laptops_bad);
}
+#endif
void print_supported_chips_wiki(void)
{
@@ -576,9 +582,11 @@ void print_supported_wiki(void)
time_t t = time(NULL);
printf(wiki_header, ctime(&t), flashrom_version);
+#if INTERNAL_SUPPORT == 1
print_supported_chips_wiki();
print_supported_chipsets_wiki();
print_supported_boards_wiki();
+#endif
printf("%s", programmer_section);
#if NIC3COM_SUPPORT == 1
print_supported_pcidevs_wiki(nics_3com);
OpenPOWER on IntegriCloud