Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
software:linux:yocto:sdk [2022-05-24 16:36] – Moritz Lammerich | software:linux:yocto:sdk [2023-04-25 11:08] – Moritz Lammerich | ||
---|---|---|---|
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 ==== | ||
Zeile 81: | Zeile 76: | ||
The script needs to be sourced rather than executed. | The script needs to be sourced rather than executed. | ||
Now running any standard build system (eg '' | Now running any standard build system (eg '' | ||
+ | |||
+ | |||
+ | ==== Developing Kernel Modules ==== | ||
+ | |||
+ | When using [[meta-ost]], | ||
+ | However, properly compiling an out of tree module requires some additional steps: | ||
+ | |||
+ | < | ||
+ | . path/ | ||
+ | pushd path/ | ||
+ | make scripts | ||
+ | make prepare | ||
+ | </ | ||
+ | |||
+ | Source: {{ https:// | ||
+ | |||
+ | Note that depending on the location of the installed SDK, '' | ||
+ | This has been observed when installing the SDK in ''/ | ||
+ | The easiest way to work around this is installing the SDK in a location under the current user's home directory. | ||
=== Additional Information === | === Additional Information === | ||
[[ https:// | [[ https:// |