diff options
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/tools/configure b/tools/configure index f081b8ba72..50091a5da3 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -321,12 +321,15 @@ whichadvanced () { | |||
321 | if [ "$memory" = "2" ]; then | 321 | if [ "$memory" = "2" ]; then |
322 | printf ", (8)MB MOD" | 322 | printf ", (8)MB MOD" |
323 | fi | 323 | fi |
324 | if [ "$modelname" = "h120" ]; then | ||
325 | printf ", (R)TC MOD" | ||
326 | fi | ||
327 | if [ "$t_model" = "ondio" ]; then | 324 | if [ "$t_model" = "ondio" ]; then |
328 | printf ", (B)acklight MOD" | 325 | printf ", (B)acklight MOD" |
329 | fi | 326 | fi |
327 | if [ "$modelname" = "m5" ]; then | ||
328 | printf ", (F)M radio MOD" | ||
329 | fi | ||
330 | if [ "$modelname" = "h120" ]; then | ||
331 | printf ", (R)TC MOD" | ||
332 | fi | ||
330 | echo "" | 333 | echo "" |
331 | 334 | ||
332 | cont=1 | 335 | cont=1 |
@@ -372,6 +375,22 @@ whichadvanced () { | |||
372 | cont=0 | 375 | cont=0 |
373 | fi | 376 | fi |
374 | ;; | 377 | ;; |
378 | [Bb]) | ||
379 | if [ "$t_model" = "ondio" ]; then | ||
380 | have_backlight="#define HAVE_BACKLIGHT" | ||
381 | echo "Backlight functions enabled" | ||
382 | else | ||
383 | cont=0 | ||
384 | fi | ||
385 | ;; | ||
386 | [Ff]) | ||
387 | if [ "$modelname" = "m5" ]; then | ||
388 | have_fmradio_in="#define HAVE_FMRADIO_IN" | ||
389 | echo "FM radio functions enabled" | ||
390 | else | ||
391 | cont=0 | ||
392 | fi | ||
393 | ;; | ||
375 | [Rr]) | 394 | [Rr]) |
376 | if [ "$modelname" = "h120" ]; then | 395 | if [ "$modelname" = "h120" ]; then |
377 | config_rtc="#define CONFIG_RTC RTC_DS1339_DS3231" | 396 | config_rtc="#define CONFIG_RTC RTC_DS1339_DS3231" |
@@ -381,14 +400,6 @@ whichadvanced () { | |||
381 | cont=0 | 400 | cont=0 |
382 | fi | 401 | fi |
383 | ;; | 402 | ;; |
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 | ;; | ||
392 | *) | 403 | *) |
393 | cont=0 | 404 | cont=0 |
394 | ;; | 405 | ;; |
@@ -2516,6 +2527,7 @@ sed > autoconf.h \ | |||
2516 | -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \ | 2527 | -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \ |
2517 | -e "s,@RBDIR@,${rbdir},g" \ | 2528 | -e "s,@RBDIR@,${rbdir},g" \ |
2518 | -e "s,@have_backlight@,$have_backlight,g" \ | 2529 | -e "s,@have_backlight@,$have_backlight,g" \ |
2530 | -e "s,@have_fmradio_in@,$have_fmradio_in,g" \ | ||
2519 | <<EOF | 2531 | <<EOF |
2520 | /* This header was made by configure */ | 2532 | /* This header was made by configure */ |
2521 | #ifndef __BUILD_AUTOCONF_H | 2533 | #ifndef __BUILD_AUTOCONF_H |
@@ -2527,13 +2539,16 @@ sed > autoconf.h \ | |||
2527 | /* Define this if you build rockbox to support the logf logging and display */ | 2539 | /* Define this if you build rockbox to support the logf logging and display */ |
2528 | #undef ROCKBOX_HAS_LOGF | 2540 | #undef ROCKBOX_HAS_LOGF |
2529 | 2541 | ||
2542 | /* optional define for a backlight modded Ondio */ | ||
2543 | @have_backlight@ | ||
2544 | |||
2545 | /* optional define for FM radio mod for iAudio M5 */ | ||
2546 | @have_fmradio_in@ | ||
2547 | |||
2530 | /* optional defines for RTC mod for h1x0 */ | 2548 | /* optional defines for RTC mod for h1x0 */ |
2531 | @config_rtc@ | 2549 | @config_rtc@ |
2532 | @have_rtc_alarm@ | 2550 | @have_rtc_alarm@ |
2533 | 2551 | ||
2534 | /* optional define for a backlight modded Ondio */ | ||
2535 | @have_backlight@ | ||
2536 | |||
2537 | /* root of Rockbox */ | 2552 | /* root of Rockbox */ |
2538 | #define ROCKBOX_DIR "/@RBDIR@" | 2553 | #define ROCKBOX_DIR "/@RBDIR@" |
2539 | 2554 | ||