diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-05-04 21:15:13 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-05 18:02:48 +0100 |
commit | 67b810139f41ae73f673d8913de91223dd3e7ec4 (patch) | |
tree | 29470ddce69be6e0952f6b22318baff54f893d55 /meta/recipes-graphics | |
parent | 5b7aaa505f33f5f04918204f09c1c51891d1bb18 (diff) | |
download | poky-67b810139f41ae73f673d8913de91223dd3e7ec4.tar.gz |
mesa: Pass needed clang flags via BINDGEN_EXTRA_CLANG_ARGS
This is needed for clang to find the c++ headers when invoked via
bindgen
Fixes
| /mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux/mesa/25.0.2/recipe-sysroot/usr/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: 'cassert' file not found
| Unable to generate bindings: clang diagnosed error: /mnt/b/yoe/master/sources/poky/build/tmp/work/cortexa57-poky-linux/mesa/25.0.2/recipe-sysroot/usr/include/llvm/ADT/DenseMapInfo.h:17:10: fatal error: 'cassert' file not found
|
(From OE-Core rev: 6d9f95a25dd32871e8c07ec3295a216236b3a7e0)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 2b0ade496f..0356a13ecf 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -265,6 +265,10 @@ PACKAGES =+ "libegl-mesa libegl-mesa-dev \ | |||
265 | mesa-vdpau-drivers mesa-tools \ | 265 | mesa-vdpau-drivers mesa-tools \ |
266 | " | 266 | " |
267 | 267 | ||
268 | do_compile:prepend:class-target() { | ||
269 | export BINDGEN_EXTRA_CLANG_ARGS="${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} --target=${TARGET_SYS}" | ||
270 | } | ||
271 | |||
268 | do_install:append () { | 272 | do_install:append () { |
269 | # libwayland-egl has been moved to wayland 1.15+ | 273 | # libwayland-egl has been moved to wayland 1.15+ |
270 | rm -f ${D}${libdir}/libwayland-egl* | 274 | rm -f ${D}${libdir}/libwayland-egl* |