Skip to content

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.


Generates a toolchain whose sysroot matches the target image exactly. Use this when building application software.

bitbake <image-name> -c populate_sdk

Example

bitbake engicam-evaluation-image -c populate_sdk

The SDK installer script is generated in:

build/tmp/deploy/sdk/

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:

. /opt/<distro>/<version>/environment-setup-<target-arch>-<os>

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.

bitbake meta-toolchain

Method 3 — meta-toolchain-qt5

Generates a toolchain with Qt5 libraries included.

bitbake meta-toolchain-qt5

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/.