Building a GNU Cross tool-chain for AVR32
AVR32 is a 32-bit RISC
processor architecture. Atmel AVR 32-bit Toolchain is based on the
GNU toolchain. We propose to build a cross tool-chain for the AVR32
target, with the help of Crosstool-NG 1.20.0 and patches from
there. We provides
you a tarball with all the necessary material inside: Crosstool-NG
1.20.0, GNU tool-chain sources, patches, configuration files,
scripts,…
1. What you get after the build ?
You get a GNU cross tool-chain for AVR32/Newlib:- GNU GCC 4.4.7 C/C++ compiler (gcc, g++,…)
- GNU binutils 2.22 (objdump, readelf,…)
- Newlib Standard C Library (newlib) 1.20
2. Requirements
- A Linux host machine (may work on other Un*x machines)
- The following tools: grep, sed, bash, cut, install, make, gcc, awk, bison, flex, makeinfo, automake, libtool, stat, curl, cvs, patch, tar, gzip, bzip2, lzma, readlink, binutils, ncurses, expat
- make 3.82 (may not work with make 3.81)
3. Get the material
Download that tarball. It contains all the necessary material (scripts and source codes) to get a working GNU cross tool-chain for AVR32.4. Uncompress the tarball
$ tar zxvf crosstool-source-v4.tar.gz
5. Build the cross tool-chain
Run the building script:$ cd crosstool-source-v4
$ ./build.sh all avr32
$ ./build.sh all avr32
Be patient...the process of building the cross tool-chain is very long. Once finished, the cross tool-chain is in avr32 sub-directory.