diff options
author | Fabio Berton <fabio.berton@ossystems.com.br> | 2020-12-11 17:44:34 -0300 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2020-12-11 19:37:54 -0300 |
commit | 3b0fc734634f8f0db1f48fc13c64cacd3d99dd92 (patch) | |
tree | 4817bca8429f1b4aafe556744a9eb006039effbf /recipes-graphics | |
parent | 6fc0971cb236284cd2ac325da677a87ca31723d8 (diff) | |
download | meta-freescale-3b0fc734634f8f0db1f48fc13c64cacd3d99dd92.tar.gz |
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 <fabio.berton@ossystems.com.br>
Diffstat (limited to 'recipes-graphics')
-rw-r--r-- | recipes-graphics/mesa/mesa_%.bbappend | 13 |
1 files changed, 3 insertions, 10 deletions
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 () { | |||
17 | # Enable Etnaviv and Freedreno support | 17 | # Enable Etnaviv and Freedreno support |
18 | PACKAGECONFIG_append_use-mainline-bsp = " gallium etnaviv kmsro freedreno" | 18 | PACKAGECONFIG_append_use-mainline-bsp = " gallium etnaviv kmsro freedreno" |
19 | 19 | ||
20 | USE_OSMESA_ONLY ?= "no" | ||
21 | |||
22 | # Etnaviv support state for i.MX8 is unknown, therefore only enable OSMesa and | ||
23 | # disable Gallium for now. If you still want to enable Etnaviv, just set | ||
24 | # USE_OSMESA_ONLY_mx8 = "no" in your bbappend. | ||
25 | USE_OSMESA_ONLY_mx8 ?= "yes" | ||
26 | |||
27 | # Enable OSMesa which also requires dri (classic) swrast | 20 | # Enable OSMesa which also requires dri (classic) swrast |
28 | PACKAGECONFIG_append = " ${@oe.utils.conditional('USE_OSMESA_ONLY', 'yes', ' osmesa', '', d)}" | 21 | PACKAGECONFIG_remove_use-nxp-bsp = "gallium" |
29 | PACKAGECONFIG_remove = " ${@oe.utils.conditional('USE_OSMESA_ONLY', 'yes', 'gallium', '', d)}" | 22 | PACKAGECONFIG_append_use-nxp-bsp = " osmesa" |
30 | DRIDRIVERS_append = "${@oe.utils.conditional('USE_OSMESA_ONLY', 'yes', 'swrast', '', d)}" | 23 | DRIDRIVERS_use-nxp-bsp = "swrast" |
31 | 24 | ||
32 | BACKEND = \ | 25 | BACKEND = \ |
33 | "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ | 26 | "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ |