Template:Yocto Toolchain installation IMX: Difference between revisions

From Variscite Wiki
No edit summary
(Add support for Yocto Debian)
Line 7: Line 7:
--> {{#vardefine:TOOLCHAIN_INSTALL_NAME |  {{#var:TOOLCHAIN_INSTALL_B2QT_NAME | {{#var:TOOLCHAIN_INSTALL_NAME}}}}}} <!-- Override YOCTO_INSTALL_NAME if TOOLCHAIN_INSTALL_B2QT_NAME exists
--> {{#vardefine:TOOLCHAIN_INSTALL_NAME |  {{#var:TOOLCHAIN_INSTALL_B2QT_NAME | {{#var:TOOLCHAIN_INSTALL_NAME}}}}}} <!-- Override YOCTO_INSTALL_NAME if TOOLCHAIN_INSTALL_B2QT_NAME exists
--> {{#vardefine:BB_ENV | {{#var:BB_ENV|{{#varexists: B2QT_GIT | MACHINE={{#var:MACHINE_NAME}} | }} }} }} <!--
--> {{#vardefine:BB_ENV | {{#var:BB_ENV|{{#varexists: B2QT_GIT | MACHINE={{#var:MACHINE_NAME}} | }} }} }} <!--
--> {{#vardefine:B2QT_OR_YOCTO | {{#varexists: B2QT_GIT | B2QT | Yocto }} }} <!--
--> {{#vardefine:PLATFORM_OS | {{#varexists: B2QT_GIT | B2QT | {{#varexists: DEBIAN_NAME | Debian | Yocto }} }} }} <!--
--> {{#vardefine:RELEASE_GUIDE | {{#varexists:DEBIAN_NAME | Yocto_Debian_Build_Release | {{#var:PLATFORM_OS}}_Build_Release }} }} <!--
--> {{PageHeader|Yocto toolchain installation for out of Yocto builds}} {{DocImage|category1=Yocto|category2={{#var:HARDWARE_NAME}}}} __toc__
--> {{PageHeader|Yocto toolchain installation for out of Yocto builds}} {{DocImage|category1=Yocto|category2={{#var:HARDWARE_NAME}}}} __toc__


== Prerequisites==
== Prerequisites==
A full {{#var:B2QT_OR_YOCTO}} build environment is required for the toolchain generation.<br>
A full {{#var:PLATFORM_OS}} build environment is required for the toolchain generation.<br>
To setup a {{#var:B2QT_OR_YOCTO}} build environment follow steps 1 & 3 of the {{Varlink|{{#var:B2QT_OR_YOCTO}}_Build_Release|{{#var:RELEASE_LINK}}|Build {{#var:B2QT_OR_YOCTO}} from source code}} guide and then proceed to either the toolchain or complete SDK steps below:
To setup a {{#var:PLATFORM_OS}} build environment follow steps 1 & 3 of the {{Varlink|{{#var:RELEASE_GUIDE}}|{{#var:RELEASE_LINK}}|Build {{#var:PLATFORM_OS}} from source code}} guide and then proceed to either the toolchain or complete SDK steps below:


== Build a toolchain ==
== Build a toolchain ==
Line 18: Line 19:
{{#lst:Yocto_Platform_Customization|YOCTO_ENV_SETUP_X}}
{{#lst:Yocto_Platform_Customization|YOCTO_ENV_SETUP_X}}
Build the toolchain:
Build the toolchain:
  $ {{#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}} }}
  $ {{#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.
-->{{#switch:{{#var:PLATFORM_OS}}|Debian=|
== Build a complete SDK ==
== Build a complete SDK ==


Line 28: Line 31:
  $ {{#var:BB_ENV}} bitbake -c populate_sdk {{#var:DEFAULT_IMAGE_BB_NAME}}
  $ {{#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.}}
 
}}
== Install the toolchain/SDK ==
== Install the toolchain/SDK ==
Install the tools by running the resulted script in tmp/deploy/sdk/.
Install the tools by running the resulted script in tmp/deploy/sdk/.

Revision as of 12:21, 19 April 2024