tcrosstool-ng.md - arm-sdk - os build toolkit for various embedded devices
HTML git clone https://git.parazyd.org/arm-sdk
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
tcrosstool-ng.md (1396B)
---
1 Using crosstool-ng to make your own toolchains
2 ==============================================
3
4 If the Devuan provided toolchain does not compile the kernel for your board, you
5 can then use [crosstool-ng](https://github.com/crosstool-ng/crosstool-ng.git) to
6 help you create your own GCC toolchain. Here are the basic steps to get a
7 working toolchain:
8
9 * Create a new directory in `$HOME` called `build`
10
11 ```
12 ; cd $HOME; mkdir build; cd build
13 ```
14
15 * Clone the crosstool-ng git repository
16
17 ```
18 ; git clone https://github.com/crosstool-ng/crosstool-ng && cd crosstool-ng
19 ```
20
21 * Install the required dependencies for using ct-ng
22
23 ```
24 ; sudo apt-get install build-essential autoconf automake ncurses-dev gperf flex texinfo help2man libtool-bin bison gawk
25 ```
26 * Compile crosstool-ng
27
28 ```
29 ; ./bootstrap
30 ; ./configure --prefix=$HOME/.local
31 ; make
32 ; make install
33 ```
34
35 Now you have installed crosstool-ng. Now let's create an armhf toolchain!
36 Go grab some beer and drink it until it's done compiling...
37
38 ```
39 ; export PATH="$HOME/.local/bin:$PATH"
40 ; mkdir -p $HOME/tc/armv7-rpi2-linux-gnueabihf
41 ; cd $HOME/tc/armv7-rpi2-linux-gnueabihf
42 ; ct-ng armv7-rpi2-linux-gnueabihf
43 ; ct-ng build
44 ```
45
46 Congrats! You've built a GCC toolchain and perhaps got drunk in the meantime :)
47
48 Be sure to check out `ct-ng list-samples` to see what other toolchains are
49 offered, or perhaps even configure your own with `menuconfig`