diff options
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.inc | 35 |
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 | ||
6 | DESCRIPTION = "GPU driver and apps for i.MX" | 6 | DESCRIPTION = "GPU driver and apps for i.MX" |
@@ -20,11 +20,6 @@ DEPENDS += " \ | |||
20 | DEPENDS:append:imxdrm = " libdrm wayland" | 20 | DEPENDS:append:imxdrm = " libdrm wayland" |
21 | DEPENDS:append:mx8-nxp-bsp = " patchelf-native" | 21 | DEPENDS: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. | ||
26 | DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}" | ||
27 | |||
28 | DEPENDS:append:libc-musl = " gcompat" | 23 | DEPENDS:append:libc-musl = " gcompat" |
29 | 24 | ||
30 | PROVIDES += " \ | 25 | PROVIDES += " \ |
@@ -36,13 +31,12 @@ PROVIDES += " \ | |||
36 | " | 31 | " |
37 | EXTRA_PROVIDES = " \ | 32 | EXTRA_PROVIDES = " \ |
38 | ${PROVIDES_OPENCL} \ | 33 | ${PROVIDES_OPENCL} \ |
39 | ${PROVIDES_OPENGLES3} \ | ||
40 | ${PROVIDES_OPENVX} \ | 34 | ${PROVIDES_OPENVX} \ |
41 | " | 35 | " |
42 | EXTRA_PROVIDES:append:imxgpu3d = " \ | 36 | EXTRA_PROVIDES:append:imxgpu3d = " \ |
43 | virtual/libgl \ | ||
44 | virtual/libgles1 \ | 37 | virtual/libgles1 \ |
45 | virtual/libgles2 \ | 38 | virtual/libgles2 \ |
39 | virtual/libgles3 \ | ||
46 | " | 40 | " |
47 | EXTRA_PROVIDES:append:mx8-nxp-bsp = " \ | 41 | EXTRA_PROVIDES:append:mx8-nxp-bsp = " \ |
48 | virtual/libgbm \ | 42 | virtual/libgbm \ |
@@ -57,9 +51,6 @@ PROVIDES_OPENCL = " \ | |||
57 | PROVIDES_OPENCL:mx7-nxp-bsp = "" | 51 | PROVIDES_OPENCL:mx7-nxp-bsp = "" |
58 | PROVIDES_OPENCL:mx8mm-nxp-bsp = "" | 52 | PROVIDES_OPENCL:mx8mm-nxp-bsp = "" |
59 | 53 | ||
60 | PROVIDES_OPENGLES3 = "" | ||
61 | PROVIDES_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 | ||
70 | RPROVIDES:${PN}:imxgpu3d += "imx-gpu-viv" | 61 | RPROVIDES:${PN}:imxgpu3d += "imx-gpu-viv" |
71 | 62 | ||
63 | RPROVIDES_OPENCL = "opencl-icd-loader-dev" | ||
64 | RPROVIDES_OPENCL:mx7-nxp-bsp = "" | ||
65 | RPROVIDES_OPENCL:mx8mm-nxp-bsp = "" | ||
66 | |||
67 | RPROVIDES:${PN}:append:imx-nxp-bsp = " ${RPROVIDES_OPENCL}" | ||
68 | |||
72 | PE = "1" | 69 | PE = "1" |
73 | 70 | ||
74 | inherit fsl-eula-unpack | 71 | inherit 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 |
88 | PACKAGES =+ " \ | 85 | PACKAGES =+ " \ |
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" | |||
188 | IMX_SOC:mx8mn-nxp-bsp = "mx8mn" | 184 | IMX_SOC:mx8mn-nxp-bsp = "mx8mn" |
189 | IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp" | 185 | IMX_SOC:mx8ulp-nxp-bsp = "mx8ulp" |
190 | 186 | ||
191 | LIBVULKAN_API_VERSION = "1.3.239" | 187 | LIBVULKAN_API_VERSION = "1.3.204" |
192 | 188 | ||
193 | do_install () { | 189 | do_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 | |||
377 | OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8mp-nxp-bsp = "libclc-imx libopencl-imx-dev" | 371 | OPENCL_VX_INTRINSIC_EXTENSION_PACKAGES:mx8mp-nxp-bsp = "libclc-imx libopencl-imx-dev" |
378 | INSANE_SKIP:libopenvx-imx += "dev-deps" | 372 | INSANE_SKIP:libopenvx-imx += "dev-deps" |
379 | 373 | ||
380 | FILES:libgl-imx = "${libdir}/libGL${REALSOLIBS} ${libdir}/libGL${SOLIBS}" | ||
381 | FILES: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. | ||
385 | INSANE_SKIP:libgl-imx += "file-rdeps" | ||
386 | # libEGL does dlopen of libGL.so | ||
387 | INSANE_SKIP:libgl-imx += "dev-so" | ||
388 | |||
389 | FILES:libgles1-imx = "${libdir}/libGLESv1*${REALSOLIBS} ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${REALSOLIBS} ${libdir}/libGLES_*${SOLIBS}" | 374 | FILES:libgles1-imx = "${libdir}/libGLESv1*${REALSOLIBS} ${libdir}/libGLESv1*${SOLIBS} ${libdir}/libGLES_*${REALSOLIBS} ${libdir}/libGLES_*${SOLIBS}" |
390 | FILES:libgles1-imx-dev = "${includedir}/GLES ${libdir}/pkgconfig/glesv1_cm.pc" | 375 | FILES:libgles1-imx-dev = "${includedir}/GLES ${libdir}/pkgconfig/glesv1_cm.pc" |
391 | RPROVIDES:libgles1-imx = "libgles-imx" | 376 | RPROVIDES:libgles1-imx = "libgles-imx" |