SDK Generation
A Yocto SDK provides a self-contained cross-compilation toolchain and sysroot that matches your target image, allowing you to build software outside the Yocto build environment.
Method 1 — populate_sdk (Recommended)
Generates a toolchain whose sysroot matches the target image exactly. Use this when building application software.
The SDK installer script is generated in:
Install the SDK
cd build/tmp/deploy/sdk/
./<distro>-<glibc>-<host-arch>-<image>-<target-arch>-<machine>-toolchain-<version>.sh
Follow the prompts — the default install path is /opt/<distro>/<version>/.
Use the SDK
Source the environment script before building:
The CC, CXX, LD, and other variables are now set for cross-compilation.
Method 2 — meta-toolchain
Generates a basic toolchain without a matching sysroot. Use this for bare-metal software like U-Boot or the Linux kernel.
Method 3 — meta-toolchain-qt5
Generates a toolchain with Qt5 libraries included.
VM users
If you are using the Engicam pre-built virtual machine, an SDK based on the Qt demo image is already installed under /opt/.