summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@oss.nxp.com>2024-12-23 14:04:56 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-08 12:37:20 +0000
commit77923f92696198767ed09151735af826025219e4 (patch)
treee66d62af64227cb84309496763ea6a3f15eea976
parent5cef6cbe2d95d8ead8122bfea4d12ccf3c43dceb (diff)
downloadpoky-77923f92696198767ed09151735af826025219e4.tar.gz
mesa: Fix missing GLES3 headers in SDK sysroot
Building weston with core-image-weston SDK fails: ``` ../libweston/renderer-gl/gl-shader-config-color-transformation.c:29:10: fatal error: GLES3/gl3.h: No such file or directory 29 | #include <GLES3/gl3.h> | ^~~~~~~~~~~~~ ``` Both GLES2 and GLES3 implementations are contained in libGLESv2.so.2, which is packaged in libgles2-mesa. However, the headers are split between libgles2-mesa-dev and libgles3-mesa-dev, which is why the GLES3 headers end up missing in the SDK sysroot. Add a dependency so the GLES3 headers are properly associated with the GLES3 implementation. (From OE-Core rev: 7e1308ec413e69a8427ac5998431005d9e4b8033) Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index 9fdf496e8b..b3c595b767 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -233,6 +233,11 @@ DEV_PKG_DEPENDENCY = ""
233# development package of libgles3. 233# development package of libgles3.
234RDEPENDS:libgles3-mesa-dev += "libgles2-mesa-dev" 234RDEPENDS:libgles3-mesa-dev += "libgles2-mesa-dev"
235 235
236# GLES2 and GLES3 implementations are packaged in a single library in libgles2-mesa.
237# Add a dependency so the GLES3 dev package is associated with its implementation.
238RDEPENDS:libgles2-mesa += "libgles3-mesa"
239ALLOW_EMPTY:libgles3-mesa = "1"
240
236RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc spirv-tools', '', d)}" 241RDEPENDS:libopencl-mesa += "${@bb.utils.contains('PACKAGECONFIG', 'opencl', 'libclc spirv-tools', '', d)}"
237 242
238PACKAGES =+ "libegl-mesa libegl-mesa-dev \ 243PACKAGES =+ "libegl-mesa libegl-mesa-dev \