summaryrefslogtreecommitdiffstats
path: root/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc')
-rw-r--r--recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc35
1 files changed, 10 insertions, 25 deletions
diff --git a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
index 56a9ec4d2..df2a999c4 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -1,6 +1,6 @@
1# Copyright (C) 2012-2016 Freescale Semiconductor 1# Copyright (C) 2012-2016 Freescale Semiconductor
2# Copyright (C) 2012-2018 O.S. Systems Software LTDA. 2# Copyright (C) 2012-2018 O.S. Systems Software LTDA.
3# Copyright 2017-2023 NXP 3# Copyright 2017-2024 NXP
4# Released under the MIT license (see COPYING.MIT for the terms) 4# Released under the MIT license (see COPYING.MIT for the terms)
5 5
6DESCRIPTION = "GPU driver and apps for i.MX" 6DESCRIPTION = "GPU driver and apps for i.MX"
@@ -20,11 +20,6 @@ DEPENDS += " \
20DEPENDS:append:imxdrm = " libdrm wayland" 20DEPENDS:append:imxdrm = " libdrm wayland"
21DEPENDS:append:mx8-nxp-bsp = " patchelf-native" 21DEPENDS:append:mx8-nxp-bsp = " patchelf-native"
22 22
23# imx-gpu-viv does not provide everything it needs to for virtual/libgl
24# on x11 backend or on Wayland backend with XWayland support.
25# We depend on mesa to fill in what is missing.
26DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}"
27
28DEPENDS:append:libc-musl = " gcompat" 23DEPENDS:append:libc-musl = " gcompat"
29 24
30PROVIDES += " \ 25PROVIDES += " \
@@ -36,13 +31,12 @@ PROVIDES += " \
36" 31"
37EXTRA_PROVIDES = " \ 32EXTRA_PROVIDES = " \
38 ${PROVIDES_OPENCL} \ 33 ${PROVIDES_OPENCL} \
39 ${PROVIDES_OPENGLES3} \
40 ${PROVIDES_OPENVX} \ 34 ${PROVIDES_OPENVX} \
41" 35"
42EXTRA_PROVIDES:append:imxgpu3d = " \ 36EXTRA_PROVIDES:append:imxgpu3d = " \
43 virtual/libgl \
44 virtual/libgles1 \ 37 virtual/libgles1 \
45 virtual/libgles2 \ 38 virtual/libgles2 \
39 virtual/libgles3 \
46" 40"
47EXTRA_PROVIDES:append:mx8-nxp-bsp = " \ 41EXTRA_PROVIDES:append:mx8-nxp-bsp = " \
48 virtual/libgbm \ 42 virtual/libgbm \
@@ -57,9 +51,6 @@ PROVIDES_OPENCL = " \
57PROVIDES_OPENCL:mx7-nxp-bsp = "" 51PROVIDES_OPENCL:mx7-nxp-bsp = ""
58PROVIDES_OPENCL:mx8mm-nxp-bsp = "" 52PROVIDES_OPENCL:mx8mm-nxp-bsp = ""
59 53
60PROVIDES_OPENGLES3 = ""
61PROVIDES_OPENGLES3:mx8-nxp-bsp = "virtual/libgles3"
62
63# Note: OpenVX is fully supported on i.MX 8 QuadMax and 8 QuadPlus. 54# Note: OpenVX is fully supported on i.MX 8 QuadMax and 8 QuadPlus.
64# However, only limited support is provided on other i.MX 8 machines 55# However, only limited support is provided on other i.MX 8 machines
65# as needed for i.MX machine learning packages. 56# as needed for i.MX machine learning packages.
@@ -69,6 +60,12 @@ PROVIDES_OPENVX:mx8mm-nxp-bsp = ""
69 60
70RPROVIDES:${PN}:imxgpu3d += "imx-gpu-viv" 61RPROVIDES:${PN}:imxgpu3d += "imx-gpu-viv"
71 62
63RPROVIDES_OPENCL = "opencl-icd-loader-dev"
64RPROVIDES_OPENCL:mx7-nxp-bsp = ""
65RPROVIDES_OPENCL:mx8mm-nxp-bsp = ""
66
67RPROVIDES:${PN}:append:imx-nxp-bsp = " ${RPROVIDES_OPENCL}"
68
72PE = "1" 69PE = "1"
73 70
74inherit fsl-eula-unpack 71inherit fsl-eula-unpack
@@ -86,7 +83,6 @@ PACKAGECONFIG[valgrind] = ""
86 83
87# Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below 84# Note : If you add a package here, to prevent a naming conflict see the python_anonymous() futher below
88PACKAGES =+ " \ 85PACKAGES =+ " \
89 libgl-imx libgl-imx-dev \
90 libgles1-imx libgles1-imx-dev \ 86 libgles1-imx libgles1-imx-dev \
91 libgles2-imx libgles2-imx-dev \ 87 libgles2-imx libgles2-imx-dev \
92 libgles3-imx-dev \ 88 libgles3-imx-dev \
@@ -149,7 +145,7 @@ python __anonymous() {
149 145
150 # For the packages that make up the OpenGL interfaces, inject variables so that 146 # For the packages that make up the OpenGL interfaces, inject variables so that
151 # they don't get Debian-renamed (which would remove the -imx suffix). 147 # they don't get Debian-renamed (which would remove the -imx suffix).
152 for p in (("libegl", "libegl1"), ("libgl", "libgl1"), 148 for p in (("libegl", "libegl1"),
153 ("libgles1", "libglesv1-cm1"), ("libgles2", "libglesv2-2"), 149 ("libgles1", "libglesv1-cm1"), ("libgles2", "libglesv2-2"),
154 ("libgles3",), ("libgbm",)): 150 ("libgles3",), ("libgbm",)):
155 fullp = p[0] + "-imx" 151 fullp = p[0] + "-imx"
@@ -188,7 +184,7 @@ IMX_SOC:mx8mq-nxp-bsp = "mx8mq"
188IMX_SOC:mx8mn-nxp-bsp = "mx8mn" 184IMX_SOC:mx8mn-nxp-bsp = "mx8mn"
189IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp" 185IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp"
190 186
191LIBVULKAN_API_VERSION = "1.3.239" 187LIBVULKAN_API_VERSION = "1.3.204"
192 188
193do_install () { 189do_install () {
194 install -d ${D}${libdir} 190 install -d ${D}${libdir}
@@ -291,8 +287,6 @@ do_install () {
291 if [ "${IS_MX6SL}" = "1" ]; then 287 if [ "${IS_MX6SL}" = "1" ]; then
292 rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \ 288 rm -rf ${D}${libdir}/libCLC* ${D}${includedir}/CL \
293 \ 289 \
294 ${D}${libdir}/libGL* ${D}${includedir}/GL* ${D}${libdir}/pkgconfig/gl.pc \
295 \
296 ${D}${libdir}/libGLES* ${D}${libdir}/pkgconfig/gles*.pc \ 290 ${D}${libdir}/libGLES* ${D}${libdir}/pkgconfig/gles*.pc \
297 \ 291 \
298 ${D}${libdir}/libOpenCL* ${D}${includedir}/CL \ 292 ${D}${libdir}/libOpenCL* ${D}${includedir}/CL \
@@ -377,15 +371,6 @@ OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8qm-nxp-bsp = "libclc-imx libopencl-imx
377OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8mp-nxp-bsp = "libclc-imx libopencl-imx-dev" 371OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8mp-nxp-bsp = "libclc-imx libopencl-imx-dev"
378INSANE_SKIP:libopenvx-imx += "dev-deps" 372INSANE_SKIP:libopenvx-imx += "dev-deps"
379 373
380FILES:libgl-imx = "${libdir}/libGL${REALSOLIBS} ${libdir}/libGL${SOLIBS}"
381FILES:libgl-imx-dev = "${includedir}/GL ${libdir}/pkgconfig/gl.pc"
382# libGL is only targeting X11 backend, and in case if Wayland-only is used -
383# package QA complains on missing RDEPENDS, which are only available for X11.
384# Skip "file-rdeps" QA for this package.
385INSANE_SKIP:libgl-imx += "file-rdeps"
386# libEGL does dlopen of libGL.so
387INSANE_SKIP:libgl-imx += "dev-so"
388
389FILES:libgles1-imx = "${libdir}/libGLESv1*${REALSOLIBS} ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${REALSOLIBS} ${libdir}/libGLES_*${SOLIBS}" 374FILES:libgles1-imx = "${libdir}/libGLESv1*${REALSOLIBS} ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${REALSOLIBS} ${libdir}/libGLES_*${SOLIBS}"
390FILES:libgles1-imx-dev = "${includedir}/GLES ${libdir}/pkgconfig/glesv1_cm.pc" 375FILES:libgles1-imx-dev = "${includedir}/GLES ${libdir}/pkgconfig/glesv1_cm.pc"
391RPROVIDES:libgles1-imx = "libgles-imx" 376RPROVIDES:libgles1-imx = "libgles-imx"