From 7096238b0889e3904c54f533716e6ab75adcf88c Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Fri, 27 Oct 2017 10:07:23 +0200 Subject: [PATCH] mesa: remove parts provided by imx-gpu-viv v6 for ccimx6qpsbc This commit adds a platform dependency to remove the parts provided by the new GPU driver and maintain the compatibility for other platforms using previous versions. https://jira.digi.com/browse/DEL-5234 Signed-off-by: Arturo Buzarra --- .../recipes-graphics/mesa/mesa_%.bbappend | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/meta-digi-dey/recipes-graphics/mesa/mesa_%.bbappend b/meta-digi-dey/recipes-graphics/mesa/mesa_%.bbappend index d9020a0e6..a244fe9a4 100644 --- a/meta-digi-dey/recipes-graphics/mesa/mesa_%.bbappend +++ b/meta-digi-dey/recipes-graphics/mesa/mesa_%.bbappend @@ -4,3 +4,23 @@ # Add runtime dependency so that GLES3 headers don't need to be added manually # RDEPENDS_libgles2-mesa-dev += "libgles3-mesa-dev" + +# +# Add platform dependency to maintain compatibility +# with GPU driver previous to v6. +# +PROVIDES_remove_ccimx6qpsbc = "gbm" +PACKAGECONFIG_remove_ccimx6qpsbc = "gbm" + +BACKEND = \ + "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ + bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \ + 'fb', d), d)}" + +do_install_append_ccimx6qpsbc () { + rm -f ${D}${includedir}/GL/glx.h \ + ${D}${includedir}/GL/glxext.h + if [ "${BACKEND}" = "x11" ]; then + rm -f ${D}${libdir}/pkgconfig/gl.pc + fi +}