diff options
| author | Tom Hochstein <tom.hochstein@nxp.com> | 2026-03-10 14:57:57 -0700 |
|---|---|---|
| committer | Tom Hochstein <tom.hochstein@nxp.com> | 2026-03-10 15:10:28 -0700 |
| commit | 15ffb04f7c20d9a636c6889a883d18831c02a435 (patch) | |
| tree | 8c132f0cbdd44eea32d0f9d8482d742e7021157a | |
| parent | 3be503e788c41d6eec8368dd9117e6bbd7f7a588 (diff) | |
| download | meta-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.bbappend | 43 |
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 @@ | |||
| 1 | PROVIDES:remove:imxgpu = "virtual/egl" | ||
| 2 | PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" | ||
| 3 | |||
| 4 | PACKAGECONFIG:remove:imxgpu = "egl gbm" | ||
| 5 | PACKAGECONFIG:remove:imxgpu3d = "gles" | ||
| 6 | |||
| 7 | # FIXME: mesa should support 'x11-no-tls' option | ||
| 8 | python () { | ||
| 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 |
| 18 | PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv freedreno" | 2 | PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv freedreno" |
| 19 | |||
| 20 | # For NXP BSP, GPU drivers don't support dri | ||
| 21 | PACKAGECONFIG:remove:imxgpu:use-nxp-bsp = "dri" | ||
| 22 | |||
| 23 | # mainline/etnaviv: | ||
| 24 | RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env" | 3 | RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env" |
| 25 | |||
| 26 | BACKEND = \ | ||
| 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 | ||
| 32 | do_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 | |||
| 44 | do_install:append:imxgpu () { | ||
| 45 | rm -rf ${D}${includedir}/KHR | ||
| 46 | } | ||
