From: Fabio Berton Date: Fri, 11 Dec 2020 20:44:34 +0000 (-0300) Subject: mesa: Use OSMesa for use-nxp-bsp X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=03fa40114dd1f1a4d79c672a6f3cbf3eae1e2077;p=meta-freescale.git mesa: Use OSMesa for use-nxp-bsp Enabling OSMesa and disabling Gallium is needed when using use-nxp-bsp, if we don't do this mesa raises error: Problem encountered: building dri drivers require at least one windowing system or classic osmesa Signed-off-by: Fabio Berton (cherry picked from commit 3b0fc734634f8f0db1f48fc13c64cacd3d99dd92) --- diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend index 8d429abf..6b9b456c 100644 --- a/recipes-graphics/mesa/mesa_%.bbappend +++ b/recipes-graphics/mesa/mesa_%.bbappend @@ -17,17 +17,10 @@ python () { # Enable Etnaviv and Freedreno support PACKAGECONFIG_append_use-mainline-bsp = " gallium etnaviv kmsro freedreno" -USE_OSMESA_ONLY ?= "no" - -# Etnaviv support state for i.MX8 is unknown, therefore only enable OSMesa and -# disable Gallium for now. If you still want to enable Etnaviv, just set -# USE_OSMESA_ONLY_mx8 = "no" in your bbappend. -USE_OSMESA_ONLY_mx8 ?= "yes" - # Enable OSMesa which also requires dri (classic) swrast -PACKAGECONFIG_append = " ${@oe.utils.conditional('USE_OSMESA_ONLY', 'yes', ' osmesa', '', d)}" -PACKAGECONFIG_remove = " ${@oe.utils.conditional('USE_OSMESA_ONLY', 'yes', 'gallium', '', d)}" -DRIDRIVERS_append = "${@oe.utils.conditional('USE_OSMESA_ONLY', 'yes', 'swrast', '', d)}" +PACKAGECONFIG_remove_use-nxp-bsp = "gallium" +PACKAGECONFIG_append_use-nxp-bsp = " osmesa" +DRIDRIVERS_use-nxp-bsp = "swrast" BACKEND = \ "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \