petalinux SDK编译及使用
1、编译
# petalinux-build --sdk
2、打包
# petalinux-package --sysroot
注:SDK生成在 <plnx-proj>/image/linux/sdk 目录
3、验证
# source images/linux/sdk/environment-setup-aarch64-xilinx-linux
# echo $CC
aarch64-xilinx-linux-gcc -march=armv8-a+crc -mtune=cortex-a72.cortex-a53 --sysroot=/data/nvme0n1p2/project-2201/project-2201-qtapp/images/linux/sdk/sysroots/aarch64-xilinx-linux
4、使用
# ${CC} hello.c -o hello
参考:
【1】 UG1144
【2】https://stackoverflow.com/questions/49777448/yocto-meta-toolchain-fatal-error-stdio-h-no-such-file-or-directory