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 <arturo.buzarra@digi.com>
This commit is contained in:
Arturo Buzarra 2017-10-27 10:07:23 +02:00
parent 1fec236192
commit 7096238b08
1 changed files with 20 additions and 0 deletions

View File

@ -4,3 +4,23 @@
# Add runtime dependency so that GLES3 headers don't need to be added manually # Add runtime dependency so that GLES3 headers don't need to be added manually
# #
RDEPENDS_libgles2-mesa-dev += "libgles3-mesa-dev" 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
}