summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/export/config-ondiofm.h3
-rw-r--r--firmware/export/config-ondiosp.h3
-rwxr-xr-xtools/configure15
3 files changed, 15 insertions, 6 deletions
diff --git a/firmware/export/config-ondiofm.h b/firmware/export/config-ondiofm.h
index e36eff8757..a43810e3ff 100644
--- a/firmware/export/config-ondiofm.h
+++ b/firmware/export/config-ondiofm.h
@@ -59,9 +59,6 @@
/* Define this if you have a MAS3587F */
#define CONFIG_CODEC MAS3587F
-/* Enable this if you have done the backlight mod */
-//#define HAVE_BACKLIGHT
-
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
diff --git a/firmware/export/config-ondiosp.h b/firmware/export/config-ondiosp.h
index cf69bae619..1fcf45b200 100644
--- a/firmware/export/config-ondiosp.h
+++ b/firmware/export/config-ondiosp.h
@@ -46,9 +46,6 @@
/* Define this if you have a MAS3539F */
#define CONFIG_CODEC MAS3539F
-/* Enable this if you have done the backlight mod */
-//#define HAVE_BACKLIGHT
-
/* define this if you have a flash memory storage */
#define HAVE_FLASH_STORAGE
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@"