summaryrefslogtreecommitdiffstats
path: root/print_wiki.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-05-31 15:27:27 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-05-31 15:27:27 +0000
commit71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7 (patch)
treeecd2ba9f67c51b833d22051628b79ccb1dcde0a2 /print_wiki.c
parenta0020df6309e4536fcb97bd93bc46e2068f0ffe8 (diff)
downloadflashrom-71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7.tar.gz
flashrom-71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7.tar.bz2
flashrom-71127727dcff4f7e70b318d7a5eb87f0c8fcc4d7.zip
So far, we have up to 4 different names for the same thing (ignoring capitalization)
CONFIG_FT2232SPI (makefile config option) FT2232_SPI_SUPPORT (#define) ft2232spi (programmer name) ft2232_spi.c (programmer file) Use CONFIG_* with underscores for makefile config options and #defines and kill the useless _SUPPORT idiom. Use lowercase names with underscores for programmer names and programmer files. With this, you can run "grep -i ft2232_spi" and find everything related to the ft2232_spi driver. Same applies to all other programmers. Corresponding to flashrom svn r1023. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'print_wiki.c')
-rw-r--r--print_wiki.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/print_wiki.c b/print_wiki.c
index 3d51bfa76..d2fd02290 100644
--- a/print_wiki.c
+++ b/print_wiki.c
@@ -25,7 +25,7 @@
#include "flash.h"
#include "flashchips.h"
-#if INTERNAL_SUPPORT == 1
+#if CONFIG_INTERNAL == 1
struct board_info_url {
const char *vendor;
const char *name;
@@ -46,7 +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
+#if CONFIG_INTERNAL == 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\
@@ -89,7 +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
+#if CONFIG_INTERNAL == 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\
@@ -599,29 +599,29 @@ void print_supported_wiki(void)
time_t t = time(NULL);
printf(wiki_header, ctime(&t), flashrom_version);
-#if INTERNAL_SUPPORT == 1
+#if CONFIG_INTERNAL == 1
print_supported_chips_wiki(2);
print_supported_chipsets_wiki(3);
print_supported_boards_wiki();
#endif
printf("%s", programmer_section);
-#if NIC3COM_SUPPORT == 1
+#if CONFIG_NIC3COM == 1
print_supported_pcidevs_wiki(nics_3com);
#endif
-#if NICREALTEK_SUPPORT == 1
+#if CONFIG_NICREALTEK == 1
print_supported_pcidevs_wiki(nics_realtek);
print_supported_pcidevs_wiki(nics_realteksmc1211);
#endif
-#if GFXNVIDIA_SUPPORT == 1
+#if CONFIG_GFXNVIDIA == 1
print_supported_pcidevs_wiki(gfx_nvidia);
#endif
-#if DRKAISER_SUPPORT == 1
+#if CONFIG_DRKAISER == 1
print_supported_pcidevs_wiki(drkaiser_pcidev);
#endif
-#if SATASII_SUPPORT == 1
+#if CONFIG_SATASII == 1
print_supported_pcidevs_wiki(satas_sii);
#endif
-#if ATAHPT_SUPPORT == 1
+#if CONFIG_ATAHPT == 1
print_supported_pcidevs_wiki(ata_hpt);
#endif
printf("\n|}\n");