[meta-freescale] [meta-fsl-arm][PATCH 5/6] mesa-demos: Use wayland backend whenever it is availiable

Neena Busireddy neena.busireddy at freescale.com
Fri Oct 16 09:18:08 PDT 2015


If Wayland exists in DISTRO features, wayland egl build configuration will be enabled.

It is not mandatory for a GPU driver to support multiple backends (X11, wayland) at the same time.

Signed-off-by: Neena Busireddy <neena.busireddy at freescale.com>
---
 recipes-graphics/mesa/mesa-demos_%.bbappend |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend b/recipes-graphics/mesa/mesa-demos_%.bbappend
index 1f070a4..3bc87c8 100644
--- a/recipes-graphics/mesa/mesa-demos_%.bbappend
+++ b/recipes-graphics/mesa/mesa-demos_%.bbappend
@@ -4,13 +4,15 @@ SRC_URI_append_mx6 = " file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.
                     file://fix-clear-build-break.patch \
                     file://Additional-eglSwapBuffer-calling-makes-wrong-throttl.patch \
                     file://Add-OpenVG-demos-to-support-wayland.patch"
-
 PACKAGECONFIG_remove_mx6 = " \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
-         bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu', '', d), d)}"
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', \
+        bb.utils.contains('DISTRO_FEATURES', 'wayland','x11 glu','',d), \
+           bb.utils.contains('DISTRO_FEATURES', 'wayland','glu','',d),d)}"
+
 PACKAGECONFIG_remove_mx6sl = "gles1 gles2"
 
 PACKAGECONFIG_append = "\
-    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
-       bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d), d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11', \
+        bb.utils.contains('DISTRO_FEATURES', 'wayland','wayland vg','',d), \
+             bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d), d)} \
 "
-- 
1.7.9.5



More information about the meta-freescale mailing list