X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=summon-arm-toolchain;h=fd49ee9ba252d8cc9ab9a7fe9f0eba96fd2b168d;hb=d08135ea9d5b779eb61cb6ac3f485a5ef06874fa;hp=6f268e26a0c882c36634a7e68e141215fd930401;hpb=d4f2596d2b0de600c7bc84f0dfd7b1652fdc6801;p=summon-arm-toolchain.git diff --git a/summon-arm-toolchain b/summon-arm-toolchain index 6f268e2..fd49ee9 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!" @@ -54,13 +53,13 @@ echo "Downloading binutils sources..." wget -c http://ftp.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2 echo "Downloading gcc sources..." -wget -c ftp://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.bz2 +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 ftp://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2 +wget -c http://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2 if [ ${LIBSTM32_EN} != 0 ]; then if [ ! -e libcmsis-${LIBCMSIS}.tar.bz2 ]; then @@ -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}" @@ -265,6 +265,7 @@ if [ ! -e .${GDB}.build ]; then --prefix=${PREFIX} \ --enable-interwork \ --enable-multilib \ + --disable-werror \ ${GDBFLAGS} || exit echo "******************************************************************" echo "* Building ${GDB}"