Only install patches for SoC with a GPU.  Future i.MX 6UltraLite
does not have a GPU.

Signed-off-by: Lauren Post <[email protected]>
---
 recipes-graphics/mesa/mesa-demos_%.bbappend |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend 
b/recipes-graphics/mesa/mesa-demos_%.bbappend
index 9f675a2..65f3d53 100644
--- a/recipes-graphics/mesa/mesa-demos_%.bbappend
+++ b/recipes-graphics/mesa/mesa-demos_%.bbappend
@@ -1,6 +1,12 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-SRC_URI_append_mx6 = " 
file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \
-                       file://fix-clear-build-break.patch"
+MESA-DEMO-PATCH = " 
file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.patch \
+                    file://fix-clear-build-break.patch"
+
+# only apply patches on mx6 that have a GPU
+SRC_URI_append_mx6q  = " ${MESA-DEMO-PATCH}"
+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"
-- 
1.7.9.5

-- 
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to