X-Git-Url: https://git.gag.com/?p=fw%2Fcortex-toolchain;a=blobdiff_plain;f=summon-arm-toolchain;h=892c687563be7fa940c1dc193a836e79495cb1ae;hp=7977d8d6cc6efc008876e5963bcebb7892df2879;hb=e1cdb029e276a002b8720224951ddb4702386367;hpb=92695d8e2603d3d78b6ce5bdba7dcb8535d98285 diff --git a/summon-arm-toolchain b/summon-arm-toolchain index 7977d8d..892c687 100755 --- a/summon-arm-toolchain +++ b/summon-arm-toolchain @@ -15,7 +15,7 @@ LIBCMSIS=v1.10-2 LIBSTM32=v3.0.0-1 LIBSTM32USB=v3.0.1-1 LIBOPENSTM32=master -LIBSTM32_EN=1 +LIBSTM32_EN=0 LIBOPENSTM32_EN=0 SUMMON_DIR=$(pwd) @@ -23,20 +23,19 @@ SOURCES=${SUMMON_DIR}/sources export PATH="${PREFIX}/bin:${PATH}" +GCCFLAGS= +GDBFLAGS= +BINUTILFLAGS= + case "$(uname)" in Linux) echo "Found Linux OS." - GCCFLAGS= - GDBFLAGS= - BINUTILFLAGS= ;; Darwin) echo "Found Darwin OS." GCCFLAGS="--with-gmp=${DARWIN_OPT_PATH} \ --with-mpfr=${DARWIN_OPT_PATH} \ -with-libiconv-prefix=${DARWIN_OPT_PATH}" - GDBFLAGS="--disable-werror" - BINUTILFLAGS="--disable-werror" ;; *) echo "Found unknown OS. Aborting!" @@ -57,7 +56,7 @@ echo "Downloading gcc sources..." wget -c http://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.bz2 echo "Downloading newlib sources..." -wget -c ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz +wget -c --no-passive-ftp ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz echo "Downloading gdb sources..." wget -c http://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2 @@ -128,6 +127,7 @@ if [ ! -e .${BINUTILS}.build ]; then --with-gnu-as \ --with-gnu-ld \ --disable-nls \ + --disable-werror \ ${BINUTILFLAGS} || exit echo "******************************************************************" echo "* Building ${BINUTILS}" @@ -165,6 +165,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 +199,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 +237,7 @@ if [ ! -e .${GCC}.build ]; then --with-gnu-as \ --with-gnu-ld \ --disable-nls \ + --disable-werror \ ${GCCFLAGS} || exit echo "******************************************************************" echo "* Building ${GCC}" @@ -265,6 +268,7 @@ if [ ! -e .${GDB}.build ]; then --prefix=${PREFIX} \ --enable-interwork \ --enable-multilib \ + --disable-werror \ ${GDBFLAGS} || exit echo "******************************************************************" echo "* Building ${GDB}"