Last active
August 29, 2015 13:59
-
-
Save Jokymon/10924161 to your computer and use it in GitHub Desktop.
Instructions to build the raspberry Pi gcc crosstoolchain
This file contains 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
sudo apt-get install bison cvs flex gperf texinfo automake libtool gawk libncurses5-dev subversion | |
cd Downloads | |
wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.19.0.tar.bz2 | |
cd .. | |
mkdir -p toolchain/raspberrypi | |
cd toolchain/raspberrypi | |
tar xjf ../../Downloads/crosstool-ng-1.19.0.tar.bz2 | |
cd crosstool-ng-1.19.0 | |
mkdir -p ~/local/crosstool-ng | |
./configure --prefix=${HOME}/local/crosstool-ng | |
make | |
make install | |
export PATH=$PATH:~/local/crosstool-ng/bin/ | |
mkdir -p ~/toolchain/raspberrypi/staging | |
cd ~/toolchain/raspberrypi/staging | |
ct-ng menuconfig | |
# Target options --> Target architecture --> arm | |
# Target options --> Endianess --> little endian | |
# Target options --> Bitness --> 32 bit | |
# Operating System --> Linux | |
# Binary Utilities --> binutils version --> /select a desired version/ | |
# C compiler --> Show Linaro versions | |
# C compiler --> gcc version --> /select a desired version/ | |
# C compiler --> C++ | |
ct-ng build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment