Install a Compiler
Since the SDK supports only cross-compiling, this section outlines the steps to install a native compiler on the BSP. This enables source code to be compiled directly on the target device.
Add the Native Compiler
By default, the BSP-Yocto-Ampliphy-AM62x-PD25.1.0 phytec-qt6demo-image doesn’t include build tools such as gcc, make, git, etc. In order to build your applications on the target natively, these packages will have to be added to your target image first.
First, complete the setup steps outlined in the Build the BSP guide.
Once setup, modify your $BUILDDIR/conf/local.conf:
sh-host:~$ vi $BUILDDIR/conf/local.conf
Add the following line to the end of the file:
$BUILDDIR/conf/local.conf
IMAGE_INSTALL:append = " packagegroup-core-buildessential"
Now rebuild your target image and then use it to boot your phyCORE-AM62x Development Kit into Linux.
sh-host:~$ bitbake phytec-qt6demo-image