SDK

Yocto builds SDK to develop applications. bitbake builds sdk. Copy SDK and install on any location

This flow is on Xilinx/AMD yocto layers ( meta-xilinx and metal-petalinux)

Build SDK

Yocto

Follow https://github.com/Xilinx/yocto-manifests/blob/rel-v2022.2/README.md

bitbake petalinux-image-minimal -c do_populate_sdk

Petalinux

  • Get petalinux tool and any bsp

  • petalinux-build -c petalinux-image-minimal -x do_populate_sdk

Install SDK

Once the build is success, you can find sdk at build/tmp/deploy/sdk/petalinux-glibc-x86_64-petalinux-image-minimal-*.sh

Install the sdk using ./petalinux-glibc*.sh -y -p -d <path to dir>

SDK Usage

source the sdk and see the tool chain from sdk path. . <path to sdk./environment-setup-*

Verify the installation which aarch64-xilinx-linux-gcc <pathtosdk>/sysroots/x86_64-petalinux-linux/usr/bin/aarch64-xilinx-linux/aarch64-xilinx-linux-gcc

Add Packages

Add nativesdk packages into sysroot. Add below details in the image bb recipe

Add utils under corresponding ARCH TOOLCHAIN_TARGET_TASK ?= ""

To add utilities under X86_64 TOOLCHAIN_HOST_TASK ?= " nativesdk-sdk-provides-dummy nativesdk-python3-core nativesdk-python3-modules nativesdk-python3-misc "

Last updated