diff options
author | Michael Hope <michael.hope@linaro.org> | 2010-09-11 22:15:25 +1200 |
---|---|---|
committer | Michael Hope <michael.hope@linaro.org> | 2010-09-11 22:15:25 +1200 |
commit | 433bb43c280668e15b83c968841dcf43e83cbfe7 (patch) | |
tree | 2402cb05935ecfb1d417954f533c4dbadac325e1 | |
parent | eb973fbc4d38368aff03c18eb50418e25555dbc7 (diff) |
Added ability to have a local config that overrides the script.
-rwxr-xr-x | summon-arm-toolchain | 23 |
1 files 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 |