diff options
| -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 8d429abf2..6b9b456c3 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', \ |
