Shifted some variables about to allow a better override from local.sh
authorMichael Hope <michael.hope@linaro.org>
Sun, 12 Sep 2010 08:03:22 +0000 (20:03 +1200)
committerMichael Hope <michael.hope@linaro.org>
Sun, 12 Sep 2010 08:03:22 +0000 (20:03 +1200)
summon-arm-toolchain

index 7972c1b..03d5d48 100755 (executable)
@@ -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