First, installation Crosstool-ng
1 , establish Arm-linux-tools directory, and enter the directory
$ mkdir arm-linux-tools
$ cd arm-linux-tools
2 , Get Crosstool-ng the source code
$ wget http://crosstool-ng.org/download/crosstool-ng/crosstool-ng-1.20.0.tar.bz2
3 , decompression Crosstool-ng the source code
$ tar xvjf crosstool-ng-1.20.0.tar.bz2
Consider the various directories that will be used in the future, and set up the following directories first.
$ mkdir crosstool-build crosstool-install src crosstoo
4 , configure and perform dependency detection
$ cd crosstool-ng-1.20.0
$ ./configure--prefix/home/eric/arm-linux-tools/crosstool-install/
Before you configure, you need to make sure that the following software is installed
1 ) Gperf
2 ) Bison
3 ) Flex
4 ) Texinfo
5 ) gawk
6 ) Libtool
7 ) Automake
8 ) Libncurses5-dev
9 ) g++
Ten ) Help2man
In the configuration, it will be dependent on detection, if there is a missing package, install and then perform the configuration.
after a successful configuration, we will automatically create the required Makefile file.
5 , compile, and install
$ make
$ make install
6 , configure environment variables
$ Export path= $PATH:/home/eric/arm-linux-tools/crosstool-install/bin/
7 , check Crosstool-ng whether the installation was successful
$ ct-ng-v
Ubuntu compiler ARM-LINUX-GCC Tool chain-Install Crosstool-ng