From 0239e66b63f06d0573229d3f01a3a4cf76f3997d Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Wed, 12 Oct 2016 11:59:35 -0500 Subject: [PATCH] mesa-demos: Refactor to use the new i.MX feature overrides Configure the package using the existence of 2D and/or 3D hardware. Signed-off-by: Tom Hochstein Signed-off-by: Otavio Salvador --- 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 722d53dd..e900e1f8 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}" -- 2.40.1