summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-06-12 18:53:44 +0000
committerJens Arnold <amiconn@rockbox.org>2009-06-12 18:53:44 +0000
commit81b87fe13d6b5f0e8bafd0810f5f8aca2a57bde3 (patch)
tree3372bcdbc512e2fd79350bf679fb89736e51e78a /tools
parent94823c65ac7555a7ed19521184064255902ff615 (diff)
downloadrockbox-81b87fe13d6b5f0e8bafd0810f5f8aca2a57bde3.tar.gz
rockbox-81b87fe13d6b5f0e8bafd0810f5f8aca2a57bde3.tar.bz2
rockbox-81b87fe13d6b5f0e8bafd0810f5f8aca2a57bde3.zip
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
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure43
1 files changed, 29 insertions, 14 deletions
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" \
<<EOF
/* This header was made by configure */
#ifndef __BUILD_AUTOCONF_H
@@ -2527,13 +2539,16 @@ sed > 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@"