From f005d841f292287326b8b9d1a74aac9bf3abbfc3 Mon Sep 17 00:00:00 2001 From: Lorenzo Miori Date: Sat, 28 Dec 2013 19:00:57 +0100 Subject: Samsung YP-R0/YP-R1 refactoring This patch includes some refactoring: - renaming according to Rockbox guidelines - GPIO code merging, still with target defines - some simplification in firmware/SOURCES Change-Id: I7fd95aece53f40efdf8caac22348376615795431 --- firmware/SOURCES | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) (limited to 'firmware/SOURCES') diff --git a/firmware/SOURCES b/firmware/SOURCES index f062a01..38e4bef 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -74,54 +74,47 @@ target/hosted/sdl/app/button-application.c #endif #endif +#if defined(SAMSUNG_YPR0) || defined(SAMSUNG_YPR1) +target/hosted/kernel-unix.c +target/hosted/filesystem-unix.c +target/hosted/lc-unix.c +thread.c +drivers/lcd-memframe.c +target/hosted/samsungypr/lcd-ypr.c +target/hosted/samsungypr/gpio-ypr.c +#if CONFIG_TUNER +target/hosted/samsungypr/radio-ypr.c +#endif +#endif + #if defined(SAMSUNG_YPR0) && !defined(SIMULATOR) drivers/adc-as3514.c -drivers/lcd-memframe.c #if (CONFIG_RTC == RTC_AS3514) drivers/rtc/rtc_as3514.c #else target/hosted/rtc.c #endif -target/hosted/kernel-unix.c -target/hosted/filesystem-unix.c -target/hosted/lc-unix.c target/hosted/samsungypr/ypr0/button-ypr0.c -target/hosted/samsungypr/lcd-ypr.c target/hosted/samsungypr/ypr0/system-ypr0.c -thread.c #ifdef HAVE_BACKLIGHT target/hosted/samsungypr/ypr0/backlight-ypr0.c #endif target/hosted/samsungypr/ypr0/ascodec-ypr0.c target/hosted/samsungypr/ypr0/powermgmt-ypr0.c -target/hosted/samsungypr/gpio_ypr.c target/hosted/samsungypr/ypr0/audio-ypr0.c -#if CONFIG_TUNER -target/hosted/samsungypr/radio-ypr.c -#endif #endif -#ifdef SAMSUNG_YPR1 -drivers/lcd-memframe.c -target/hosted/kernel-unix.c -target/hosted/filesystem-unix.c -target/hosted/lc-unix.c +#if defined(SAMSUNG_YPR1) && !defined(SIMULATOR) target/hosted/samsungypr/ypr1/mcs5000-ypr1.c target/hosted/samsungypr/ypr1/button-ypr1.c -target/hosted/samsungypr/lcd-ypr.c target/hosted/samsungypr/ypr1/system-ypr1.c -thread.c #ifdef HAVE_BACKLIGHT target/hosted/samsungypr/ypr1/backlight-ypr1.c #endif target/hosted/samsungypr/ypr1/powermgmt-ypr1.c -target/hosted/samsungypr/gpio_ypr.c target/hosted/samsungypr/ypr1/audio-ypr1.c target/hosted/samsungypr/ypr1/pmu-ypr1.c target/hosted/samsungypr/ypr1/wmcodec-ypr1.c -#if CONFIG_TUNER -target/hosted/samsungypr/radio-ypr.c -#endif #endif /* Maemo specific files */ -- cgit v1.1