]> code.ossystems Code Review - meta-freescale.git/commitdiff
mesa: Disable dri for parts without DRM
authorTom Hochstein <tom.hochstein@nxp.com>
Tue, 2 Feb 2021 18:15:45 +0000 (12:15 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 3 Feb 2021 10:57:42 +0000 (07:57 -0300)
On dunfell mesa build breaks with dri enabled:

```
| meson.build:455:4: ERROR: Problem encountered: building dri drivers require at least one windowing system or classic osmesa
```

The break does not occur on master since dri is disabled if no dri drivers are
configured.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-graphics/mesa/mesa_%.bbappend

index 4f38acd9deb07bf0dfd382058f131e5f1b0e95ee..b6dbcc2f3b9607e8fefd081356a482c9cf4e4d64 100644 (file)
@@ -17,10 +17,15 @@ python () {
 # Enable Etnaviv and Freedreno support
 PACKAGECONFIG_append_use-mainline-bsp = " gallium etnaviv kmsro freedreno"
 
-# For NXP BSP, enable OSMesa for parts with DRM
-# Also enable swrast for its dri driver
-PACKAGECONFIG_remove_use-nxp-bsp_imxdrm = "gallium"
-PACKAGECONFIG_append_use-nxp-bsp_imxdrm = " osmesa"
+# For NXP BSP, disable dri for parts without DRM.
+# Disable gallium and enable OSMesa for parts with DRM.
+# Also enable swrast for its dri driver for parts with DRM.
+PACKAGECONFIG_REMOVE_NXPBSP        = "dri"
+PACKAGECONFIG_APPEND_NXPBSP        = ""
+PACKAGECONFIG_REMOVE_NXPBSP_imxdrm = "gallium"
+PACKAGECONFIG_APPEND_NXPBSP_imxdrm = "osmesa"
+PACKAGECONFIG_remove_use-nxp-bsp   = "${PACKAGECONFIG_REMOVE_NXPBSP}"
+PACKAGECONFIG_append_use-nxp-bsp   = " ${PACKAGECONFIG_APPEND_NXPBSP}"
 DRIDRIVERS_use-nxp-bsp_imxdrm = "swrast"
 
 BACKEND = \