]> code.ossystems Code Review - meta-freescale.git/commit
imx-gpu-viv: fix build with libvulkan
authorMax Krummenacher <max.krummenacher@toradex.com>
Wed, 2 Oct 2019 07:11:56 +0000 (09:11 +0200)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 9 Oct 2019 19:35:20 +0000 (16:35 -0300)
commite7e0a3ebfa6a42e2a65642051a9c18ae90de320d
tree5d408cf4336cb79e4726f4619013b35672323694
parentb61675eccc5ac3cf73f9e24bc651a08ab37110de
imx-gpu-viv: fix build with libvulkan

vulkan-loader and imx-gpu-viv both provide a libvulkan.so with the same soname.
(The vulkan-loader provides the vulkan-loader while imx-gpu-viv provides the
instalable client driver for the Vivante GPU).

  readelf -a .../recipe-sysroot/usr/lib/libvulkan.so | grep soname
    0x000000000000000e (SONAME)             Library soname: [libvulkan.so.1]
  readelf -a .../recipe-sysroot/usr/lib/vulkan/libvulkan_VSI.so | grep soname
    0x000000000000000e (SONAME)             Library soname: [libvulkan.so.1]

This leads to the following build error.

| # ERROR: gstreamer1.0-plugins-bad-1.14.imx-r0 do_package: gstreamer1.0-plugins-bad-vulkan: Multiple shlib providers for libvulkan.so.1: libvulkan-imx, vulkan-loader (used by files: ...libgstvulkan.so)
| # ERROR: gstreamer1.0-plugins-bad-1.14.imx-r0 do_package_qa: QA Issue: /usr/lib/gstreamer-1.0/libgstvulkan.so contained in package gstreamer1.0-plugins-bad-vulkan requires libvulkan.so.1()(64bit), but no providers found in RDEPENDS_gstreamer1.0-plugins-bad-vulkan? [filed]

Fix this by changing the soname of the Vivante provided libvulkan.
With this change we can drop the /usr/lib/vulkan install directory and
install directly in /usr/lib/.
This additionally allows to reenable QA warnings for the libvulkan-imx package.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc