summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-10 22:37:09 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-10 22:37:09 +0000
commitdd4ea29f015bdcdf3b009f10a9f155eb5f7a93e6 (patch)
treee86c3bd8733d29e8e24530c8bb3845748a1a9363 /tools
parent4338f9c88598ef52f1c06572efd1c82f5621998f (diff)
downloadrockbox-dd4ea29f015bdcdf3b009f10a9f155eb5f7a93e6.zip
rockbox-dd4ea29f015bdcdf3b009f10a9f155eb5f7a93e6.tar.gz
rockbox-dd4ea29f015bdcdf3b009f10a9f155eb5f7a93e6.tar.bz2
rockbox-dd4ea29f015bdcdf3b009f10a9f155eb5f7a93e6.tar.xz
Linker script for gmini targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5890 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure23
1 files changed, 21 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index cc220cd..8ffc5f2 100755
--- a/tools/configure
+++ b/tools/configure
@@ -35,7 +35,7 @@ calmrisccc () {
AR=calmrisc16-unknown-elf-ar
AS=calmrisc16-unknown-elf-as
OC=calmrisc16-unknown-elf-objcopy
- GCCOPTS="$CCOPTS"
+ GCCOPTS="-Wl\,--no-check-sections $CCOPTS"
GCCOPTIMIZE="-fomit-frame-pointer"
}
@@ -49,6 +49,22 @@ coldfirecc () {
GCCOPTIMIZE="-fomit-frame-pointer"
}
+whichaddr () {
+ case $archos in
+ gmini120)
+ echo ""
+ echo "Where do you want the firmware to be flashed?"
+ echo "WARNING: Do not answer this question lightly,"
+ echo "unless you don't plan to flash your gmini."
+ echo "In this case, reply '0x10000' (no quotes) and "
+ echo "re-configure when you know better."
+ loadaddress=`input`
+ ;;
+ *)
+ ;;
+ esac
+}
+
whichsim () {
if [ -z "$simver" ]; then
@@ -315,7 +331,7 @@ if [ -z "$archos" ]; then
5)
archos="gmini120"
- target="-DARCHOS_GMINI120"
+ target="-DARCHOS_GMINI120 -DLOADADDRESS=\$(LOADADDRESS)"
memory=16 # fixed size (16 is a guess, remove comment when checked)
calmrisccc
tool="$rootdir/tools/scramble" # not correct but...
@@ -439,6 +455,7 @@ if [ -z "$debug" ]; then
esac
fi
+whichaddr
if [ -z "$language" ]; then
@@ -480,6 +497,7 @@ sed > Makefile \
-e "s,@FLASHFILE@,${flash},g" \
-e "s,@PLUGINS@,${plugins},g" \
-e "s,@GCCOPTS@,${GCCOPTS},g" \
+ -e "s,@LOADADDRESS@,${loadaddress},g" \
-e "s,@EXTRADEF@,${extradefines},g" \
-e "s,@APPSDIR@,${appsdir},g" \
<<EOF
@@ -510,6 +528,7 @@ export AR=@AR@
export AS=@AS@
export OC=@OC@
export GCCOPTS=@GCCOPTS@
+export LOADADDRESS=@LOADADDRESS@
.PHONY: all clean tags zip