projects
/
summon-arm-toolchain.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
eb973fb
)
Added ability to have a local config that overrides the script.
author
Michael Hope
<michael.hope@linaro.org>
Sat, 11 Sep 2010 10:15:25 +0000
(22:15 +1200)
committer
Michael Hope
<michael.hope@linaro.org>
Sat, 11 Sep 2010 10:15:25 +0000
(22:15 +1200)
summon-arm-toolchain
patch
|
blob
|
history
diff --git
a/summon-arm-toolchain
b/summon-arm-toolchain
index 9eeceb15509d37e6deafe42d65f0fc389de4df8a..7972c1ba301e2cb67e8b897c56add3f18b2484a1 100755
(executable)
--- 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
# 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
# For FSF GCC:
GCCVERSION=4.5.1
@@
-45,14
+45,6
@@
SUMMON_DIR=$(pwd)
SOURCES=${SUMMON_DIR}/sources
STAMPS=${SUMMON_DIR}/stamps
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=
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"
# 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
# Fetch a versioned file from a URL
function fetch {
if [ ! -e ${STAMPS}/$1.fetch ]; then