From: Tom Hochstein Date: Wed, 12 Oct 2016 16:59:35 +0000 (-0500) Subject: mesa-demos: Refactor to use the new i.MX feature overrides X-Git-Tag: 2.2~176 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=0239e66b63f06d0573229d3f01a3a4cf76f3997d;p=meta-freescale.git 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 --- 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}"