Based on https://github.com/esden/summon-arm-toolchain
I have made the following changes:
- Set the default flags so that everything builds on my system
- Updated Linaro GCC to version 4.8-2013.07-1
- Updated Linaro GDB to version 7.6-2013.05
- Updated newlib to version 2.0.0
- Build the master branch of openocd (for STM32F4 support)
- Added st-link support to the openocd build flags
- Added support for tar.xz archive files
- Removed unused code and patches
- Adapted the gcc-t-arm patch for gcc 4.8
- And a few other small changes
Usage on debian-based linux distributions (e.g. Ubuntu):
-
Install dependencies sudo apt-get install build-essential git flex bison libgmp3-dev libmpfr-dev libncurses5-dev libmpc-dev autoconf texinfo libtool libftdi-dev libusb-1.0-0-dev zlib1g zlib1g-dev python-yaml
-
Run the script ./summon-arm-toolchain
-
(Optional) add to path sudo su echo 'export PATH=/home/YOUR_USER/sat/bin:$PATH' > /etc/profile.d/arm_tools.sh exit
-
Done!
Also, see:
http://vedder.se/2012/07/get-started-with-stm32f4-on-ubuntu-linux/
for a complete tutorial