From 433bb43c280668e15b83c968841dcf43e83cbfe7 Mon Sep 17 00:00:00 2001 From: Michael Hope Date: Sat, 11 Sep 2010 22:15:25 +1200 Subject: [PATCH] Added ability to have a local config that overrides the script. --- summon-arm-toolchain | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/summon-arm-toolchain b/summon-arm-toolchain index 9eeceb1..7972c1b 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -19,7 +19,7 @@ DARWIN_OPT_PATH=/opt/local # Path in which MacPorts or Fink is installed # Set to 'sudo' if you need superuser privileges while installing SUDO= # Set to 1 to be quieter while running -QUIET=1 +QUIET=0 # For FSF GCC: GCCVERSION=4.5.1 @@ -45,14 +45,6 @@ SUMMON_DIR=$(pwd) SOURCES=${SUMMON_DIR}/sources STAMPS=${SUMMON_DIR}/stamps -MAKEFLAGS=${PARALLEL} -TARFLAGS=v - -if [ ${QUIET} != 0 ]; then - TARFLAGS= - MAKEFLAGS="${MAKEFLAGS} -s" -fi - export PATH="${PREFIX}/bin:${PATH}" GCCFLAGS= @@ -62,6 +54,19 @@ BINUTILFLAGS= # To default to the Cortex-M3: # GCCFLAGS="--with-arch=armv7-m --with-mode=thumb" +# Pull in the local configuration, if any +if [ -f local.sh ]; then + . ./local.sh +fi + +MAKEFLAGS=${PARALLEL} +TARFLAGS=v + +if [ ${QUIET} != 0 ]; then + TARFLAGS= + MAKEFLAGS="${MAKEFLAGS} -s" +fi + # Fetch a versioned file from a URL function fetch { if [ ! -e ${STAMPS}/$1.fetch ]; then -- 2.30.2