summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-01-29 00:00:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-01-29 00:00:47 +0000
commit9aac5292084adc09d366a26bf6d7db1d857bec73 (patch)
tree867bee4a32c5d910751bdf4eb95ab08043474054
parente2c140e419b4f25dfa4a177a1a864a4eb9cd8266 (diff)
downloadrockbox-9aac5292084adc09d366a26bf6d7db1d857bec73.tar.gz
rockbox-9aac5292084adc09d366a26bf6d7db1d857bec73.zip
add bootloader option (only usable for iRiver)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5706 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xtools/configure20
1 files changed, 18 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index ad63df617e..fdd0ac8f6a 100755
--- a/tools/configure
+++ b/tools/configure
@@ -253,6 +253,9 @@ if [ -z "$rootdir" ]; then
253 cd $now 253 cd $now
254fi 254fi
255 255
256
257appsdir='\$(ROOTDIR)/apps'
258
256if [ -z "$archos" ]; then 259if [ -z "$archos" ]; then
257 260
258################################################################## 261##################################################################
@@ -401,11 +404,21 @@ if [ -z "$debug" ]; then
401 ################################################################## 404 ##################################################################
402 # Figure out debug on/off 405 # Figure out debug on/off
403 # 406 #
404 echo "Build (N)ormal, (D)ebug or (S)imulated version? (N)" 407 echo "Build (N)ormal, (D)ebug, (S)imulator, (B)ootloader? (N)"
405 408
406 option=`input`; 409 option=`input`;
407 410
408 case $option in 411 case $option in
412 [Bb])
413 if [ "$archos" != "h100" ]; then
414 echo "only the iRiver_h100 platform can build a boot loader";
415 exit
416 fi
417 extradefines="-DBOOTLOADER" # for target makefile symbol EXTRA_DEFINES
418 appsdir='\$(ROOTDIR)/bootloader'
419 bootloader="1"
420 echo "Bootloader build selected"
421 ;;
409 [Ss]) 422 [Ss])
410 debug="1" 423 debug="1"
411 simulator="yes" 424 simulator="yes"
@@ -467,12 +480,14 @@ sed > Makefile \
467 -e "s,@FLASHFILE@,${flash},g" \ 480 -e "s,@FLASHFILE@,${flash},g" \
468 -e "s,@PLUGINS@,${plugins},g" \ 481 -e "s,@PLUGINS@,${plugins},g" \
469 -e "s,@GCCOPTS@,${GCCOPTS},g" \ 482 -e "s,@GCCOPTS@,${GCCOPTS},g" \
483 -e "s,@EXTRADEF@,${extradefines},g" \
484 -e "s,@APPSDIR@,${appsdir},g" \
470<<EOF 485<<EOF
471## Automaticly generated. http://rockbox.haxx.se 486## Automaticly generated. http://rockbox.haxx.se
472 487
473export ROOTDIR=@ROOTDIR@ 488export ROOTDIR=@ROOTDIR@
474export FIRMDIR=\$(ROOTDIR)/firmware 489export FIRMDIR=\$(ROOTDIR)/firmware
475export APPSDIR=\$(ROOTDIR)/apps 490export APPSDIR=@APPSDIR@
476export TOOLSDIR=\$(ROOTDIR)/tools 491export TOOLSDIR=\$(ROOTDIR)/tools
477export DOCSDIR=\$(ROOTDIR)/docs 492export DOCSDIR=\$(ROOTDIR)/docs
478export DEBUG=@DEBUG@ 493export DEBUG=@DEBUG@
@@ -488,6 +503,7 @@ export MKFIRMWARE=@TOOL@
488export BINARY=@OUTPUT@ 503export BINARY=@OUTPUT@
489export APPEXTRA=@APPEXTRA@ 504export APPEXTRA=@APPEXTRA@
490export ENABLEDPLUGINS=@PLUGINS@ 505export ENABLEDPLUGINS=@PLUGINS@
506export EXTRA_DEFINES=@EXTRADEF@
491export CC=@CC@ 507export CC=@CC@
492export LD=@LD@ 508export LD=@LD@
493export AR=@AR@ 509export AR=@AR@