- Darwinports (or MacPorts) : install Darwinports , (install MacPorts)
- Curl : install Curl
- wget : install wget
- Git : install Git
- GMP : install GMP
- MPFR : install MPFR
- libiconv : install libiconv
Installation
Download packages
Download all packages below :
- binutils-2.19.1.tar.bz2
- gcc-4.4.2.tar.bz2
- gdb-7.1.tar.bz2
- newlib-1.17.0.tar.gz
- Arm-toolchain-mac.tar.gz
Build Arm toolchain
Extract Arm-toolchain-mac.tar.gz in a directory of your choice (example : /Users/yourusername/) : tar xvzf Arm-toolchain-mac.tar.gz.
Copy in the directory "Gnu-Arm-Toolchain/sources" binutils-2.19.1.tar.bz2, gcc-4.4.2.tar.bz2, gdb-7.1.tar.bz2 and newlib-1.17.0.tar.gz without extracting them.
Start a terminal session, and go to the directory "Gnu-Arm-Toolchain" (/Users/yourusername/Gnu-Arm-Toolchain in our example). Then tape : ./build_arm_toolchain.sh to execute the script and to install the arm toolchain.
Use Arm toolchain
You need to set up environment variables.
Start a terminal session and tape :
pico ~/.bash_profile
At the end of this file, add the following line (arranged according to your settings) :
export PATH=/Users/yourusername/Gun-Arm-Toolchain/arm-elf-toolchain/bin:$PATH
Save and quit the file :
- CTRL+o
-
CTRL+x
Then restart your session.
You can check that you have successfully installed GNU Arm toolchain on your PC by starting a shell session and taping "arm-elf-gcc".