I have currently cloned and able to build libcamera in my HOST PC which runs on ubuntu 20.04. The README provided doesnt provide any information regarding the tool chain needed to be used. How to overcome this ? Is there a source provided for yocto build for the IMX95 FRDM so with that we can able to populate SDK and build accordingly.
Option 1 (Recommended): Build libcamera inside Yocto
If your goal is to modify or rebuild libcamera for FRDM-i.MX95:
bitbake libcamera
or include it in your image:
IMAGE_INSTALL:append = " libcamera"
Then rebuild:
bitbake imx-image-full
`
This ensures:
This is the safest route for i.MX95.
Option 2: Cross-build libcamera outside Yocto
If you already cloned libcamera on Ubuntu 20.04 and want to cross-build it manually:
You should not use the host gcc.
Instead generate the SDK from Yocto:
bitbake imx-image-full -c populate_sdk
The i.MX Linux User's Guide explicitly references SDK generation and Yocto-based workflows.
After the SDK is generated:
tmp/deploy/sdk/*.sh
Install it:
./fsl-imx-xwayland-glibc-aarch64-imx95-toolchain.sh
Source the environment:
source /opt/fsl-imx-xwayland/
Then build libcamera using meson:
Shell
meson setup build \
--cross-file=
ninja -C build
The exact cross-file depends on the SDK release and BSP version.
Is there Yocto source available for i.MX95?
Yes. Based on the internal Linux User Guide, i.MX95 support is provided through the standard NXP Yocto BSP and meta-imx infrastructure. The guide also references:
bitbake imx-image-full
and points users to the meta-imx README and Yocto documentation. [UG10163_i....-09_review | PDF]
For FRDM-i.MX95 specifically, the board ships with an Embedded Linux Yocto solution according to the board collateral