From 6be741114d95dcb9b8d783c114999b0e8b8b802d Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Wed, 12 Aug 2009 16:17:41 +0000 Subject: 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 Acked-by: Stefan Reinauer --- flash.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'flash.h') diff --git a/flash.h b/flash.h index dc0daef..13564e1 100644 --- a/flash.h +++ b/flash.h @@ -87,7 +87,9 @@ enum programmer { PROGRAMMER_SATASII, PROGRAMMER_IT87SPI, PROGRAMMER_FT2232SPI, +#if SERPROG_SUPPORT == 1 PROGRAMMER_SERPROG, +#endif PROGRAMMER_INVALID /* This must always be the last entry. */ }; -- cgit v1.1