summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-07-06 15:06:06 +0000
committerThomas Martitz <kugel@rockbox.org>2010-07-06 15:06:06 +0000
commit1c3ae928150df9b983c1d1456b53139d3ee986fe (patch)
tree4f60fef198f6456992db5ede1335d7c67684f564 /tools
parent3cdee0f09b677369a745bdb8098367b0946e29a1 (diff)
downloadrockbox-1c3ae928150df9b983c1d1456b53139d3ee986fe.tar.gz
rockbox-1c3ae928150df9b983c1d1456b53139d3ee986fe.tar.bz2
rockbox-1c3ae928150df9b983c1d1456b53139d3ee986fe.zip
Add --prefix option to configure, and add it to make reconf.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27308 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure
index 85736d5735..79032c006e 100755
--- a/tools/configure
+++ b/tools/configure
@@ -822,6 +822,7 @@ help() {
--thumb Build with -mthumb (for ARM builds)
--no-thumb The opposite of --thumb (don't use thumb even for targets
where this is the default
+ --prefix Target installation directory
--help Shows this message (must not be used with other options)
EOF
@@ -859,6 +860,7 @@ for arg in "$@"; do
--no-eabi) ARG_ARM_EABI=0;;
--thumb) ARG_ARM_THUMB=1;;
--no-thumb) ARG_ARM_THUMB=0;;
+ --prefix=*) PREFIX=`echo "$arg" | cut -d = -f 2`;;
--help) help;;
*) err=1; echo "[ERROR] Option '$arg' unsupported";;
esac
@@ -3065,7 +3067,7 @@ if [ "$ARG_ARM_EABI" = "1" ]; then
cmdline="$cmdline--eabi "
fi
-cmdline="$cmdline--target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype$advopts"
+cmdline="$cmdline--target=\$(MODELNAME) --ram=\$(MEMORYSIZE) --rbdir=\$(RBDIR) --type=$btype$advopts --prefix=\$(PREFIX)"
### end of cmdline
sed > Makefile \