From 1b5788819ff0398d361504e58159ef99ab645cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Thu, 15 Dec 2011 21:03:32 +0000 Subject: [PATCH] SOURCES: factorize common iaudio x5/m5 files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31298 a1c6a512-1295-4272-9138-f99709370657 --- firmware/SOURCES | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/firmware/SOURCES b/firmware/SOURCES index 434a237f6c..db17fff19c 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -846,11 +846,13 @@ target/arm/philips/hdd6330/powermgmt-hdd6330.c target/arm/usb-fw-pp502x.c #endif /* PHILIPS_HDD6330 */ -#ifdef IAUDIO_X5 +#if defined(IAUDIO_X5) || defined(IAUDIO_M5) target/coldfire/pcf50606-coldfire.c target/coldfire/iaudio/adc-iaudio.c target/coldfire/iaudio/ata-iaudio.c +#ifdef HAVE_FMRADIO_IN target/coldfire/iaudio/fmradio_i2c-iaudio.c +#endif target/coldfire/iaudio/lcd-remote-as-iaudio.S target/coldfire/iaudio/lcd-remote-iaudio.c target/coldfire/iaudio/pcf50606-iaudio.c @@ -858,38 +860,25 @@ target/coldfire/iaudio/power-x5m5.c target/coldfire/iaudio/powermgmt-iaudio.c target/coldfire/iaudio/system-iaudio.c target/coldfire/iaudio/usb-iaudio.c +#ifndef BOOTLOADER +target/coldfire/iaudio/audio-iaudio.c +#endif +#endif /* IAUDIO_X5 || IAUDIO_M5 */ + +#ifdef IAUDIO_X5 target/coldfire/iaudio/x5/backlight-x5.c target/coldfire/iaudio/x5/button-x5.c target/coldfire/iaudio/x5/ds2411-x5.c target/coldfire/iaudio/x5/lcd-as-x5.S target/coldfire/iaudio/x5/lcd-x5.c target/coldfire/iaudio/x5/m5636-x5.c -#ifndef BOOTLOADER -target/coldfire/iaudio/audio-iaudio.c -#endif #endif /* IAUDIO_X5 */ #ifdef IAUDIO_M5 -target/coldfire/pcf50606-coldfire.c -target/coldfire/iaudio/adc-iaudio.c -target/coldfire/iaudio/ata-iaudio.c -#ifdef HAVE_FMRADIO_IN /* FM radio mod */ -target/coldfire/iaudio/fmradio_i2c-iaudio.c -#endif -target/coldfire/iaudio/lcd-remote-as-iaudio.S -target/coldfire/iaudio/lcd-remote-iaudio.c target/coldfire/iaudio/m5/backlight-m5.c target/coldfire/iaudio/m5/button-m5.c target/coldfire/iaudio/m5/lcd-as-m5.S target/coldfire/iaudio/m5/lcd-m5.c -target/coldfire/iaudio/pcf50606-iaudio.c -target/coldfire/iaudio/power-x5m5.c -target/coldfire/iaudio/powermgmt-iaudio.c -target/coldfire/iaudio/system-iaudio.c -target/coldfire/iaudio/usb-iaudio.c -#ifndef BOOTLOADER -target/coldfire/iaudio/audio-iaudio.c -#endif #endif /* IAUDIO_M5 */ #ifdef IAUDIO_M3