Diff of /arm/STM32/build-arm-toolchain [fed6bc] .. [0ae525] Maximize Restore

  Switch to side-by-side view

--- a/arm/STM32/build-arm-toolchain
+++ b/arm/STM32/build-arm-toolchain
@@ -6,36 +6,32 @@
 PREFIX=/home/nicolasd/opt/arm-i386 # Install location of your final toolchain
 
 echo "HOST is \`$HOST', PREFIX is \`$PREFIX'."
-echo
-echo "/!\\ USE A DEFINITIVE PREFIX, GCC IS NOT RELOCATABLE! /!\\"
-echo
-echo "Make sure this is okay and remove the exit 1 line in the script."
-exit 1
 
 TARGET=arm-none-eabi			 # Or: TARGET=arm-elf
 PARALLEL="-j3"			 # Or: PARALLEL=""
 
-BINUTILS=binutils-2.21
-GCC=gcc-4.5.2
+BINUTILS=binutils-2.22
+GCC=gcc-4.6.2
 NEWLIB=newlib-1.19.0
-GDB=gdb-7.2
+GDB=gdb-7.3.1
 
 export PATH="$PATH:$PREFIX/bin"
 mkdir build
 
-wget -c http://ftp.gnu.org/gnu/binutils/$BINUTILS.tar.bz2
-tar xfvj $BINUTILS.tar.bz2 
+wget -c http://ftp.crans.org/debian/pool/main/b/binutils/${BINUTILS/-/_}.orig.tar.gz
+tar xfvz binutils*.orig.tar.gz
 cd build
 ../$BINUTILS/configure --target=$TARGET --prefix=$PREFIX --with-sysroot=$PREFIX --enable-interwork --enable-multilib --with-gnu-as --with-gnu-ld --disable-nls
 make $PARALLEL
 make install
 cd ..
 rm -rf build/
+
 mkdir build
 wget -c ftp://ftp.gnu.org/gnu/gcc/$GCC/$GCC.tar.bz2
-tar xfvj $GCC.tar.bz2 
+tar xfvj $GCC.tar.bz2
 cd build
-../$GCC/configure --target=$TARGET --prefix=$PREFIX --with-sysroot=$PREFIX --enable-interwork --enable-multilib --enable-languages="c" --with-newlib --without-headers --disable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --disable-libssp  --with-float=soft --with-cpu=cortex-m3 --with-tune=cortex-m3 --with-mode=thumb 
+../$GCC/configure --target=$TARGET --prefix=$PREFIX --with-sysroot=$PREFIX --enable-interwork --enable-multilib --enable-languages="c" --with-newlib --without-headers --disable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --disable-libssp  --with-float=soft --with-cpu=cortex-m3 --with-tune=cortex-m3 --with-mode=thumb
 make $PARALLEL all-gcc
 make install-gcc
 cd ..