This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# POSIX | |
# Reset all variables that might be set | |
file= | |
verbose=0 # Variables to be evaluated as shell arithmetic should be initialized to a default or validated beforehand. | |
while :; do | |
case $1 in | |
-h|-\?|--help) # Call a "show_help" function to display a synopsis, then exit. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PREFIX=/usr/local/$TARGET | |
export TARGET=arm-none-eabi-newlib | |
# build binutils | |
wget http://ftp.gnu.org/gnu/binutils/binutils-2.24.tar.bz2 | |
tar xf binutils-2.24.tar.bz2 | |
mkdir b-binutils | |
cd b-binutils | |
../binutils-2.24/configure --prefix=$PREFIX --program-prefix=arm-none-eabi- --target=arm-eabi --enable-lto --enable-interwork --enable-multilib | |
make -j5 |