Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
software:linux:yocto:layer [2022-09-27 09:08] – Urs Graf | software:linux:yocto:layer [2023-06-14 10:54] (aktuell) – Urs Graf | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Layers ====== | ====== Layers ====== | ||
- | Groups of recipes that belong together are grouped into layers. For example | + | Groups of recipes that belong together are grouped into layers. For example |
- | ===== Setting up the environment | + | ===== Setting up the Environment |
First, set up a build environment. If in doubt, follow [[ software: | First, set up a build environment. If in doubt, follow [[ software: | ||
This guide will assume that the environment matches the one set up there. | This guide will assume that the environment matches the one set up there. | ||
- | ===== Creating a custom layer ===== | + | ===== Creating a Custom Layer ===== |
To create a new layer, create a new directory in the '' | To create a new layer, create a new directory in the '' | ||
Zeile 23: | Zeile 23: | ||
</ | </ | ||
- | This file configures the layer and where to look for recipes. In this case it will look for a file in '' | + | This file configures the layer and where to look for recipes. In this case it will look for a file in '' |
- | * meta-ntb | + | * meta-ost |
* conf | * conf | ||
* layer.conf | * layer.conf | ||
- | | + | |
Finally, add the new layer to the build by adding it to '' | Finally, add the new layer to the build by adding it to '' | ||
Zeile 34: | Zeile 34: | ||
BBLAYERS ?= "\ | BBLAYERS ?= "\ | ||
... | ... | ||
- | / | + | / |
" | " | ||
... | ... | ||
</ | </ | ||
- | ===== Adding | + | ===== Adding |
Machines are the way to go to set machine/ | Machines are the way to go to set machine/ | ||
Zeile 48: | Zeile 48: | ||
Example: | Example: | ||
< | < | ||
- | DESCRIPTION = "Beckhoff CX2020 PLC" | + | DESCRIPTION = "generic x86_64 machine with RT kernel" |
require conf/ | require conf/ | ||
- | PREFERRED_PROVIDER_virtual/ | + | PREFERRED_PROVIDER_virtual/ |
- | KMACHINE_cx2020 | + | KMACHINE_x86-rt |
+ | COMPATIBLE_MACHINE_x86-rt = " | ||
</ | </ | ||
This example uses the '' | This example uses the '' | ||
- | While it is possible to set up everything from sratch, that job is best left to the vendor/BSP provider. | + | While it is possible to set up everything from scratch, that job is best left to the vendor/BSP provider. |
Additionally this machine specifies it's kernel and sets '' | Additionally this machine specifies it's kernel and sets '' | ||
Note that '' | Note that '' |