This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "krobot-resources".
The branch, master has been updated
via 6f6f774a6e98e390a3fe2187b80fa73df3207bf2 (commit)
from aa2014bd10e386cc1c6520edec0555c0de7bdb3a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 6f6f774a6e98e390a3fe2187b80fa73df3207bf2
Author: Nicolas Dandrimont <Nic...@cr...>
Date: Wed Mar 2 21:22:39 2011 +0100
Add toolchain-building script.
-----------------------------------------------------------------------
Changes:
diff --git a/arm/STM32/build-arm-toolchain b/arm/STM32/build-arm-toolchain
new file mode 100755
index 0000000..8caf42e
--- /dev/null
+++ b/arm/STM32/build-arm-toolchain
@@ -0,0 +1,74 @@
+#!/bin/bash -e
+# Written by Uwe Hermann <uw...@he...>, released as public domain.
+# Heavily edited by Nicolas Dandrimont <ol...@cr...>, for use in [Kro]bot. Still released as Public Domain/CC0 where applicable.
+
+HOST=i686-linux-gnu # Or: HOST=x86_64-linux-gnu
+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.20.1
+GCC=gcc-4.5.1
+NEWLIB=newlib-1.18.0
+GDB=gdb-7.2
+
+export PATH="$PATH:$PREFIX/bin"
+
+mkdir build
+
+wget -c http://ftp.gnu.org/gnu/binutils/$BINUTILS.tar.bz2
+tar xfvj $BINUTILS.tar.bz2
+cd build
+../$BINUTILS/configure --target=$TARGET --prefix=$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
+cd build
+../$GCC/configure --target=$TARGET --prefix=$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 ..
+rm -rf build/
+mkdir build
+
+wget -c ftp://sources.redhat.com/pub/newlib/$NEWLIB.tar.gz
+tar xfvz $NEWLIB.tar.gz
+cd build
+../$NEWLIB/configure --target=$TARGET --prefix=$PREFIX --enable-interwork --enable-multilib --with-gnu-as --with-gnu-ld --disable-nls --disable-newlib-supplied-syscalls
+make $PARALLEL
+make install
+cd ..
+rm -rf build/
+mkdir build
+
+# Yes, you need to build gcc again!
+
+cd build
+../$GCC/configure --target=$TARGET --prefix=$PREFIX --enable-interwork --enable-multilib --enable-languages="c,c++" --with-newlib --disable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --with-float=soft --with-cpu=cortex-m3 --with-tune=cortex-m3 --with-mode=thumb --disable-libssp
+make $PARALLEL
+make install
+cd ..
+rm -rf build/
+mkdir build
+
+wget -c ftp://ftp.gnu.org/gnu/gdb/$GDB.tar.bz2
+tar xfvj $GDB.tar.bz2
+cd build
+../$GDB/configure --target=$TARGET --prefix=$PREFIX --enable-interwork --enable-multilib
+make $PARALLEL
+make install
+cd ..
+rm -rf build
+
hooks/post-receive
--
krobot-resources
|