summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-06-20 18:37:29 +0000
committerJens Arnold <amiconn@rockbox.org>2009-06-20 18:37:29 +0000
commitb76faecd60ddb414c442db0636c68a24b7c8c045 (patch)
tree51fa8a0469911149e219f15bbc76eff2193e5df4 /tools
parent96904ba7c3a32083b4e49a6291891fbbc3442b88 (diff)
Make ATA poweroff an advanced build option for the Player.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21409 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index e90a884602..e543919ca6 100755
--- a/tools/configure
+++ b/tools/configure
@@ -321,6 +321,9 @@ whichadvanced () {
if [ "$memory" = "2" ]; then
printf ", (8)MB MOD"
fi
+ if [ "$modelname" = "player" ]; then
+ printf ", Use (A)TA poweroff"
+ fi
if [ "$t_model" = "ondio" ]; then
printf ", (B)acklight MOD"
fi
@@ -375,6 +378,14 @@ whichadvanced () {
cont=0
fi
;;
+ [Aa])
+ if [ "$modelname" = "player" ]; then
+ have_ata_poweroff="#define HAVE_ATA_POWEROFF"
+ echo "ATA poweroff enabled"
+ else
+ cont=0
+ fi
+ ;;
[Bb])
if [ "$t_model" = "ondio" ]; then
have_backlight="#define HAVE_BACKLIGHT"
@@ -2551,6 +2562,7 @@ sed > autoconf.h \
-e "s,@RBDIR@,${rbdir},g" \
-e "s,@have_backlight@,$have_backlight,g" \
-e "s,@have_fmradio_in@,$have_fmradio_in,g" \
+ -e "s,@have_ata_poweroff@,$have_ata_poweroff,g" \
<<EOF
/* This header was made by configure */
#ifndef __BUILD_AUTOCONF_H
@@ -2568,6 +2580,9 @@ sed > autoconf.h \
/* optional define for FM radio mod for iAudio M5 */
@have_fmradio_in@
+/* optional define for ATA poweroff on Player */
+@have_ata_poweroff@
+
/* optional defines for RTC mod for h1x0 */
@config_rtc@
@have_rtc_alarm@