Build and Install SDK

From Estone Technology Wiki
Jump to: navigation, search

Previous Section: Setup Yocto Build Environment

Build SDK

Build SDK Setup

Note: Different machine setup will have different SDK. This Sample SDK is based on (i.MX8M-fsl-imx-xwayland) build.

  1. Before starting SDK build follow the Yocto Build Environment guide if not already done
  2. Change directory path to where Yocto sources directory was created
$ cd imx-yocto-bsp
$ nano ../sources/meta-qt5/recipes-qt/qt5/nativesdk-qtbase_git.bb
# Add 2nd line to nativesdk-qtbase_git.bb file after first line:
mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/
install -d -m 755 ${D}${SDKPATHNATIVE}/environment-setup.d/
$ DISTRO=fsl-imx-wayland MACHINE=imx8mqevk source avs-setup-demo.sh -b <sdk_dir>
$ bitbake meta-toolchain-qt5

SDK compile time varies based on host machine cores that are available for compile

SDK Location

finished SDK executable location:

$ cd /imx-yocto-bsp/build_dir/tmp/deploy/sdk/fsl-imx-wayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.9.88-2.0.0.sh
$ sudo cp fsl-imx-wayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.9.88-2.0.0.sh ~/

Installing SDK

$ cd ~/
$ chmod +x fsl-imx-wayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.9.88-2.0.0.sh
$ ./fsl-imx-wayland-glibc-x86_64-meta-toolchain-qt5-aarch64-toolchain-4.9.88-2.0.0.sh

Press Enter when prompted to install SDK in default directory = /opt/fsl-imx-wayland/4.9.88-2.0.0/
Enter 'Y' to install SDK and wait for SDK to installation

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/fsl-imx-wayland/4.9.88-2.0.0/environment-setup-aarch64-poky-linux


Next Section:Build Yocto Image From Scratch