diff options
-rwxr-xr-x | tools/configure | 48 |
1 files changed, 16 insertions, 32 deletions
diff --git a/tools/configure b/tools/configure index 5b0c61e988..1cedebf787 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -3526,61 +3526,45 @@ if [ "$ARG_RBDIR" != "" ]; then | |||
3526 | echo "Using alternate rockbox dir: ${rbdir}" | 3526 | echo "Using alternate rockbox dir: ${rbdir}" |
3527 | fi | 3527 | fi |
3528 | 3528 | ||
3529 | sed > autoconf.h \ | 3529 | cat > autoconf.h <<EOF |
3530 | -e "s<@ENDIAN@<${defendian}<g" \ | ||
3531 | -e "s<^#undef ROCKBOX_HAS_LOGF<$use_logf<g" \ | ||
3532 | -e "s<^#undef DO_BOOTCHART<$use_bootchart<g" \ | ||
3533 | -e "s<@config_rtc@<$config_rtc<g" \ | ||
3534 | -e "s<@have_rtc_alarm@<$have_rtc_alarm<g" \ | ||
3535 | -e "s<@thread_support@<$thread_support<g" \ | ||
3536 | -e "s<@RBDIR@<${rbdir}<g" \ | ||
3537 | -e "s<@sharepath@<${sharedir}<g" \ | ||
3538 | -e "s<@binpath@<${bindir}<g" \ | ||
3539 | -e "s<@libpath@<${libdir}<g" \ | ||
3540 | -e "s<@have_backlight@<$have_backlight<g" \ | ||
3541 | -e "s<@have_fmradio_in@<$have_fmradio_in<g" \ | ||
3542 | -e "s<@have_ata_poweroff@<$have_ata_poweroff<g" \ | ||
3543 | -e "s<@lcd_width@<$app_lcd_width<g" \ | ||
3544 | -e "s<@lcd_height@<$app_lcd_height<g" \ | ||
3545 | <<EOF | ||
3546 | /* This header was made by configure */ | 3530 | /* This header was made by configure */ |
3547 | #ifndef __BUILD_AUTOCONF_H | 3531 | #ifndef __BUILD_AUTOCONF_H |
3548 | #define __BUILD_AUTOCONF_H | 3532 | #define __BUILD_AUTOCONF_H |
3549 | 3533 | ||
3550 | /* Define endianess for the target or simulator platform */ | 3534 | /* Define endianess for the target or simulator platform */ |
3551 | #define @ENDIAN@ 1 | 3535 | #define ${defendian} 1 |
3552 | 3536 | ||
3553 | /* Define this if you build rockbox to support the logf logging and display */ | 3537 | /* Define this if you build rockbox to support the logf logging and display */ |
3554 | #undef ROCKBOX_HAS_LOGF | 3538 | ${use_logf} |
3555 | 3539 | ||
3556 | /* Define this to record a chart with timings for the stages of boot */ | 3540 | /* Define this to record a chart with timings for the stages of boot */ |
3557 | #undef DO_BOOTCHART | 3541 | ${use_bootchart} |
3558 | 3542 | ||
3559 | /* optional define for a backlight modded Ondio */ | 3543 | /* optional define for a backlight modded Ondio */ |
3560 | @have_backlight@ | 3544 | ${have_backlight} |
3561 | 3545 | ||
3562 | /* optional define for FM radio mod for iAudio M5 */ | 3546 | /* optional define for FM radio mod for iAudio M5 */ |
3563 | @have_fmradio_in@ | 3547 | ${have_fmradio_in} |
3564 | 3548 | ||
3565 | /* optional define for ATA poweroff on Player */ | 3549 | /* optional define for ATA poweroff on Player */ |
3566 | @have_ata_poweroff@ | 3550 | ${have_ata_poweroff} |
3567 | 3551 | ||
3568 | /* optional defines for RTC mod for h1x0 */ | 3552 | /* optional defines for RTC mod for h1x0 */ |
3569 | @config_rtc@ | 3553 | ${config_rtc} |
3570 | @have_rtc_alarm@ | 3554 | ${have_rtc_alarm} |
3571 | 3555 | ||
3572 | /* the threading backend we use */ | 3556 | /* the threading backend we use */ |
3573 | #define @thread_support@ | 3557 | #define ${thread_support} |
3574 | 3558 | ||
3575 | /* lcd dimensions for application builds from configure */ | 3559 | /* lcd dimensions for application builds from configure */ |
3576 | @lcd_width@ | 3560 | ${app_lcd_width} |
3577 | @lcd_height@ | 3561 | ${app_lcd_height} |
3578 | 3562 | ||
3579 | /* root of Rockbox */ | 3563 | /* root of Rockbox */ |
3580 | #define ROCKBOX_DIR "@RBDIR@" | 3564 | #define ROCKBOX_DIR "${rbdir}" |
3581 | #define ROCKBOX_SHARE_PATH "@sharepath@" | 3565 | #define ROCKBOX_SHARE_PATH "${sharedir}" |
3582 | #define ROCKBOX_BINARY_PATH "@binpath@" | 3566 | #define ROCKBOX_BINARY_PATH "${bindir}" |
3583 | #define ROCKBOX_LIBRARY_PATH "@libpath@" | 3567 | #define ROCKBOX_LIBRARY_PATH "${libdir}" |
3584 | 3568 | ||
3585 | #endif /* __BUILD_AUTOCONF_H */ | 3569 | #endif /* __BUILD_AUTOCONF_H */ |
3586 | EOF | 3570 | EOF |