From 81b87fe13d6b5f0e8bafd0810f5f8aca2a57bde3 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Fri, 12 Jun 2009 18:53:44 +0000 Subject: Add iAudio M5 FM radio mod to the advanced build options. * Unify iAudio audio driver, fmradio i2c driver, and power driver (M5 + X5 only). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21264 a1c6a512-1295-4272-9138-f99709370657 --- tools/configure | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) (limited to 'tools') diff --git a/tools/configure b/tools/configure index f081b8ba72..50091a5da3 100755 --- a/tools/configure +++ b/tools/configure @@ -321,12 +321,15 @@ whichadvanced () { if [ "$memory" = "2" ]; then printf ", (8)MB MOD" fi - if [ "$modelname" = "h120" ]; then - printf ", (R)TC MOD" - fi if [ "$t_model" = "ondio" ]; then printf ", (B)acklight MOD" fi + if [ "$modelname" = "m5" ]; then + printf ", (F)M radio MOD" + fi + if [ "$modelname" = "h120" ]; then + printf ", (R)TC MOD" + fi echo "" cont=1 @@ -372,6 +375,22 @@ whichadvanced () { cont=0 fi ;; + [Bb]) + if [ "$t_model" = "ondio" ]; then + have_backlight="#define HAVE_BACKLIGHT" + echo "Backlight functions enabled" + else + cont=0 + fi + ;; + [Ff]) + if [ "$modelname" = "m5" ]; then + have_fmradio_in="#define HAVE_FMRADIO_IN" + echo "FM radio functions enabled" + else + cont=0 + fi + ;; [Rr]) if [ "$modelname" = "h120" ]; then config_rtc="#define CONFIG_RTC RTC_DS1339_DS3231" @@ -381,14 +400,6 @@ whichadvanced () { cont=0 fi ;; - [Bb]) - if [ "$t_model" = "ondio" ]; then - have_backlight="#define HAVE_BACKLIGHT" - echo "Backlight functions enabled" - else - cont=0 - fi - ;; *) cont=0 ;; @@ -2516,6 +2527,7 @@ sed > autoconf.h \ -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \ -e "s,@RBDIR@,${rbdir},g" \ -e "s,@have_backlight@,$have_backlight,g" \ + -e "s,@have_fmradio_in@,$have_fmradio_in,g" \ < autoconf.h \ /* Define this if you build rockbox to support the logf logging and display */ #undef ROCKBOX_HAS_LOGF +/* optional define for a backlight modded Ondio */ +@have_backlight@ + +/* optional define for FM radio mod for iAudio M5 */ +@have_fmradio_in@ + /* optional defines for RTC mod for h1x0 */ @config_rtc@ @have_rtc_alarm@ -/* optional define for a backlight modded Ondio */ -@have_backlight@ - /* root of Rockbox */ #define ROCKBOX_DIR "/@RBDIR@" -- cgit v1.2.3