]> code.ossystems Code Review - meta-freescale.git/commitdiff
mesa-demos: Support for mx6 without GPUs
authorOtavio Salvador <otavio@ossystems.com.br>
Thu, 30 Jul 2015 19:53:55 +0000 (16:53 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Tue, 19 Apr 2016 18:03:14 +0000 (15:03 -0300)
Fix to support future mx6 i.MX 6UltraLite which does not have a
GPU.  This SoC will use mesa so mesa changes before should be more
SoC specific to allow future mx6 SoC without GPU to use mesa.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes-graphics/mesa/mesa-demos_%.bbappend

index 65f3d53ba03c323d7c5614f3b5109e5c2c43c7cf..c8d1667a28e4d1106227249aa1a70199dcab0c37 100644 (file)
@@ -9,4 +9,11 @@ SRC_URI_append_mx6dl = " ${MESA-DEMO-PATCH}"
 SRC_URI_append_mx6sx = " ${MESA-DEMO-PATCH}"
 SRC_URI_append_mx6sl = " ${MESA-DEMO-PATCH}"
 
-PACKAGECONFIG_remove_mx6sl = "gles1 gles2"
+REMOVE_GLU = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', \
+                 bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu', '', d), d)}"
+
+# only remove GLU on mx6 thave have a GPU
+PACKAGECONFIG_remove_mx6q = "${REMOVE_GLU}"
+PACKAGECONFIG_remove_mx6dl = "${REMOVE_GLU}"
+PACKAGECONFIG_remove_mx6sx = "${REMOVE_GLU}"
+PACKAGECONFIG_remove_mx6sl = "gles1 gles2 ${REMOVE_GLU}"