Using Yocto/ELBE SDK for application development

From Wiki-DB
Revision as of 12:02, 19 June 2020 by Pzimmermann (talk | contribs) (Created page with "'''<big>This site is under construction!</big>''' Root filesystems made by Yocto and ELBE can come with a SDK to build applications for the rootFS. __TOC__ == Installation...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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

CMake

Qt-Creator

Eclipse