Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| software:linux:yocto:sdk [2020-10-21 09:12] – Urs Graf | software:linux:yocto:sdk [2023-11-16 16:16] (aktuell) – 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 23: | Zeile 10: | ||
| < | < | ||
| - | bitbake <image name> -c poulate_sdk | + | bitbake <image name> -c populate_sdk |
| # for example: | # for example: | ||
| - | bitbake | + | bitbake |
| </ | </ | ||
| Zeile 31: | Zeile 18: | ||
| By default the SDK is in '' | By default the SDK is in '' | ||
| - | ==== Installing | + | === Changing |
| - | Buildig | + | 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 ==== | ||
| + | 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: | ||
| < | < | ||
| - | poky-glibc-x86_64-ntb-dev-image-armv7at2hf-neon-bblue-toolchain-3.0.2.host.manifest | + | poky-glibc-x86_64-ost-image-dev-armv7at2hf-neon-bblue-toolchain-3.0.2.host.manifest |
| - | poky-glibc-x86_64-ntb-dev-image-armv7at2hf-neon-bblue-toolchain-3.0.2.sh | + | poky-glibc-x86_64-ost-image-dev-armv7at2hf-neon-bblue-toolchain-3.0.2.sh |
| - | poky-glibc-x86_64-ntb-dev-image-armv7at2hf-neon-bblue-toolchain-3.0.2.target.manifest | + | poky-glibc-x86_64-ost-image-dev-armv7at2hf-neon-bblue-toolchain-3.0.2.target.manifest |
| - | poky-glibc-x86_64-ntb-dev-image-armv7at2hf-neon-bblue-toolchain-3.0.2.testdata.json | + | poky-glibc-x86_64-ost-image-dev-armv7at2hf-neon-bblue-toolchain-3.0.2.testdata.json |
| </ | </ | ||
| Zeile 49: | Zeile 43: | ||
| < | < | ||
| - | ./ | + | ./ |
| Poky (Yocto Project Reference Distro) SDK installer version 3.0.2 | Poky (Yocto Project Reference Distro) SDK installer version 3.0.2 | ||
| ================================================================= | ================================================================= | ||
| Zeile 82: | 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:// | ||