summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure20
1 files changed, 17 insertions, 3 deletions
diff --git a/tools/configure b/tools/configure
index 459dd9c7a9..fc12c312c1 100755
--- a/tools/configure
+++ b/tools/configure
@@ -2061,13 +2061,13 @@ case $modelname in
2061 ;; 2061 ;;
2062esac 2062esac
2063if [ "1" != `parse_args --type` ]; then 2063if [ "1" != `parse_args --type` ]; then
2064 option=`parse_args --type`; 2064 btype=`parse_args --type`;
2065else 2065else
2066 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)" 2066 echo "Build (N)ormal, (A)dvanced, (S)imulator, (B)ootloader, $gdbstub(M)anual: (Defaults to N)"
2067 option=`input`; 2067 btype=`input`;
2068fi 2068fi
2069 2069
2070 case $option in 2070 case $btype in
2071 [Ii]) 2071 [Ii])
2072 appsdir='\$(ROOTDIR)/bootloader' 2072 appsdir='\$(ROOTDIR)/bootloader'
2073 apps="bootloader" 2073 apps="bootloader"
@@ -2150,6 +2150,7 @@ fi
2150 exit 8 2150 exit 8
2151 fi 2151 fi
2152 debug="" 2152 debug=""
2153 btype="N" # set it explicitly since RET only gets here as well
2153 echo "Normal build selected" 2154 echo "Normal build selected"
2154 ;; 2155 ;;
2155 2156
@@ -2388,6 +2389,16 @@ if test "$apps" = "apps"; then
2388 buildlangs="langs" 2389 buildlangs="langs"
2389fi 2390fi
2390 2391
2392#### Fix the cmdline ###
2393if test -n "$ccache"; then
2394 cmdline="--ccache"
2395fi
2396
2397cmdline="$cmdline --target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype"
2398
2399
2400### end of cmdline
2401
2391sed > Makefile \ 2402sed > Makefile \
2392 -e "s,@ROOTDIR@,${rootdir},g" \ 2403 -e "s,@ROOTDIR@,${rootdir},g" \
2393 -e "s,@DEBUG@,${debug},g" \ 2404 -e "s,@DEBUG@,${debug},g" \
@@ -2450,6 +2461,7 @@ sed > Makefile \
2450 -e "s,@LANGS@,${buildlangs},g" \ 2461 -e "s,@LANGS@,${buildlangs},g" \
2451 -e "s,@USE_ELF@,${USE_ELF},g" \ 2462 -e "s,@USE_ELF@,${USE_ELF},g" \
2452 -e "s,@RBDIR@,${rbdir},g" \ 2463 -e "s,@RBDIR@,${rbdir},g" \
2464 -e "s,@CMDLINE@,$cmdline,g" \
2453<<EOF 2465<<EOF
2454## Automatically generated. http://www.rockbox.org/ 2466## Automatically generated. http://www.rockbox.org/
2455 2467
@@ -2514,6 +2526,8 @@ export ENCODER=@ENCODER@
2514export USE_ELF=@USE_ELF@ 2526export USE_ELF=@USE_ELF@
2515export RBDIR=@RBDIR@ 2527export RBDIR=@RBDIR@
2516 2528
2529CONFIGURE_OPTIONS=@CMDLINE@
2530
2517include \$(TOOLSDIR)/root.make 2531include \$(TOOLSDIR)/root.make
2518 2532
2519EOF 2533EOF