summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hope <michael.hope@linaro.org>2010-09-12 20:03:22 +1200
committerMichael Hope <michael.hope@linaro.org>2010-09-12 20:03:22 +1200
commitb7a46ec0d9f6a59b4d461aeddbb1b4984e56cd14 (patch)
treeaf77eae47862c50ab8cca7762b1c0780d56a4bf4
parent433bb43c280668e15b83c968841dcf43e83cbfe7 (diff)
Shifted some variables about to allow a better override from local.sh
-rwxr-xr-xsummon-arm-toolchain14
1 files changed, 8 insertions, 6 deletions
diff --git a/summon-arm-toolchain b/summon-arm-toolchain
index 7972c1b..03d5d48 100755
--- a/summon-arm-toolchain
+++ b/summon-arm-toolchain
@@ -8,6 +8,8 @@
# apt-get install flex bison libgmp3-dev libmpfr-dev libncurses5-dev \
# libmpc-dev autoconf texinfo build-essential
#
+# Or on Ubuntu Maverick give `apt-get build-dep gcc-4.5` a try.
+#
# Stop if any command fails
set -e
@@ -41,12 +43,6 @@ LIBOPENSTM32=master
LIBSTM32_EN=0
LIBOPENSTM32_EN=0
-SUMMON_DIR=$(pwd)
-SOURCES=${SUMMON_DIR}/sources
-STAMPS=${SUMMON_DIR}/stamps
-
-export PATH="${PREFIX}/bin:${PATH}"
-
GCCFLAGS=
GDBFLAGS=
BINUTILFLAGS=
@@ -67,6 +63,12 @@ if [ ${QUIET} != 0 ]; then
MAKEFLAGS="${MAKEFLAGS} -s"
fi
+export PATH="${PREFIX}/bin:${PATH}"
+
+SUMMON_DIR=$(pwd)
+SOURCES=${SUMMON_DIR}/sources
+STAMPS=${SUMMON_DIR}/stamps
+
# Fetch a versioned file from a URL
function fetch {
if [ ! -e ${STAMPS}/$1.fetch ]; then