binutils-2.21.1: allow svc instruction on cortex-m3
[fw/cortex-toolchain] / summon-arm-toolchain
index 100a5f03ea0e04e709f7c22c06323a248b264bdd..fc998d96c00920188dde255999750b33d8654f8b 100755 (executable)
@@ -116,9 +116,9 @@ else
        GCCURL=http://launchpad.net/gcc-linaro/4.5/${GCCRELEASE}/+download/${GCC}.tar.bz2
 fi
 
-BINUTILS=binutils-2.21
+BINUTILS=binutils-2.21.1
 NEWLIB=newlib-1.19.0
-GDB=gdb-7.2
+GDB=gdb-7.3.1
 OOCD=master
 LIBCMSIS=v1.10-3
 LIBSTM32=v3.0.0-2
@@ -335,6 +335,10 @@ fi
 
 if [ ! -e ${STAMPS}/${BINUTILS}.build ]; then
     unpack ${BINUTILS}
+    log "Patching binutils to allow SVC support on cortex-m3"
+    cd ${BINUTILS}
+    patch -p1 -i ../patches/patch-binutils-2.21.1-svc-cortexm3.diff
+    cd ..
     cd build
     log "Configuring ${BINUTILS}"
     ../${BINUTILS}/configure --target=${TARGET} \
@@ -442,6 +446,7 @@ if [ ! -e ${STAMPS}/openocd-${OOCD}.build ]; then
     CFLAGS="${CFLAGS} ${OOCD_CFLAGS}" \
     LDFLAGS="${LDFLAGS} ${OOCD_LDFLAGS}" \
     ../openocd-${OOCD}/configure --enable-maintainer-mode \
+                                --disable-werror \
                                 --prefix=${PREFIX} \
                                 --enable-dummy \
                                 --enable-ft2232_libftdi \