Build error chromium-ozone-wayland in official NXP Zeus-BSP for imx6qsabresd reference platform

Georg Hartinger

Hello all,

Tried to add chromium to NXP-BSP like it is described in IMX_YOCTO_PROJECT_USERS_GUIDE.pdf for L5.4.47_2.2.0 for NXP-Zeus-2.2.0 BSP for imx6qsabresd

Error was:

ERROR: chromium-ozone-wayland-83.0.4103.116-r0 do_configure: Execution of '/home/devel/src/bsp-zeus-2.2.0/build/tmp/work/cortexa9t2hf-neon-mx6qdl-poky-linux-gnueabi/chromium-ozone-wayland/83.0.4103.116-r0/temp/run.do_configure.2730481' failed with exit code 1:
ERROR at //build/config/linux/dri/ Script returned non-zero exit code.
  dri_driver_dir = exec_script(pkg_config_script,
Current dir: /home/devel/src/bsp-zeus-2.2.0/build/tmp/work/cortexa9t2hf-neon-mx6qdl-poky-linux-gnueabi/chromium-ozone-wayland/83.0.4103.116-r0/chromium-83.0.4103.116/out/Release/
Command: python /home/devel/src/bsp-zeus-2.2.0/build/tmp/work/cortexa9t2hf-neon-mx6qdl-poky-linux-gnueabi/chromium-ozone-wayland/83.0.4103.116-r0/chromium-83.0.4103.116/build/config/linux/ --dridriverdir dri
Returned 1 and printed out:

Error from pkg-config.


Package dri was not found in the pkg-config search path.
Perhaps you should add the directory containing `dri.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dri' found

See //content/gpu/ which caused the file to be included.
    configs += [ "//build/config/linux/dri" ]

The setup on an Ubuntu 20.04 machine was as follows:
$ repo init -u  -b imx-linux-zeus -m imx-5.4.47-2.2.0.xml
$ repo sync
$ MACHINE=imx6qsabresd DISTRO=fsl-imx-wayland source -b build

Then added chromium browser like it is described in the project users guide:
echo "CORE_IMAGE_EXTRA_INSTALL += \"chromium-ozone-wayland\"" >> conf/local.conf

And finally:
bitbake imx-image-multimedia

I think, this is probably related to the mesa build error:

Any idea on how to fix this or is this just the wrong way to add chromium to the image?

Best Regards,

Georg Hartinger
Software Engineer ARM
congatec AG