1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-06-30 21:52:36 +02:00

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>
This commit is contained in:
Carl-Daniel Hailfinger
2009-08-12 16:17:41 +00:00
parent 37fc469ca2
commit 6be741114d
4 changed files with 17 additions and 49 deletions

View File

@ -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. */
};