summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}