From 44a5115b6ece869cfb10714423e6956128dbaef8 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Thu, 30 Jul 2015 16:53:55 -0300 Subject: 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 --- recipes-graphics/mesa/mesa-demos_%.bbappend | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend b/recipes-graphics/mesa/mesa-demos_%.bbappend index 65f3d53..c8d1667 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}" -- cgit v1.2.3-54-g00ecf