From a539f3f5e772930fdc8b1d2fb11201802dfde8c1 Mon Sep 17 00:00:00 2001 From: hailfinger Date: Sat, 15 May 2010 15:04:37 +0000 Subject: Fix assorted documentation, frontend and printing bugs. Change the command line interface to make file names positional. Add more sanity checks to the command line parser. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Michael Karcher git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@998 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- print_wiki.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'print_wiki.c') 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\
\ '''Last update:''' %s(generated by flashrom %s)\n
\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); -- cgit v1.2.1