From: Otavio Salvador Date: Thu, 30 Jul 2015 19:53:55 +0000 (-0300) Subject: mesa-demos: Support for mx6 without GPUs X-Git-Tag: 2.1~429 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=03c461be46850debdeb696620990449634435144;p=meta-freescale.git mesa-demos: Support for mx6 without GPUs 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 --- diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend b/recipes-graphics/mesa/mesa-demos_%.bbappend index 65f3d53b..c8d1667a 100644 --- a/recipes-graphics/mesa/mesa-demos_%.bbappend +++ b/recipes-graphics/mesa/mesa-demos_%.bbappend @@ -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}"