summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2026-03-10 14:57:57 -0700
committerTom Hochstein <tom.hochstein@nxp.com>2026-03-10 15:10:28 -0700
commit15ffb04f7c20d9a636c6889a883d18831c02a435 (patch)
tree8c132f0cbdd44eea32d0f9d8482d742e7021157a
parent3be503e788c41d6eec8368dd9117e6bbd7f7a588 (diff)
downloadmeta-freescale-15ffb04f7c20d9a636c6889a883d18831c02a435.tar.gz
mesa: Drop un-used NXP BSP overrides
The imx-gpu-viv recipe was once reliant on mesa, but today there appears to be no such dependency, so drop the overrides. Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
-rw-r--r--recipes-graphics/mesa/mesa.bbappend43
1 files changed, 0 insertions, 43 deletions
diff --git a/recipes-graphics/mesa/mesa.bbappend b/recipes-graphics/mesa/mesa.bbappend
index 1c75c9884..926f57589 100644
--- a/recipes-graphics/mesa/mesa.bbappend
+++ b/recipes-graphics/mesa/mesa.bbappend
@@ -1,46 +1,3 @@
1PROVIDES:remove:imxgpu = "virtual/egl"
2PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2"
3
4PACKAGECONFIG:remove:imxgpu = "egl gbm"
5PACKAGECONFIG:remove:imxgpu3d = "gles"
6
7# FIXME: mesa should support 'x11-no-tls' option
8python () {
9 overrides = d.getVar("OVERRIDES").split(":")
10 if "imxgpu2d" not in overrides:
11 return
12
13 x11flag = d.getVarFlag("PACKAGECONFIG", "x11", False)
14 d.setVarFlag("PACKAGECONFIG", "x11", x11flag.replace("--enable-glx-tls", "--enable-glx"))
15}
16
17# Enable Etnaviv and Freedreno support 1# Enable Etnaviv and Freedreno support
18PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv freedreno" 2PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv freedreno"
19
20# For NXP BSP, GPU drivers don't support dri
21PACKAGECONFIG:remove:imxgpu:use-nxp-bsp = "dri"
22
23# mainline/etnaviv:
24RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env" 3RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env"
25
26BACKEND = \
27 "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \
28 bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \
29 'fb', d), d)}"
30
31# FIXME: Dirty hack to allow use of Vivante GPU libGL binary
32do_install:append:imxgpu3d () {
33 rm -f ${D}${libdir}/libGL.* \
34 ${D}${includedir}/GL/gl.h \
35 ${D}${includedir}/GL/glcorearb.h \
36 ${D}${includedir}/GL/glext.h \
37 ${D}${includedir}/GL/glx.h \
38 ${D}${includedir}/GL/glxext.h
39 if [ "${BACKEND}" = "x11" ]; then
40 rm -f ${D}${libdir}/pkgconfig/gl.pc
41 fi
42}
43
44do_install:append:imxgpu () {
45 rm -rf ${D}${includedir}/KHR
46}