2013-02-13 13:59:02 +01:00
|
|
|
// -*- mode:doc; -*-
|
|
|
|
// vim: set syntax=asciidoc:
|
2012-11-11 04:14:42 +01:00
|
|
|
|
2012-02-08 23:20:54 +01:00
|
|
|
[[toolchain-custom]]
|
2012-11-11 04:14:42 +01:00
|
|
|
Customizing the toolchain
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~
|
2012-02-08 23:20:54 +01:00
|
|
|
|
|
|
|
There are three distinct types of toolchain backend supported in Buildroot,
|
|
|
|
available under the menu +Toolchain+, invoking +make menuconfig+.
|
|
|
|
|
|
|
|
Using the external toolchain backend
|
2012-11-11 04:14:42 +01:00
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2012-02-08 23:20:54 +01:00
|
|
|
|
|
|
|
There is no way of tuning an external toolchain since Buildroot does not
|
|
|
|
generate it.
|
|
|
|
|
|
|
|
It also requires to set the Buildroot settings according to the toolchain ones
|
2013-02-25 12:31:21 +01:00
|
|
|
(see xref:external-toolchain-backend[]).
|
2012-02-08 23:20:54 +01:00
|
|
|
|
|
|
|
Using the internal Buildroot toolchain backend
|
2012-11-11 04:14:42 +01:00
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2012-02-08 23:20:54 +01:00
|
|
|
|
|
|
|
The internal Buildroot toolchain backend *only* allows to generate
|
|
|
|
*http://www.uclibc.org/[uClibc]-based toolchains*.
|
|
|
|
|
|
|
|
However, it allows to tune major settings, such as:
|
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
* Linux headers version;
|
2012-02-08 23:20:54 +01:00
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
* http://www.uclibc.org/[uClibc] configuration (see xref:uclibc-custom[uClibc]);
|
2012-02-08 23:20:54 +01:00
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
* Binutils, GCC, Gdb and toolchain options.
|
2012-02-08 23:20:54 +01:00
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
These settings are available after selecting the +Buildroot toolchain+ type in
|
2012-02-08 23:20:54 +01:00
|
|
|
the menu +Toolchain+.
|
|
|
|
|
|
|
|
Using the Crosstool-NG backend
|
2012-11-11 04:14:42 +01:00
|
|
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2012-02-08 23:20:54 +01:00
|
|
|
|
|
|
|
The http://crosstool-ng.org[crosstool-NG] toolchain backend enables a rather
|
2012-11-27 12:59:17 +01:00
|
|
|
limited set of settings under the Buildroot +Toolchain+ menu:
|
2012-02-08 23:20:54 +01:00
|
|
|
|
|
|
|
* The http://crosstool-ng.org[crosstool-NG] configuration file
|
|
|
|
|
|
|
|
* Gdb and some toolchain options
|
|
|
|
|
2012-11-27 12:59:16 +01:00
|
|
|
Then, the toolchain can be fine-tuned by invoking +make ctng-menuconfig+.
|