summaryrefslogtreecommitdiffstats
path: root/print.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
commit829c29491093323ff31bc85df1dc4aef5b1bb737 (patch)
treeecd2ba9f67c51b833d22051628b79ccb1dcde0a2 /print.c
parent01415f95ccb99e8fa786127fd14bfd04a3418193 (diff)
downloadflashrom-829c29491093323ff31bc85df1dc4aef5b1bb737.zip
flashrom-829c29491093323ff31bc85df1dc4aef5b1bb737.tar.gz
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.c')
-rw-r--r--print.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/print.c b/print.c
index a2f4e5d..65af085 100644
--- a/print.c
+++ b/print.c
@@ -145,7 +145,7 @@ void print_supported_chips(void)
}
}
-#if INTERNAL_SUPPORT == 1
+#if CONFIG_INTERNAL == 1
void print_supported_chipsets(void)
{
int i, j, chipsetcount = 0;
@@ -228,37 +228,37 @@ void print_supported_boards(void)
void print_supported(void)
{
print_supported_chips();
-#if INTERNAL_SUPPORT == 1
+#if CONFIG_INTERNAL == 1
print_supported_chipsets();
print_supported_boards();
#endif
-#if (NIC3COM_SUPPORT == 1) || (GFXNVIDIA_SUPPORT == 1) || (DRKAISER_SUPPORT == 1) || (SATASII_SUPPORT == 1)
+#if CONFIG_NIC3COM+CONFIG_NICREALTEK+CONFIG_GFXNVIDIA+CONFIG_DRKAISER+CONFIG_SATASII+CONFIG_ATAHPT >= 1
printf("\nSupported PCI devices flashrom can use "
"as programmer:\n\n");
#endif
-#if NIC3COM_SUPPORT == 1
+#if CONFIG_NIC3COM == 1
print_supported_pcidevs(nics_3com);
#endif
-#if NICREALTEK_SUPPORT == 1
+#if CONFIG_NICREALTEK == 1
print_supported_pcidevs(nics_realtek);
print_supported_pcidevs(nics_realteksmc1211);
#endif
-#if GFXNVIDIA_SUPPORT == 1
+#if CONFIG_GFXNVIDIA == 1
print_supported_pcidevs(gfx_nvidia);
#endif
-#if DRKAISER_SUPPORT == 1
+#if CONFIG_DRKAISER == 1
print_supported_pcidevs(drkaiser_pcidev);
#endif
-#if SATASII_SUPPORT == 1
+#if CONFIG_SATASII == 1
print_supported_pcidevs(satas_sii);
#endif
-#if ATAHPT_SUPPORT == 1
+#if CONFIG_ATAHPT == 1
print_supported_pcidevs(ata_hpt);
#endif
}
-#if INTERNAL_SUPPORT == 1
+#if CONFIG_INTERNAL == 1
/* Please keep this list alphabetically ordered by vendor/board. */
const struct board_info boards_ok[] = {
/* Verified working boards that don't need write-enables. */
OpenPOWER on IntegriCloud