Template:Yocto Toolchain installation IMX: Difference between revisions
From Variscite Wiki
(Add support for Yocto Debian) |
No edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 18: | Line 18: | ||
Setup the environment: | Setup the environment: | ||
{{#lst:Yocto_Platform_Customization|YOCTO_ENV_SETUP_X}} | {{#lst:Yocto_Platform_Customization|YOCTO_ENV_SETUP_X}} | ||
{{#vardefine:SHELL_PROMPT|{{#if:{{#var:BUILD_YOCTO_IN_DOCKER_CONTAINER}}|vari@yocto-{{#var:DOCKER_CONTAINER_INFO}}:/workdir/{{#var:BUILD_FOLDER_ENV}}$|$}}}} | |||
Build the toolchain: | Build the toolchain: | ||
{{#var:SHELL_PROMPT}} {{#var:BB_ENV}} bitbake {{#varexists: DEFAULT_TOOLCHAIN_BB_NAME | {{#var:DEFAULT_TOOLCHAIN_BB_NAME}} | {{#varexists: B2QT_BSP_VERSION | meta-toolchain-b2qt-embedded-qt5-sdk | meta-toolchain}} }} | |||
<!-- Debian build with Yocto does currently not support building the SDK --> | |||
Debian build with Yocto does currently not support building the SDK | {{#switch:{{#var:PLATFORM_OS}}|Debian=| | ||
-->{{#switch:{{#var:PLATFORM_OS}}|Debian=| | |||
== Build a complete SDK == | == Build a complete SDK == | ||
Line 29: | Line 30: | ||
E.g. when using the {{#var:DEFAULT_IMAGE_BB_NAME}} image: | E.g. when using the {{#var:DEFAULT_IMAGE_BB_NAME}} image: | ||
{{#var:SHELL_PROMPT}} {{#var:BB_ENV}} bitbake -c populate_sdk {{#var:DEFAULT_IMAGE_BB_NAME}} | |||
{{Note|The SDK should match the rootfs image on the target, otherwise you may experience difficulties when trying to debug application failures.}} | {{Note|The SDK should match the rootfs image on the target, otherwise you may experience difficulties when trying to debug application failures.}} | ||
}} | }} | ||
Line 36: | Line 37: | ||
E.g. | E.g. | ||
{{#var:SHELL_PROMPT}} tmp/deploy/sdk/{{#var:TOOLCHAIN_INSTALL_NAME}} | |||
Note: The toolchain/script name depends on your build machine and the bitbaked image/recipe, and may change.<br> | Note: The toolchain/script name depends on your build machine and the bitbaked image/recipe, and may change.<br> | ||
<br> | <br> |