From 15ffb04f7c20d9a636c6889a883d18831c02a435 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Tue, 10 Mar 2026 14:57:57 -0700 Subject: 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 --- recipes-graphics/mesa/mesa.bbappend | 43 ------------------------------------- 1 file changed, 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 @@ -PROVIDES:remove:imxgpu = "virtual/egl" -PROVIDES:remove:imxgpu3d = "virtual/libgl virtual/libgles1 virtual/libgles2" - -PACKAGECONFIG:remove:imxgpu = "egl gbm" -PACKAGECONFIG:remove:imxgpu3d = "gles" - -# FIXME: mesa should support 'x11-no-tls' option -python () { - overrides = d.getVar("OVERRIDES").split(":") - if "imxgpu2d" not in overrides: - return - - x11flag = d.getVarFlag("PACKAGECONFIG", "x11", False) - d.setVarFlag("PACKAGECONFIG", "x11", x11flag.replace("--enable-glx-tls", "--enable-glx")) -} - # Enable Etnaviv and Freedreno support PACKAGECONFIG:append:use-mainline-bsp = " gallium etnaviv freedreno" - -# For NXP BSP, GPU drivers don't support dri -PACKAGECONFIG:remove:imxgpu:use-nxp-bsp = "dri" - -# mainline/etnaviv: RRECOMMENDS:${PN}-megadriver:append:use-mainline-bsp = " libdrm-etnaviv mesa-etnaviv-env" - -BACKEND = \ - "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ - bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \ - 'fb', d), d)}" - -# FIXME: Dirty hack to allow use of Vivante GPU libGL binary -do_install:append:imxgpu3d () { - rm -f ${D}${libdir}/libGL.* \ - ${D}${includedir}/GL/gl.h \ - ${D}${includedir}/GL/glcorearb.h \ - ${D}${includedir}/GL/glext.h \ - ${D}${includedir}/GL/glx.h \ - ${D}${includedir}/GL/glxext.h - if [ "${BACKEND}" = "x11" ]; then - rm -f ${D}${libdir}/pkgconfig/gl.pc - fi -} - -do_install:append:imxgpu () { - rm -rf ${D}${includedir}/KHR -} -- cgit v1.2.3-54-g00ecf