1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2009-06-12 18:53:44 +00:00
parent 94823c65ac
commit 81b87fe13d
10 changed files with 74 additions and 327 deletions

43
tools/configure vendored
View file

@ -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@"