RZ/V2M Linux Package Start-Up Guide
R01US0527EJ0110 Rev.1.10
Page 25 of 39
Oct.8.2021
6. Exporting Toolchains
Refer to the documents from Yocto Project to export Toolchains. The information is available at
“
http://www.yoctoproject.org/docs/current/adt-manual/adt-manual.html
”. Use the build target of bitbake as
“core-image-bsp -c populate_sdk” to generate a package.
Notice: 1. The following instruction assumes that you already extract and prepare the recipe environment described in
section 2. You may reuse ${WORK}/build while using the same configuration after executing bitbake shown as
in section 2 for this purpose.
2. If you use RZ/V2M DRP-AI Support Package or RZ/V2M ISP Support Package, deploy them before building
SDK. Refer to each
package’s document for the detail to apply each application to SDK.
3. If you get an error while building SDK, please delete the tmp folder and retry bitbake as follows.
$ rm -rf ${WORK}/build/tmp
$ bitbake core-image-bsp
$ bitbake core-image-bsp -c populate_sdk
Step 1. Building toolchain package with bitbake
Run the following commands on Linux PC and build the SDK for core-image-bsp in ${WORK}/build.
$ bitbake core-image-bsp -c populate_sdk
Step 2. Install toolchain
After the build, the SDK installer will be generated. Run the install shell (poky-glibc-x86_64-core-image-bsp-
aarch64-toolchain-2.4.3.sh) on Linux PC and install the SDK into the build machine.
$ cd ${WORK}/build/tmp/deploy/sdk/
$ bash poky-glibc-x86_64-core-image-bsp-aarch64-toolchain-2.4.3.sh
Poky (Yocto Project Reference Distro) SDK installer version 2.4.3
=================================================================
Enter target directory for SDK (default: /opt/poky/2.4.3):
<Press Enter>
You are about to install the SDK to "/opt/poky/2.4.3". Proceed[Y/n]?
Y
Extracting SDK......................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the
environment setup script e.g.
$ . /opt/poky/2.4.3/environment-setup-aarch64-poky-linux
$
Step 3. Setup the SDK environment variables
Set up environment variables as follows.
$ source /opt/poky/2.4.3/environment-setup-aarch64-poky-linux