summaryrefslogtreecommitdiffstats
path: root/tools
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 /tools
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
Diffstat (limited to 'tools')
-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
cd $now
fi
+
+appsdir='\$(ROOTDIR)/apps'
+
if [ -z "$archos" ]; then
##################################################################
@@ -401,11 +404,21 @@ if [ -z "$debug" ]; then
##################################################################
# Figure out debug on/off
#
- echo "Build (N)ormal, (D)ebug or (S)imulated version? (N)"
+ echo "Build (N)ormal, (D)ebug, (S)imulator, (B)ootloader? (N)"
option=`input`;
case $option in
+ [Bb])
+ if [ "$archos" != "h100" ]; then
+ echo "only the iRiver_h100 platform can build a boot loader";
+ exit
+ fi
+ extradefines="-DBOOTLOADER" # for target makefile symbol EXTRA_DEFINES
+ appsdir='\$(ROOTDIR)/bootloader'
+ bootloader="1"
+ echo "Bootloader build selected"
+ ;;
[Ss])
debug="1"
simulator="yes"
@@ -467,12 +480,14 @@ sed > Makefile \
-e "s,@FLASHFILE@,${flash},g" \
-e "s,@PLUGINS@,${plugins},g" \
-e "s,@GCCOPTS@,${GCCOPTS},g" \
+ -e "s,@EXTRADEF@,${extradefines},g" \
+ -e "s,@APPSDIR@,${appsdir},g" \
<<EOF
## Automaticly generated. http://rockbox.haxx.se
export ROOTDIR=@ROOTDIR@
export FIRMDIR=\$(ROOTDIR)/firmware
-export APPSDIR=\$(ROOTDIR)/apps
+export APPSDIR=@APPSDIR@
export TOOLSDIR=\$(ROOTDIR)/tools
export DOCSDIR=\$(ROOTDIR)/docs
export DEBUG=@DEBUG@
@@ -488,6 +503,7 @@ export MKFIRMWARE=@TOOL@
export BINARY=@OUTPUT@
export APPEXTRA=@APPEXTRA@
export ENABLEDPLUGINS=@PLUGINS@
+export EXTRA_DEFINES=@EXTRADEF@
export CC=@CC@
export LD=@LD@
export AR=@AR@