summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure15
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure
index 9a98bff550..628e7d5877 100755
--- a/tools/configure
+++ b/tools/configure
@@ -12,6 +12,7 @@
12CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe" 12CCOPTS="-W -Wall -Wundef -O -nostdlib -ffreestanding -Wstrict-prototypes -pipe"
13 13
14use_logf="#undef ROCKBOX_HAS_LOGF" 14use_logf="#undef ROCKBOX_HAS_LOGF"
15use_bootchart="#undef DO_BOOTCHART"
15 16
16scriptver=`echo '$Revision$' | sed -e 's:\\$::g' -e 's/Revision: //'` 17scriptver=`echo '$Revision$' | sed -e 's:\\$::g' -e 's/Revision: //'`
17 18
@@ -366,7 +367,7 @@ whichadvanced () {
366 interact=1 367 interact=1
367 echo "" 368 echo ""
368 echo "Enter your developer options (press enter when done)" 369 echo "Enter your developer options (press enter when done)"
369 printf "(D)EBUG, (L)ogf, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile" 370 printf "(D)EBUG, (L)ogf, (B)ootchart, (S)imulator, (P)rofiling, (V)oice, (W)in32 crosscompile"
370 if [ "$memory" = "2" ]; then 371 if [ "$memory" = "2" ]; then
371 printf ", (8)MB MOD" 372 printf ", (8)MB MOD"
372 fi 373 fi
@@ -407,6 +408,11 @@ whichadvanced () {
407 echo "logf() support enabled" 408 echo "logf() support enabled"
408 logf="yes" 409 logf="yes"
409 ;; 410 ;;
411 [Bb])
412 echo "bootchart enabled (logf also enabled)"
413 bootchart="yes"
414 logf="yes"
415 ;;
410 [Ss]) 416 [Ss])
411 echo "Simulator build enabled" 417 echo "Simulator build enabled"
412 simulator="yes" 418 simulator="yes"
@@ -493,6 +499,9 @@ whichadvanced () {
493 if [ "yes" = "$logf" ]; then 499 if [ "yes" = "$logf" ]; then
494 use_logf="#define ROCKBOX_HAS_LOGF 1" 500 use_logf="#define ROCKBOX_HAS_LOGF 1"
495 fi 501 fi
502 if [ "yes" = "$bootchart" ]; then
503 use_bootchart="#define DO_BOOTCHART 1"
504 fi
496 if [ "yes" = "$simulator" ]; then 505 if [ "yes" = "$simulator" ]; then
497 debug="-DDEBUG" 506 debug="-DDEBUG"
498 extradefines="$extradefines -DSIMULATOR" 507 extradefines="$extradefines -DSIMULATOR"
@@ -2904,6 +2913,7 @@ fi
2904sed > autoconf.h \ 2913sed > autoconf.h \
2905 -e "s,@ENDIAN@,${defendian},g" \ 2914 -e "s,@ENDIAN@,${defendian},g" \
2906 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \ 2915 -e "s,^#undef ROCKBOX_HAS_LOGF,$use_logf,g" \
2916 -e "s,^#undef DO_BOOTCHART,$use_bootchart,g" \
2907 -e "s,@config_rtc@,$config_rtc,g" \ 2917 -e "s,@config_rtc@,$config_rtc,g" \
2908 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \ 2918 -e "s,@have_rtc_alarm@,$have_rtc_alarm,g" \
2909 -e "s,@RBDIR@,${rbdir},g" \ 2919 -e "s,@RBDIR@,${rbdir},g" \
@@ -2921,6 +2931,9 @@ sed > autoconf.h \
2921/* Define this if you build rockbox to support the logf logging and display */ 2931/* Define this if you build rockbox to support the logf logging and display */
2922#undef ROCKBOX_HAS_LOGF 2932#undef ROCKBOX_HAS_LOGF
2923 2933
2934/* Define this to record a chart with timings for the stages of boot */
2935#undef DO_BOOTCHART
2936
2924/* optional define for a backlight modded Ondio */ 2937/* optional define for a backlight modded Ondio */
2925@have_backlight@ 2938@have_backlight@
2926 2939