From 15206a15b42a1be8efd96aad3af420384b2ef536 Mon Sep 17 00:00:00 2001 From: Carlos Alberto Lopez Perez Date: Thu, 2 Mar 2023 21:16:48 +0100 Subject: [PATCH] mesa-demos: enable build with userland graphics drivers. * mesa-demos can be built fine if both gles1 and egl options are disabled. This allows to have utilities like glxinfo or glxgears Signed-off-by: Carlos Alberto Lopez Perez --- recipes-graphics/mesa/mesa-demos_%.bbappend | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/recipes-graphics/mesa/mesa-demos_%.bbappend b/recipes-graphics/mesa/mesa-demos_%.bbappend index abb11ec..efcaf06 100644 --- a/recipes-graphics/mesa/mesa-demos_%.bbappend +++ b/recipes-graphics/mesa/mesa-demos_%.bbappend @@ -1,2 +1,3 @@ -# mesa-demos need libgles1 and userland driver does not have it -COMPATIBLE_HOST:rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '(.*)', 'null', d)}" +# mesa-demos userland driver doesn't provide libgles1 and the EGL headers it provides break the mesa-demos build. +# And enabling the `wayland` option without enabling `egl` is useless. +PACKAGECONFIG:remove:rpi = "${@bb.utils.contains('MACHINE_FEATURES', 'vc4graphics', '', 'egl gles1 wayland', d)}"