summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-12 16:17:41 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-12 16:17:41 +0000
commit18d8712e6187ce1e977c987b0dc8e70e79c36dba (patch)
treeb7a34e33e948c851fcbf64e55c1f3aea465f80b9 /flashrom.c
parent8121b58da9cd6098441636a91b3ae3899de4b82a (diff)
downloadflashrom-18d8712e6187ce1e977c987b0dc8e70e79c36dba.zip
flashrom-18d8712e6187ce1e977c987b0dc8e70e79c36dba.tar.gz
Allow to compile out serprog completely
If CONFIG_SERPROG is not set, no stubs and no data of serprog will remain. Side benefit: This kills a few dozen lines of code. r678, r679 and r680 made this possible. Once "Only list available programers in usage()" is committed, even the usage message will be adjusted automatically. Corresponding to flashrom svn r681. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/flashrom.c b/flashrom.c
index 217701a..7133145 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -139,6 +139,7 @@ const struct programmer_entry programmer_table[] = {
.delay = internal_delay,
},
+#if SERPROG_SUPPORT == 1
{
.name = "serprog",
.init = serprog_init,
@@ -155,6 +156,7 @@ const struct programmer_entry programmer_table[] = {
.chip_writen = fallback_chip_writen,
.delay = serprog_delay,
},
+#endif
{}, /* This entry corresponds to PROGRAMMER_INVALID. */
};
OpenPOWER on IntegriCloud