This try was done using imx8mp-evk, using fsl Yocto bsp master branch.
cd fsl-community-bsp
repo init -u https://github.com/Freescale/fsl-community-bsp-platform -b master
repo sync
You need also the following metas: meta-clang and meta-qt6:
cd sources
git clone git://code.qt.io/yocto/meta-qt6.git
git clone https://github.com/kraj/meta-clang.git
Then add newest meta layers to bblayers.conf
+ ${BSPDIR}/sources/meta-clang \
+ ${BSPDIR}/sources/meta-qt6 \
+"
And add the SDK and image required packages:
TOOLCHAIN_HOST_TASK:append = "\
nativesdk-ninja \
nativesdk-libyaml \
nativesdk-libevent \
nativesdk-libsdl2 \
nativesdk-libdrm \
nativesdk-gnutls \
nativesdk-libssl \
nativesdk-pkgconfig \
nativesdk-meson \
nativesdk-python3-pyyaml \
nativesdk-python3-ply \
nativesdk-python3-jinja2 \
nativesdk-clang \
nativesdk-g++ \
nativesdk-openssl \
nativesdk-boost \
nativesdk-python3-sphinx \
nativesdk-doxygen \
nativesdk-graphviz \
nativesdk-qtbase \
nativesdk-qttools \
"
IMAGE_INSTALL:append = "\
ninja \
pkgconfig \
meson \
libyaml \
python3-pyyaml \
python3-ply \
python3-jinja2 \
clang g++ \
libevent \
libsdl2 \
libsdl2 \
libsdl2-ttf \
libsdl2-image \
libsdl2-mixer \
jpeg \
libdrm \
gstreamer1.0 \
gstreamer1.0-plugins-base \
gnutls \
libssl \
openssl \
boost \
packagegroup-core-buildessential \
python3-sphinx doxygen \
graphviz \
qtbase \
qttools \
v4l-utils \
libcamera \
kmscube \
kernel-modules \
packagegroup-qt6-addons \
e2fsprogs \
e2fsprogs-mke2fs \
elfutils \
"
source ./setup-environment build
bitbake fsl-image-multimedia-full
bitbake fsl-image-multimedia-full -c populate_sdk
source /opt/fslc-xwayland/4.1-snapshot-20240320/environment-setup-cortexa53-crypto-fslc-linux
git clone https://git.libcamera.org/libcamera/libcamera.git
cd libcamera
meson setup build -Dprefix=/targetfs/usr/
ninja -C build install