X-Git-Url: https://git.gag.com/?p=fw%2Fcortex-toolchain;a=blobdiff_plain;f=summon-arm-toolchain;h=7972c1ba301e2cb67e8b897c56add3f18b2484a1;hp=9eeceb15509d37e6deafe42d65f0fc389de4df8a;hb=433bb43c280668e15b83c968841dcf43e83cbfe7;hpb=eb973fbc4d38368aff03c18eb50418e25555dbc7 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