SDK
Last updated
Last updated
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)
Follow
bitbake petalinux-image-minimal -c do_populate_sdk
Get petalinux tool and any bsp
petalinux-build -c petalinux-image-minimal -x do_populate_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>
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 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 "