Fixed building on Mac OS X.
[fw/cortex-toolchain] / summon-arm-toolchain
index fd49ee9ba252d8cc9ab9a7fe9f0eba96fd2b168d..d77ac17b673df1bcd6eaaaa3073947a1e21ca2da 100755 (executable)
@@ -2,15 +2,22 @@
 # Written by Uwe Hermann <uwe@hermann-uwe.de>, released as public domain.
 # Modified by Piotr Esden-Tempski <piotr@esden.net>, released as public domain.
 
+#
+# Requirements (example is for Debian, replace package names as needed):
+#
+# apt-get install flex bison libgmp3-dev libmpfr-dev libncurses5-dev \
+# libmpc-dev autoconf texinfo build-essential
+#
+
 TARGET=arm-none-eabi           # Or: TARGET=arm-elf
 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
 
-BINUTILS=binutils-2.19.1
-GCC=gcc-4.4.2
-NEWLIB=newlib-1.17.0
-GDB=gdb-7.1
+BINUTILS=binutils-2.20
+GCC=gcc-4.5.1
+NEWLIB=newlib-1.18.0
+GDB=gdb-7.2
 LIBCMSIS=v1.10-2
 LIBSTM32=v3.0.0-1
 LIBSTM32USB=v3.0.1-1
@@ -35,6 +42,7 @@ case "$(uname)" in
        echo "Found Darwin OS."
        GCCFLAGS="--with-gmp=${DARWIN_OPT_PATH} \
                  --with-mpfr=${DARWIN_OPT_PATH} \
+                 --with-mpc=${DARWIN_OPT_PATH} \
                  -with-libiconv-prefix=${DARWIN_OPT_PATH}"
        ;;
        *)
@@ -165,6 +173,7 @@ if [ ! -e .${GCC}-boot.build ]; then
                       --with-gnu-as \
                       --with-gnu-ld \
                       --disable-nls \
+                      --disable-werror \
                      ${GCCFLAGS} || exit
     echo "******************************************************************"
     echo "* Building ${GCC}-boot"
@@ -198,6 +207,7 @@ if [ ! -e .${NEWLIB}.build ]; then
                          --with-gnu-as \
                          --with-gnu-ld \
                          --disable-nls \
+                         --disable-werror \
                          --disable-newlib-supplied-syscalls || exit
     echo "******************************************************************"
     echo "* Building ${NEWLIB}"
@@ -235,6 +245,7 @@ if [ ! -e .${GCC}.build ]; then
                       --with-gnu-as \
                       --with-gnu-ld \
                      --disable-nls \
+                      --disable-werror \
                     ${GCCFLAGS} || exit
     echo "******************************************************************"
     echo "* Building ${GCC}"