summaryrefslogtreecommitdiff
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 @@
59/* Define this if you have a MAS3587F */ 59/* Define this if you have a MAS3587F */
60#define CONFIG_CODEC MAS3587F 60#define CONFIG_CODEC MAS3587F
61 61
62/* Enable this if you have done the backlight mod */
63//#define HAVE_BACKLIGHT
64
65/* define this if you have a flash memory storage */ 62/* define this if you have a flash memory storage */
66#define HAVE_FLASH_STORAGE 63#define HAVE_FLASH_STORAGE
67 64
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 @@
46/* Define this if you have a MAS3539F */ 46/* Define this if you have a MAS3539F */
47#define CONFIG_CODEC MAS3539F 47#define CONFIG_CODEC MAS3539F
48 48
49/* Enable this if you have done the backlight mod */
50//#define HAVE_BACKLIGHT
51
52/* define this if you have a flash memory storage */ 49/* define this if you have a flash memory storage */
53#define HAVE_FLASH_STORAGE 50#define HAVE_FLASH_STORAGE
54 51
diff --git a/tools/configure b/tools/configure
index 3814d7583a..75908fe60c 100755
--- a/tools/configure
+++ b/tools/configure
@@ -324,6 +324,9 @@ whichadvanced () {
324 if [ "$modelname" = "h120" ]; then 324 if [ "$modelname" = "h120" ]; then
325 printf ", (R)TC MOD" 325 printf ", (R)TC MOD"
326 fi 326 fi
327 if [ "$t_model" = "ondio" ]; then
328 printf ", (B)acklight MOD"
329 fi
327 echo "" 330 echo ""
328 331
329 cont=1 332 cont=1
@@ -378,6 +381,14 @@ whichadvanced () {
378 cont=0 381 cont=0
379 fi 382 fi
380 ;; 383 ;;
384 [Bb])
385 if [ "$t_model" = "ondio" ]; then
386 have_backlight="#define HAVE_BACKLIGHT"
387 echo "Backlight functions enabled"
388 else
389 cont=0
390 fi
391 ;;
381 *) 392 *)
382 cont=0 393 cont=0
383 ;; 394 ;;
@@ -2503,6 +2514,7 @@ sed > autoconf.h \
2503 -e "s,@config_rtc@,$config_rtc,g" \ 2514 -e "s,@config_rtc@,$config_rtc,g" \
2504 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \ 2515 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2505 -e "s,@RBDIR@,${rbdir},g" \ 2516 -e "s,@RBDIR@,${rbdir},g" \
2517 -e "s,@have_backlight@,$have_backlight,g" \
2506<<EOF 2518<<EOF
2507/* This header was made by configure */ 2519/* This header was made by configure */
2508#ifndef __BUILD_AUTOCONF_H 2520#ifndef __BUILD_AUTOCONF_H
@@ -2518,6 +2530,9 @@ sed > autoconf.h \
2518@config_rtc@ 2530@config_rtc@
2519@have_rtc_alarm@ 2531@have_rtc_alarm@
2520 2532
2533/* optional define for a backlight modded Ondio */
2534@have_backlight@
2535
2521/* root of Rockbox */ 2536/* root of Rockbox */
2522#define ROCKBOX_DIR "/@RBDIR@" 2537#define ROCKBOX_DIR "/@RBDIR@"
2523 2538