VAR-SOM-MX6 Toolchain installation for out of Yocto Krogoth builds

From Variscite Wiki
VAR-SOM-MX6 - Yocto Krogoth toolchain installation for out of Yocto builds

Assuming you followed steps 1, 3 and 4 of the Build Yocto from source code guide, as an example of X11 build, build the toolchain by:

$ cd ~/var-imx-yocto-krogoth
$ MACHINE=var-som-mx6 DISTRO=fsl-imx-x11 source -b build_x11
$ bitbake meta-ide-support
$ bitbake meta-toolchain

The output will be located at tmp/deploy/sdk/. On a 64 bit Ubuntu you will get the following script.

Install the tools by running it:

$ tmp/deploy/sdk/ 

Reply to all defaults 'y'
The toolchain name depend on your build machine and may change.

Each time you wish to use the toolchain in a new shell session, you need to source the environment setup script:

$ source /opt/fsl-imx-x11/4.1.15-2.0.1/environment-setup-cortexa9hf-neon-poky-linux-gnueabi