From: Michael Hope Date: Sun, 12 Sep 2010 08:03:22 +0000 (+1200) Subject: Shifted some variables about to allow a better override from local.sh X-Git-Url: https://git.gag.com/?p=fw%2Fcortex-toolchain;a=commitdiff_plain;h=b7a46ec0d9f6a59b4d461aeddbb1b4984e56cd14 Shifted some variables about to allow a better override from local.sh --- 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