diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-01-29 00:00:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-01-29 00:00:47 +0000 |
commit | 9aac5292084adc09d366a26bf6d7db1d857bec73 (patch) | |
tree | 867bee4a32c5d910751bdf4eb95ab08043474054 /tools/configure | |
parent | e2c140e419b4f25dfa4a177a1a864a4eb9cd8266 (diff) | |
download | rockbox-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
Diffstat (limited to 'tools/configure')
-rwxr-xr-x | tools/configure | 20 |
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 |
254 | fi | 254 | fi |
255 | 255 | ||
256 | |||
257 | appsdir='\$(ROOTDIR)/apps' | ||
258 | |||
256 | if [ -z "$archos" ]; then | 259 | if [ -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 | ||
473 | export ROOTDIR=@ROOTDIR@ | 488 | export ROOTDIR=@ROOTDIR@ |
474 | export FIRMDIR=\$(ROOTDIR)/firmware | 489 | export FIRMDIR=\$(ROOTDIR)/firmware |
475 | export APPSDIR=\$(ROOTDIR)/apps | 490 | export APPSDIR=@APPSDIR@ |
476 | export TOOLSDIR=\$(ROOTDIR)/tools | 491 | export TOOLSDIR=\$(ROOTDIR)/tools |
477 | export DOCSDIR=\$(ROOTDIR)/docs | 492 | export DOCSDIR=\$(ROOTDIR)/docs |
478 | export DEBUG=@DEBUG@ | 493 | export DEBUG=@DEBUG@ |
@@ -488,6 +503,7 @@ export MKFIRMWARE=@TOOL@ | |||
488 | export BINARY=@OUTPUT@ | 503 | export BINARY=@OUTPUT@ |
489 | export APPEXTRA=@APPEXTRA@ | 504 | export APPEXTRA=@APPEXTRA@ |
490 | export ENABLEDPLUGINS=@PLUGINS@ | 505 | export ENABLEDPLUGINS=@PLUGINS@ |
506 | export EXTRA_DEFINES=@EXTRADEF@ | ||
491 | export CC=@CC@ | 507 | export CC=@CC@ |
492 | export LD=@LD@ | 508 | export LD=@LD@ |
493 | export AR=@AR@ | 509 | export AR=@AR@ |