Using Yocto/ELBE SDK for application development
From Wiki-DB
This site is under construction!
Root filesystems made by Yocto and ELBE can come with a SDK to build applications for the rootFS.
Installation
To install the SDK the following packets have to be installed on the machine:
- xz-utils
- file
- patchelf
Run the setup-script (e.g. setup-elbe-sdk-arm-linux-gnueabihf-dhcom-buster-base-1.0.sh) as root to start the installation.
Using the SDK
The SDK consists of two parts:
- A sysroot with the compiler, headers and libraries needed to build applications for the rootFS
- A file with environment variables to setup the build environment (sourcing this file sets variables like ${CC} or ${LD})
Folowing are instructions how to use the SDK with different build-systems and IDEs:
Makefiles
Open a shell and source the file with the environment variables.
Now you can use make to build applications in this shell session. Important: Do not overwrite variables which were set by SDK in the makefile (or call make with '-e' to discard variables set in the makefile).