forked from len0rd/rockbox
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
This commit is contained in:
parent
96904ba7c3
commit
b76faecd60
2 changed files with 15 additions and 4 deletions
|
|
@ -60,10 +60,6 @@
|
||||||
/* Define this if you have a SH7034 */
|
/* Define this if you have a SH7034 */
|
||||||
#define CONFIG_CPU SH7034
|
#define CONFIG_CPU SH7034
|
||||||
|
|
||||||
/* Uncomment this if you want to enable ATA power-off control.
|
|
||||||
* Attention, some players crash when ATA power-off is enabled! */
|
|
||||||
//#define HAVE_ATA_POWER_OFF
|
|
||||||
|
|
||||||
/* Define this if you control ata power player style
|
/* Define this if you control ata power player style
|
||||||
(with PB4, new player only) */
|
(with PB4, new player only) */
|
||||||
#define ATA_POWER_PLAYERSTYLE
|
#define ATA_POWER_PLAYERSTYLE
|
||||||
|
|
|
||||||
15
tools/configure
vendored
15
tools/configure
vendored
|
|
@ -321,6 +321,9 @@ whichadvanced () {
|
||||||
if [ "$memory" = "2" ]; then
|
if [ "$memory" = "2" ]; then
|
||||||
printf ", (8)MB MOD"
|
printf ", (8)MB MOD"
|
||||||
fi
|
fi
|
||||||
|
if [ "$modelname" = "player" ]; then
|
||||||
|
printf ", Use (A)TA poweroff"
|
||||||
|
fi
|
||||||
if [ "$t_model" = "ondio" ]; then
|
if [ "$t_model" = "ondio" ]; then
|
||||||
printf ", (B)acklight MOD"
|
printf ", (B)acklight MOD"
|
||||||
fi
|
fi
|
||||||
|
|
@ -375,6 +378,14 @@ whichadvanced () {
|
||||||
cont=0
|
cont=0
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
[Aa])
|
||||||
|
if [ "$modelname" = "player" ]; then
|
||||||
|
have_ata_poweroff="#define HAVE_ATA_POWEROFF"
|
||||||
|
echo "ATA poweroff enabled"
|
||||||
|
else
|
||||||
|
cont=0
|
||||||
|
fi
|
||||||
|
;;
|
||||||
[Bb])
|
[Bb])
|
||||||
if [ "$t_model" = "ondio" ]; then
|
if [ "$t_model" = "ondio" ]; then
|
||||||
have_backlight="#define HAVE_BACKLIGHT"
|
have_backlight="#define HAVE_BACKLIGHT"
|
||||||
|
|
@ -2551,6 +2562,7 @@ sed > autoconf.h \
|
||||||
-e "s,@RBDIR@,${rbdir},g" \
|
-e "s,@RBDIR@,${rbdir},g" \
|
||||||
-e "s,@have_backlight@,$have_backlight,g" \
|
-e "s,@have_backlight@,$have_backlight,g" \
|
||||||
-e "s,@have_fmradio_in@,$have_fmradio_in,g" \
|
-e "s,@have_fmradio_in@,$have_fmradio_in,g" \
|
||||||
|
-e "s,@have_ata_poweroff@,$have_ata_poweroff,g" \
|
||||||
<<EOF
|
<<EOF
|
||||||
/* This header was made by configure */
|
/* This header was made by configure */
|
||||||
#ifndef __BUILD_AUTOCONF_H
|
#ifndef __BUILD_AUTOCONF_H
|
||||||
|
|
@ -2568,6 +2580,9 @@ sed > autoconf.h \
|
||||||
/* optional define for FM radio mod for iAudio M5 */
|
/* optional define for FM radio mod for iAudio M5 */
|
||||||
@have_fmradio_in@
|
@have_fmradio_in@
|
||||||
|
|
||||||
|
/* optional define for ATA poweroff on Player */
|
||||||
|
@have_ata_poweroff@
|
||||||
|
|
||||||
/* optional defines for RTC mod for h1x0 */
|
/* optional defines for RTC mod for h1x0 */
|
||||||
@config_rtc@
|
@config_rtc@
|
||||||
@have_rtc_alarm@
|
@have_rtc_alarm@
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue