Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
software:linux:yocto:getting_started_cpp [2022-10-04 08:57] – Urs Graf | software:linux:yocto:getting_started_cpp [2024-04-23 13:08] (aktuell) – Moritz Lammerich | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
======= Getting Started with Yocto and C/C++ ======= | ======= Getting Started with Yocto and C/C++ ======= | ||
- | This guide will go through setting up a build environment and building an x86_64 image, and adding a small "hello world" application to it. First the application will be compiled using the [[ .:sdk | SDK ]], then it will be added to the image directly by creating a [[ .:recipes | Recipe | + | This guide will go through setting up a build environment and building an x86_64 image, and adding a small "hello world" application to it. This page is a summary of the information from [[software:linux: |
===== Setting up the Build Environment ===== | ===== Setting up the Build Environment ===== | ||
Zeile 8: | Zeile 8: | ||
This guide will assume everything is in a directory called '' | This guide will assume everything is in a directory called '' | ||
- | Next, clone '' | + | Next, clone '' |
< | < | ||
- | git clone -b dunfell | + | git clone -b kirkstone |
</ | </ | ||
Zeile 18: | Zeile 18: | ||
</ | </ | ||
- | Now we can initialize | + | Now we can initialize yocto using: |
< | < | ||
. poky/ | . poky/ | ||
</ | </ | ||
- | This will populate the build directory with all necessary files and give you access to '' | + | This will populate the build directory with all necessary files and give you access to '' |
- | ==== Setting the machine | + | ==== Setting the Machine |
Setting the machine tells bitbake what hardware to build for. This build will be a 64bit qemu image, so we can set the machine to '' | Setting the machine tells bitbake what hardware to build for. This build will be a 64bit qemu image, so we can set the machine to '' |