Preparing an SDK
The Yocto build system can be used to generate a cross-compilation toolchain with a matching sysroot
for a target system, as well as a sysroot
with native applications. This is referred to as a standard Yocto Project SDK. The Yocto Project can also build an extensible SDK that extends the standard SDK by adding tools to facilitate adding new applications and libraries. This recipe will show how to build both types of SDK.
Getting ready
The standard SDK contains the cross-compilation toolchain, including the debugger as well as target and host sysroots. Its size depends on the image it is built to match, but is usually hundreds of MB. The extensible SDK comes in two flavors, full (the default) and minimal, and it allows for a certain degree of customization as well as being updatable.
- The full extensible SDK includes the following:
- Toolchain
- Complete shared state cache artifacts and everything needed to recreate the images it is built against
- The
devtool
command-line application...