package/freescale-imx/imx-gpu-viv: is an libopencl provider
authorRomain Naour <romain.naour@smile.fr>
Wed, 23 Dec 2020 15:33:25 +0000 (16:33 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 26 Dec 2020 17:32:46 +0000 (18:32 +0100)
The imx-gpu-viv install libOpenCL.so.1.2 library and cl.h header,
so declare it as a libopencl provider.

With this support we can select the clinfo package provided by
Buildroot instead of the one provided by imx-gpu-viv package.

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Cc: Gary Bisson <gary.bisson@boundarydevices.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/freescale-imx/imx-gpu-viv/Config.in
package/freescale-imx/imx-gpu-viv/imx-gpu-viv.mk

index a2deaf2e12a5365c5450a816ca6b51b191fa8eca..753a71ee0003f134eacc8ea435c2ff0b1dab7399 100644 (file)
@@ -14,6 +14,7 @@ config BR2_PACKAGE_IMX_GPU_VIV
        depends on BR2_TOOLCHAIN_USES_GLIBC
        select BR2_PACKAGE_HAS_LIBEGL
        select BR2_PACKAGE_HAS_LIBGLES
+       select BR2_PACKAGE_HAS_LIBOPENCL
        select BR2_PACKAGE_HAS_LIBOPENVG
        help
          Userspace libraries for Vivante GPU on i.MX platforms
@@ -74,6 +75,9 @@ config BR2_PACKAGE_PROVIDES_LIBEGL
 config BR2_PACKAGE_PROVIDES_LIBGLES
        default "imx-gpu-viv"
 
+config BR2_PACKAGE_PROVIDES_LIBOPENCL
+       default "imx-gpu-viv"
+
 config BR2_PACKAGE_PROVIDES_LIBOPENVG
        default "imx-gpu-viv"
 
index a248da60690891fc6fbaaa52a521d59528dd439a..9d69acb7aed117194b4729a1acdb4662b71638b0 100644 (file)
@@ -18,7 +18,7 @@ IMX_GPU_VIV_LICENSE = NXP Semiconductor Software License Agreement
 IMX_GPU_VIV_LICENSE_FILES = EULA COPYING
 IMX_GPU_VIV_REDISTRIBUTE = NO
 
-IMX_GPU_VIV_PROVIDES = libegl libgles libopenvg
+IMX_GPU_VIV_PROVIDES = libegl libgles libopencl libopenvg
 IMX_GPU_VIV_LIB_TARGET = $(call qstrip,$(BR2_PACKAGE_IMX_GPU_VIV_OUTPUT))
 
 ifeq ($(IMX_GPU_VIV_LIB_TARGET),x11)