From e04a71f382d8686b2bb03ebf46bb21d78c86fbba Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Mon, 31 May 2010 00:02:20 +0000 Subject: Only build firmware_flash plugin on archos git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26424 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/SOURCES | 7 ++++++- apps/plugins/firmware_flash.c | 6 +----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/apps/plugins/SOURCES b/apps/plugins/SOURCES index dbb5843940..b062343058 100644 --- a/apps/plugins/SOURCES +++ b/apps/plugins/SOURCES @@ -101,6 +101,12 @@ video.c alpine_cdc.c #endif +#if defined(ARCHOS_PLAYER) || defined(ARCHOS_RECORDER) || \ + defined(ARCHOS_FMRECORDER) || defined(ARCHOS_RECORDERV2) || \ + defined(ARCHOS_ONDIOFM) || defined(ARCHOS_ONDIOSP) +firmware_flash.c +#endif + #if defined(IRIVER_H100_SERIES) iriver_flash.c #endif @@ -110,7 +116,6 @@ rockbox_flash.c #endif /* CONFIG_CPU */ battery_bench.c -firmware_flash.c #if defined(IPOD_NANO2G) crypt_firmware.c diff --git a/apps/plugins/firmware_flash.c b/apps/plugins/firmware_flash.c index 43ed7a87d9..317bc92f04 100644 --- a/apps/plugins/firmware_flash.c +++ b/apps/plugins/firmware_flash.c @@ -74,11 +74,9 @@ #define KEEP MASK_ADR /* keep the mask value */ #define PLATFORM_ID ID_ONDIO_SP #else -#undef PLATFORM_ID /* this platform is not (yet) flashable */ +#error this platform is not (yet) flashable #endif -#ifdef PLATFORM_ID - PLUGIN_HEADER #if CONFIG_KEYPAD == ONDIO_PAD /* limited keypad */ @@ -1040,5 +1038,3 @@ enum plugin_status plugin_start(const void* parameter) return PLUGIN_OK; } - -#endif /* ifdef PLATFORM_ID */ -- cgit v1.2.3