From 9aac5292084adc09d366a26bf6d7db1d857bec73 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 29 Jan 2005 00:00:47 +0000 Subject: add bootloader option (only usable for iRiver) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5706 a1c6a512-1295-4272-9138-f99709370657 --- tools/configure | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'tools/configure') 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" \ <