summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2011-12-15 18:05:15 +0000
committerRafaël Carré <rafael.carre@gmail.com>2011-12-15 18:05:15 +0000
commit33467a64a5fa6cdd70cb27443bf00f11a1a358e7 (patch)
treee018226420e3bd79f37ac13d0f1f9b52525e1b0d
parent08fd8adbf5e02272e7710671801bca50048313f0 (diff)
move back CPU specific code outside of #ifndef SIMULATOR
it contains fallback files when CPU is not defined git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31278 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/SOURCES93
1 files changed, 47 insertions, 46 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES
index fcd8c24b2c..35c9152d48 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -370,51 +370,6 @@ target/hosted/sdl/pcm-sdl.c
#endif /* CONFIG_CODEC == SWCODEC */
#endif /* (CONFIG_PLATFORM & PLATFORM_NATIVE) && !defined(BOOTLOADER) */
-/* target code */
-#if !defined(SIMULATOR)
-
-/* USB Stack */
-#ifdef HAVE_USBSTACK
-usbstack/usb_core.c
-#ifdef USB_ENABLE_STORAGE
-usbstack/usb_storage.c
-#endif
-#ifdef USB_ENABLE_SERIAL
-usbstack/usb_serial.c
-#endif
-#ifdef USB_ENABLE_CHARGING_ONLY
-usbstack/usb_charging_only.c
-#endif
-#ifdef USB_ENABLE_HID
-usbstack/usb_hid.c
-#endif
-#if CONFIG_USBOTG == USBOTG_M66591
-drivers/m66591.c
-#elif CONFIG_USBOTG == USBOTG_ARC
-target/arm/usb-drv-arc.c
-#elif CONFIG_USBOTG == USBOTG_AS3525
-target/arm/as3525/usb-drv-as3525.c
-#elif CONFIG_USBOTG == USBOTG_AS3525v2
-target/arm/as3525/usb-drv-as3525v2.c
-#elif CONFIG_USBOTG == USBOTG_ISP1583
-drivers/isp1583.c
-#elif CONFIG_USBOTG == USBOTG_RK27XX
-target/arm/rk27xx/usb-drv-rk27xx.c
-#endif
-#else /* !defined(HAVE_USBSTACK) */
-#if CONFIG_USBOTG == USBOTG_ISP1362
-drivers/isp1362.c
-#elif CONFIG_USBOTG == USBOTG_M5636
-drivers/m5636.c
-#endif
-#endif /* !defined(HAVE_USBSTACK) */
-
-/* Other Random Hardware */
-#ifdef HAVE_TSC2100
-drivers/tsc2100.c
-drivers/audio/tsc2100.c
-#endif
-
/* CPU Specific - By class then particular chip if applicable */
#if defined(CPU_SH)
@@ -630,6 +585,52 @@ drivers/i2c.c
#endif /* defined(CPU_*) */
+#if !defined(SIMULATOR)
+
+/* target code */
+
+/* USB Stack */
+#ifdef HAVE_USBSTACK
+usbstack/usb_core.c
+#ifdef USB_ENABLE_STORAGE
+usbstack/usb_storage.c
+#endif
+#ifdef USB_ENABLE_SERIAL
+usbstack/usb_serial.c
+#endif
+#ifdef USB_ENABLE_CHARGING_ONLY
+usbstack/usb_charging_only.c
+#endif
+#ifdef USB_ENABLE_HID
+usbstack/usb_hid.c
+#endif
+#if CONFIG_USBOTG == USBOTG_M66591
+drivers/m66591.c
+#elif CONFIG_USBOTG == USBOTG_ARC
+target/arm/usb-drv-arc.c
+#elif CONFIG_USBOTG == USBOTG_AS3525
+target/arm/as3525/usb-drv-as3525.c
+#elif CONFIG_USBOTG == USBOTG_AS3525v2
+target/arm/as3525/usb-drv-as3525v2.c
+#elif CONFIG_USBOTG == USBOTG_ISP1583
+drivers/isp1583.c
+#elif CONFIG_USBOTG == USBOTG_RK27XX
+target/arm/rk27xx/usb-drv-rk27xx.c
+#endif
+#else /* !defined(HAVE_USBSTACK) */
+#if CONFIG_USBOTG == USBOTG_ISP1362
+drivers/isp1362.c
+#elif CONFIG_USBOTG == USBOTG_M5636
+drivers/m5636.c
+#endif
+#endif /* !defined(HAVE_USBSTACK) */
+
+/* Other Random Hardware */
+#ifdef HAVE_TSC2100
+drivers/tsc2100.c
+drivers/audio/tsc2100.c
+#endif
+
#ifdef ARCHOS_PLAYER
target/sh/archos/ata-archos.c
target/sh/archos/timer-archos.c
@@ -1833,4 +1834,4 @@ drivers/audio/android.c
thread.c
#endif
-#endif /* ! SIMULATOR */
+#endif /* defined(SIMULATOR) */