From 2c8b2f6c6bdc9e3ac89873d8066708095c639744 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 21 Feb 2019 22:24:28 -0800 Subject: mesa-gl: Let userland provide libEGL and GLESv2 when vc4 graphics is not used When vc4graphics is not used then useland graphics provides these libraries Signed-off-by: Khem Raj --- recipes-graphics/mesa/mesa-gl_%.bbappend | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'recipes-graphics') diff --git a/recipes-graphics/mesa/mesa-gl_%.bbappend b/recipes-graphics/mesa/mesa-gl_%.bbappend index 7897125..107f6b5 100644 --- a/recipes-graphics/mesa/mesa-gl_%.bbappend +++ b/recipes-graphics/mesa/mesa-gl_%.bbappend @@ -1 +1,12 @@ PACKAGECONFIG_append_rpi = " gbm" + +do_install_append_rpi() { + if [ "${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "1", "0", d)}" = "0" ]; then + rm -rf ${D}${libdir}/libEGL* + rm -rf ${D}${libdir}/libGLES* + rm -rf ${D}${libdir}/libwayland-* + rm -rf ${D}${libdir}/pkgconfig/egl.pc ${D}${libdir}/pkgconfig/glesv2.pc \ + ${D}${libdir}/pkgconfig/wayland-egl.pc + rm -rf ${D}${includedir}/EGL ${D}${includedir}/GLES* ${D}${includedir}/KHR + fi +} -- cgit v1.2.3-54-g00ecf