Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
software:linux:yocto:sdk [2022-09-26 15:44] – Moritz Lammerich | software:linux:yocto:sdk [2023-07-07 14:40] – Urs Graf | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== SDK' | + | ====== SDK ====== |
- | + | ||
- | ===== Build Natively ===== | + | |
- | + | ||
- | This is the simplest but also least useful way to build packages for yocto. | + | |
- | By default, there is no toolchain installed in the image. | + | |
- | + | ||
- | To add the toolchain to an image, append '' | + | |
- | + | ||
- | < | + | |
- | CORE_IMAGE_INSTALL_append | + | |
- | </ | + | |
- | + | ||
- | Note that this will significantly increase image size and build time. | + | |
===== Cross Development SDK ===== | ===== Cross Development SDK ===== | ||
Zeile 30: | Zeile 17: | ||
This will generate a toolchain with a sysroot containing all header/ | This will generate a toolchain with a sysroot containing all header/ | ||
By default the SDK is in '' | By default the SDK is in '' | ||
+ | |||
+ | === Changing the SDK HOST CPU Architecture === | ||
+ | |||
+ | By default, the SDK is built for '' | ||
+ | To build the SDK for a 64bit ARM host (e.g. ARM based Apple computers), add the following to '' | ||
+ | < | ||
+ | SDKMACHINE = " | ||
+ | </ | ||
==== Installing the SDK ==== | ==== Installing the SDK ==== | ||
- | The sdk can be built as described above or can be fetched from [[software: | + | The sdk can be built as described above or can be fetched from [[software: |
For example, building the SDK yields: | For example, building the SDK yields: | ||