binutils-2.21.1: allow svc instruction on cortex-m3
[fw/cortex-toolchain] / summon-arm-toolchain
index 558f3149839488e4c1c2911070b9dd3d23a3f277..fc998d96c00920188dde255999750b33d8654f8b 100755 (executable)
@@ -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} \