diff mbox series

mesa: Fix build with etnaviv gallium driver

Message ID f0385d39c4df4823383e476f4cdb4a538766f707.1724239111.git.esben@geanix.com
State Accepted, archived
Commit bfc6ccd171b1cf5544ef79839fbc94e2c682bfda
Headers show
Series mesa: Fix build with etnaviv gallium driver | expand

Commit Message

esben.haabendal@huawei.com Aug. 21, 2024, 11:42 a.m. UTC
From: Esben Haabendal <esben@geanix.com>

As of mesa version 24.1.0, the etnaviv gallium driver requires the Python
pycparser module when building.

Without it, build fails with something like:

../mesa-24.1.4/src/etnaviv/hwdb/meson.build:17:2: ERROR: Problem encountered: Python (3.x) pycparser module >= 2.20 required to build mesa.

Signed-off-by: Esben Haabendal <esben@geanix.com>
---
 meta/recipes-graphics/mesa/mesa.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 973b76213571..20a352b9b758 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -149,7 +149,7 @@  OPENCL_NATIVE = "${@bb.utils.contains('PACKAGECONFIG', 'freedreno', '-Dopencl-na
 PACKAGECONFIG[opencl] = "-Dgallium-opencl=icd -Dopencl-spirv=true ${OPENCL_NATIVE},-Dgallium-opencl=disabled -Dopencl-spirv=false,libclc spirv-tools python3-ply-native"
 
 PACKAGECONFIG[broadcom] = ""
-PACKAGECONFIG[etnaviv] = ""
+PACKAGECONFIG[etnaviv] = ",,python3-pycparser-native"
 PACKAGECONFIG[freedreno] = ""
 PACKAGECONFIG[kmsro] = ""
 PACKAGECONFIG[vc4] = ""