From 3dad9aee73f1da4e911d7d42953bb06e5a26b770 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 12 Feb 2015 13:32:59 -0800 Subject: adt-manual, ref-manual: Detail on using an external toolchain. Fixes [YOCTO #4907] I created a new section in the toolchain chapter of the adt-manual called "optionally Using an External Toolchain". This provides some fundamental information for the user that wants to use an external toolchain. Additionally, it references Mentor Graphics Sourcery toolchain as an example. In the ref-manual, I updated the TCMODE variable description to better integrate the MGC Sourcery toolchain as the overriding example. (From yocto-docs rev: 51e9c3b88f7e5a16da2aa101589b0f2612fff11d) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 38 +++++++++++++++++------------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'documentation/ref-manual') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 8f0d8917b5..971a89806d 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -11140,35 +11140,41 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" + + The TCMODE variable is similar to + TCLIBC, + which controls the variant of the GNU standard C library + (libc) used during the build process: + glibc or uclibc. + + With additional layers, it is possible to use a pre-compiled external toolchain. One example is the Sourcery G++ Toolchain. The support for this toolchain resides in the separate + Mentor Graphics meta-sourcery layer at . - You can use meta-sourcery as a - template for adding support for other external toolchains. - The TCMODE variable points the build - system to a file in - conf/distro/include/tcmode-${TCMODE}.inc. - Thus, for meta-sourcery, - which has conf/distro/include/tcmode-external-sourcery.inc, - you would set the variable as follows: - - TCMODE ?= "external-sourcery" - + The layer's README file contains + information on how to use the Sourcery G++ Toolchain as + an external toolchain. + In summary, you must be sure to add the layer to your + bblayers.conf file in front of the + meta layer and then set the + EXTERNAL_TOOLCHAIN + variable in your local.conf file + to the location in which you installed the toolchain. - The variable is similar to - TCLIBC, - which controls the variant of the GNU standard C library - (libc) used during the build process: - glibc or uclibc. + The fundamentals used for this example apply to any + external toolchain. + You can use meta-sourcery as a + template for adding support for other external toolchains. -- cgit v1.2.3-54-g00ecf