Configure the package using the existence of 2D and/or
3D hardware.

Signed-off-by: Tom Hochstein <tom.hochst...@nxp.com>
---
 recipes-graphics/mesa/mesa-demos_%.bbappend | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend 
b/recipes-graphics/mesa/mesa-demos_%.bbappend
index 722d53d..e900e1f 100644
--- a/recipes-graphics/mesa/mesa-demos_%.bbappend
+++ b/recipes-graphics/mesa/mesa-demos_%.bbappend
@@ -5,11 +5,20 @@ SRC_URI_append_mx6 = " 
file://Replace-glWindowPos2iARB-calls-with-glWindowPos2i.
                     
file://Additional-eglSwapBuffer-calling-makes-wrong-throttl.patch \
                     file://Add-OpenVG-demos-to-support-wayland.patch"
 
-PACKAGECONFIG_remove_mx6 = " \
+PACKAGECONFIG_IMX_TO_REMOVE = ""
+PACKAGECONFIG_IMX_TO_REMOVE_imxgpu2d = " \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu x11', '', d)} \
+    gles1 \
+    gles2 \
+"
+PACKAGECONFIG_IMX_TO_REMOVE_imxgpu3d = " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'glu x11', '', d)} \
 "
-PACKAGECONFIG_remove_mx6sl = "gles1 gles2"
 
-PACKAGECONFIG_append_mx6   = " \
+PACKAGECONFIG_IMX_TO_APPEND = ""
+PACKAGECONFIG_IMX_TO_APPEND_imxgpu2d = " \
     ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland vg', '', d)} \
 "
+
+PACKAGECONFIG_remove = " ${PACKAGECONFIG_IMX_TO_REMOVE}"
+PACKAGECONFIG_append = " ${PACKAGECONFIG_IMX_TO_APPEND}"
-- 
1.9.1

-- 
_______________________________________________
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to