projects
/
fw
/
cortex-toolchain
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
902b6a0
)
Added support for fetching the Linaro GCC. Add a note on being Cortex-M3 by default.
author
Michael Hope
<michael.hope@linaro.org>
Sat, 11 Sep 2010 10:03:06 +0000
(22:03 +1200)
committer
Michael Hope
<michael.hope@linaro.org>
Sat, 11 Sep 2010 10:03:06 +0000
(22:03 +1200)
summon-arm-toolchain
patch
|
blob
|
history
diff --git
a/summon-arm-toolchain
b/summon-arm-toolchain
index fa6d103dfdefe14a67a08be468f29c904d7eec46..222f4fe1e7fe479181fc96bab29fc4aac5b7eb19 100755
(executable)
--- a/
summon-arm-toolchain
+++ b/
summon-arm-toolchain
@@
-17,8
+17,17
@@
PREFIX=${HOME}/arm-none-eabi # Install location of your final toolchain
PARALLEL= # Or: PARALLEL="-j 5" for 4 CPUs
DARWIN_OPT_PATH=/opt/local # Path in which MacPorts or Fink is installed
PARALLEL= # Or: PARALLEL="-j 5" for 4 CPUs
DARWIN_OPT_PATH=/opt/local # Path in which MacPorts or Fink is installed
+# For FSF GCC:
+GCCVERSION=4.5.1
+GCC=gcc-${GCCVERSION}
+GCCURL=http://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.gz
+
+# For the Linaro GCC:
+# GCCVERSION=4.5-2010.08-1
+# GCC=gcc-linaro-${GCCVERSION}
+# GCCURL=http://launchpad.net/gcc-linaro/4.5/${GCCVERSION}/+download/${GCC}.tar.gz
+
BINUTILS=binutils-2.20
BINUTILS=binutils-2.20
-GCC=gcc-4.5.1
NEWLIB=newlib-1.18.0
GDB=gdb-7.2
LIBCMSIS=v1.10-2
NEWLIB=newlib-1.18.0
GDB=gdb-7.2
LIBCMSIS=v1.10-2
@@
-39,6
+48,9
@@
GCCFLAGS=
GDBFLAGS=
BINUTILFLAGS=
GDBFLAGS=
BINUTILFLAGS=
+# To default to the Cortex-M3:
+# GCCFLAGS="--with-arch=armv7-m --with-mode=thumb"
+
# 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
@@
-91,7
+103,7
@@
mkdir -p ${STAMPS} ${SOURCES}
cd ${SOURCES}
fetch ${BINUTILS} http://ftp.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2
cd ${SOURCES}
fetch ${BINUTILS} http://ftp.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2
-fetch ${GCC}
http://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.gz
+fetch ${GCC}
${GCCURL}
fetch ${NEWLIB} ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz
fetch ${GDB} http://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2
fetch ${NEWLIB} ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz
fetch ${GDB} http://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2