diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-08-12 16:17:41 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-08-12 16:17:41 +0000 |
commit | 18d8712e6187ce1e977c987b0dc8e70e79c36dba (patch) | |
tree | b7a34e33e948c851fcbf64e55c1f3aea465f80b9 /flashrom.c | |
parent | 8121b58da9cd6098441636a91b3ae3899de4b82a (diff) | |
download | flashrom-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. */ }; |