diff options
Diffstat (limited to 'recipes-graphics/mesa')
-rw-r--r-- | recipes-graphics/mesa/mesa_%.bbappend | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend index a89184ec..74396ae8 100644 --- a/recipes-graphics/mesa/mesa_%.bbappend +++ b/recipes-graphics/mesa/mesa_%.bbappend | |||
@@ -1,6 +1,6 @@ | |||
1 | PACKAGECONFIG_remove_imxgpu2d = "egl gles" | 1 | PACKAGECONFIG_remove_imxgpu2d = "egl gles gbm" |
2 | 2 | ||
3 | PROVIDES_remove_imxgpu2d = "virtual/libgles1 virtual/libgles2 virtual/libopenvg virtual/egl" | 3 | PROVIDES_remove_imxgpu2d = "virtual/libgles1 virtual/libgles2 virtual/libopenvg virtual/egl gbm" |
4 | PROVIDES_remove_imxgpu3d = "virtual/libgl" | 4 | PROVIDES_remove_imxgpu3d = "virtual/libgl" |
5 | 5 | ||
6 | # FIXME: mesa should support 'x11-no-tls' option | 6 | # FIXME: mesa should support 'x11-no-tls' option |
@@ -17,11 +17,25 @@ python () { | |||
17 | PACKAGECONFIG_append_use-mainline-bsp = " gallium" | 17 | PACKAGECONFIG_append_use-mainline-bsp = " gallium" |
18 | GALLIUMDRIVERS_append_use-mainline-bsp = ",etnaviv,imx" | 18 | GALLIUMDRIVERS_append_use-mainline-bsp = ",etnaviv,imx" |
19 | 19 | ||
20 | BACKEND = \ | ||
21 | "${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', \ | ||
22 | bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', \ | ||
23 | 'fb', d), d)}" | ||
24 | |||
20 | # FIXME: Dirty hack to allow use of Vivante GPU libGL binary | 25 | # FIXME: Dirty hack to allow use of Vivante GPU libGL binary |
21 | do_install_append_imxgpu3d () { | 26 | do_install_append_imxgpu3d () { |
22 | rm -f ${D}${libdir}/libGL.* \ | 27 | rm -f ${D}${libdir}/libGL.* \ |
23 | ${D}${includedir}/GL/gl.h \ | 28 | ${D}${includedir}/GL/gl.h \ |
24 | ${D}${includedir}/GL/glext.h | 29 | ${D}${includedir}/GL/glext.h \ |
30 | ${D}${includedir}/GL/glx.h \ | ||
31 | ${D}${includedir}/GL/glxext.h | ||
32 | if [ "${BACKEND}" = "x11" ]; then | ||
33 | rm -f ${D}${libdir}/pkgconfig/gl.pc | ||
34 | fi | ||
35 | } | ||
36 | |||
37 | do_install_append_imxgpu2d () { | ||
38 | rm -f ${D}${libdir}/pkgconfig/wayland-egl.pc | ||
25 | } | 39 | } |
26 | 40 | ||
27 | do_install_append_imxgpu2d () { | 41 | do_install_append_imxgpu2d () { |