Trucrux Inc

Build a complete SDK

To compile applications that require libraries other than glibc you should build an SDK which contains development versions of all libraries in the rootfs image, and not just the basic toolchain.

Building SDK #

$ cd ~/CodeSetup
$ MACHINE=imx8mq-trux-q01 DISTRO=fslc-xwayland . setup-environment build_xwayland

NOTE: The SDK should match the rootfs image on the target, otherwise you may experience difficulties when trying to debug application failures.

To build SDK for fsl-image-gui

$  bitbake -c populate_sdk fsl-image-gui

Installing SDK #

$ tmp/deploy/sdk/

NOTE: The toolchain/script name depends on your build machine and the bitbaked image/recipe, and may change.

Accept all the default options, and at the end of the installation you should see the following:

SDK has been successfully set up and is ready to be used.

Using SDK #

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

$ source /opt/fslc-xwayland/3.1/environment-setup-aarch64-fslc-linux