summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/SOURCES7
-rw-r--r--apps/plugins/firmware_flash.c6
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 */