Building a toolchain using crosstool-NG
Some years ago, Dan Kegel wrote a set of scripts and makefiles for generating cross-development toolchains and called it crosstool (http://kegel.com/crosstool/). In 2007, Yann E. Morin used that base to create the next generation of crosstool, crosstool-NG (https://crosstool-ng.github.io). Today it is by far the most convenient way to create a standalone cross toolchain from source.
In this section, we will use crosstool-NG to build toolchains for the BeagleBone Black
and QEMU.
Installing crosstool-NG
Before you can build crosstool-NG from source, you will first need to install a native toolchain and some build tools on your host machine. See the section on Technical requirements at the beginning of this chapter for crosstool-NG's complete list of build and runtime dependencies.
Next, get the current release from the crosstool-NG Git repository. In my examples, I have used version 1.24.0
. Extract it and create the frontend menu...