summaryrefslogtreecommitdiff
path: root/tools/configure
diff options
context:
space:
mode:
Diffstat (limited to 'tools/configure')
-rwxr-xr-xtools/configure14
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/configure b/tools/configure
index e4b3867ba3..464ea4c220 100755
--- a/tools/configure
+++ b/tools/configure
@@ -564,13 +564,15 @@ fi
case $option in
[Bb])
- if [ "$archos" != "h100" ]; then
- echo "only the iRiver_h100 platform can build a boot loader";
- exit
+ if [ "$archos" = "h100" ]; then
+ extradefines="-DBOOTLOADER" # for target makefile symbol EXTRA_DEFINES
+ appsdir='\$(ROOTDIR)/bootloader'
+ apps="bootloader"
+ else
+ extradefines="-DBOOTLOADER -ffunction-sections -fdata-sections"
+ appsdir='\$(ROOTDIR)/flash/bootbox'
+ apps="bootbox"
fi
- extradefines="-DBOOTLOADER" # for target makefile symbol EXTRA_DEFINES
- appsdir='\$(ROOTDIR)/bootloader'
- apps="bootloader"
bootloader="1"
echo "Bootloader build selected"
;;