From ba23b63348b455036fa642eb2b2e25d98d458ae1 Mon Sep 17 00:00:00 2001 From: hailfinger Date: Mon, 31 May 2010 15:27:27 +0000 Subject: 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. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Uwe Hermann git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1023 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- print_wiki.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'print_wiki.c') diff --git a/print_wiki.c b/print_wiki.c index 3d51bfa..d2fd022 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.
\ '''Last update:''' %s(generated by flashrom %s)\n\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"); -- cgit v1.2.1