summaryrefslogtreecommitdiffstats
path: root/tools/configure
diff options
context:
space:
mode:
authorMarianne Arnold <pixelma@rockbox.org>2009-05-29 13:36:12 +0000
committerMarianne Arnold <pixelma@rockbox.org>2009-05-29 13:36:12 +0000
commit74a22ff1a3908a11750524569584c52d38422e88 (patch)
treed54993f29f0f3b1d02d322dc90bc9974015c3770 /tools/configure
parentb41208fffdc98787e52890499f6cb3b2c2eba2bc (diff)
downloadrockbox-74a22ff1a3908a11750524569584c52d38422e88.tar.gz
rockbox-74a22ff1a3908a11750524569584c52d38422e88.tar.bz2
rockbox-74a22ff1a3908a11750524569584c52d38422e88.zip
Make 'Backlight mod' an Advanced build option for the Ondios (largely inspired by the RTC mod related changes in r12555). Remove the defines in the config files as you won't need to 'hack' them anymore, just chose the right options while running 'configure'.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21128 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure
index 3814d7583a..75908fe60c 100755
--- a/tools/configure
+++ b/tools/configure
@@ -324,6 +324,9 @@ whichadvanced () {
if [ "$modelname" = "h120" ]; then
printf ", (R)TC MOD"
fi
+ if [ "$t_model" = "ondio" ]; then
+ printf ", (B)acklight MOD"
+ fi
echo ""
cont=1
@@ -378,6 +381,14 @@ 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
;;
@@ -2503,6 +2514,7 @@ sed > autoconf.h \
-e "s,@config_rtc@,$config_rtc,g" \
-e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
-e "s,@RBDIR@,${rbdir},g" \
+ -e "s,@have_backlight@,$have_backlight,g" \
<<EOF
/* This header was made by configure */
#ifndef __BUILD_AUTOCONF_H
@@ -2518,6 +2530,9 @@ sed > autoconf.h \
@config_rtc@
@have_rtc_alarm@
+/* optional define for a backlight modded Ondio */
+@have_backlight@
+
/* root of Rockbox */
#define ROCKBOX_DIR "/@RBDIR@"