diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-31 00:02:20 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-05-31 00:02:20 +0000 |
commit | e04a71f382d8686b2bb03ebf46bb21d78c86fbba (patch) | |
tree | ef0e4f302ce171424216013df0c543b16ec49f46 /apps/plugins | |
parent | cdc42458a264636ebd6cfac08749e96b5fde24bd (diff) |
Only build firmware_flash plugin on archos
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26424 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/SOURCES | 7 | ||||
-rw-r--r-- | 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 */ |