]> code.ossystems Code Review - meta-freescale.git/commitdiff
mesa: Use OSMesa for use-nxp-bsp
authorFabio Berton <fabio.berton@ossystems.com.br>
Fri, 11 Dec 2020 20:44:34 +0000 (17:44 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Fri, 11 Dec 2020 22:37:54 +0000 (19:37 -0300)
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 <fabio.berton@ossystems.com.br>
recipes-graphics/mesa/mesa_%.bbappend

index 8d429abf2f60603c7217e5dc58d3e70b76e908bd..6b9b456c3741e5be0382e5d71f89381afe23230f 100644 (file)
@@ -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', \