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 [2022-09-29 11:37] – 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 81: | Zeile 68: | ||
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:// |