Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
software:linux:yocto:getting_started_cpp [2022-10-04 08:56] Urs Grafsoftware: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:yocto:setup|Setup and Building]], [[software:linux:yocto:recipes|Recipes]] and [[software:linux:yocto:devtool|devtool]].
  
 ===== Setting up the Build Environment ===== ===== Setting up the Build Environment =====
Zeile 8: Zeile 8:
 This guide will assume everything is in a directory called ''yocto'' in your the home of the user ''ubuntu'': ''/home/ubuntu/yocto''. This folder can by anywhere on the system though. This guide will assume everything is in a directory called ''yocto'' in your the home of the user ''ubuntu'': ''/home/ubuntu/yocto''. This folder can by anywhere on the system though.
  
-Next, clone ''poky'', [[..: | yocto']] reference distribution. At the time of writing ''yocto-3.0.2'' is the newest release, feel free to substitute it for a newer/different version.+Next, clone ''poky'', yocto's reference distribution. At the time of writing ''yocto-3.0.2'' is the newest release, feel free to substitute it for a newer/different version.
 <code> <code>
-git clone -b dunfell git://git.yoctoproject.org/poky+git clone -b kirkstone git://git.yoctoproject.org/poky
 </code> </code>
  
Zeile 18: Zeile 18:
 </code> </code>
  
-Now we can initialize [[..: | yocto ]] using:+Now we can initialize yocto using:
 <code> <code>
 . poky/oe-init-build-env build/ . poky/oe-init-build-env build/
 </code> </code>
-This will populate the build directory with all necessary files and give you access to ''bitbake'', the build system used by [[..: | yocto ]].+This will populate the build directory with all necessary files and give you access to ''bitbake'', the build system used by yocto.
  
-==== 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 ''qemu86-64''. This means we can run this image in Qemu. 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 ''qemu86-64''. This means we can run this image in Qemu.
Zeile 151: Zeile 151:
 </code> </code>
  
-This means the package provided by the [[ .:recipes | recipe ]] was built successfully.+This means the package provided by the recipe was built successfully.
  
 ===== Adding the Recipe to the Image ===== ===== Adding the Recipe to the Image =====