aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2020-04-13 12:40:20 -0500
committerOtavio Salvador <otavio@ossystems.com.br>2020-04-16 10:32:45 -0300
commit341ba18eccc7703eb5ac23dc900b3bf087d3be20 (patch)
tree34eec8e7454177bb9ff52da3fa91b5ad725a057d /recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
parentc64710ad19f6c0c5c50194b44b46cd408c76dacf (diff)
downloadmeta-freescale-341ba18eccc7703eb5ac23dc900b3bf087d3be20.tar.gz
meta-freescale-341ba18eccc7703eb5ac23dc900b3bf087d3be20.tar.bz2
meta-freescale-341ba18eccc7703eb5ac23dc900b3bf087d3be20.zip
imx-gpu-viv: OpenGL is not provided for framebuffer
The GPU drivers have never provided OpenGL for framebuffer. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
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.inc18
1 files changed, 9 insertions, 9 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 1b056d48..929c4303 100644
--- a/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
+++ b/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.inc
@@ -27,7 +27,9 @@ DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa', '', d)}"
EXTRA_PROVIDES = ""
EXTRA_PROVIDES_append_imxgpu3d = " \
- virtual/libgl \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'virtual/libgl', \
+ bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libgl', \
+ '', d), d)} \
virtual/libgles1 \
virtual/libgles2 \
"
@@ -206,16 +208,14 @@ do_install () {
install -d ${D}${sysconfdir}/OpenCL/vendors/
install -m 0644 ${S}/gpu-core/etc/Vivante.icd ${D}${sysconfdir}/OpenCL/vendors/Vivante.icd
- if [ "${USE_WL}" = "yes" -o "${USE_X11}" = "yes" ]; then
- cp ${S}/gpu-core/usr/lib/libGL-${backend}.so ${D}${libdir}/libGL.so.1.2
- fi
-
# We'll only have one backend here so we rename it to generic name
# and avoid rework in other packages, when possible
- mv ${D}${libdir}/libGL.so.1.2 ${D}${libdir}/libGL.so.1.2.0
- ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so.1.2
- ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so.1
- ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so
+ if [ "${USE_WL}" = "yes" -o "${USE_X11}" = "yes" ]; then
+ cp ${S}/gpu-core/usr/lib/libGL-${backend}.so ${D}${libdir}/libGL.so.1.2.0
+ ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so.1.2
+ ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so.1
+ ln -sf libGL.so.1.2.0 ${D}${libdir}/libGL.so
+ fi
mv ${D}${libdir}/libEGL-${backend}.so ${D}${libdir}/libEGL.so.1.0
ln -sf libEGL.so.1.0 ${D}${libdir}/libEGL.so.1
ln -sf libEGL.so.1.0 ${D}${libdir}/libEGL.so