summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa.inc
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-23 15:12:14 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-31 10:40:07 +0100
commit858389a9926fad03ece967c3a6b2f452ad797367 (patch)
tree1a1662b7c2d71d38c9e90a4b7460b6def763be9e /meta/recipes-graphics/mesa/mesa.inc
parent13f8a86122cac43cb0084be0ba94c8ccefc72e29 (diff)
downloadpoky-858389a9926fad03ece967c3a6b2f452ad797367.tar.gz
mesa: Rework llvm handling
meson in mesa no longer uses WANT_LLVM_RELEASE and LLVM_CONFIG so drop those. Instead, copy the llvm-config binary into the target sysroot which allows the paths to be relocated to the target in question. This should allow the llvm patch for YOCTO_ALTERNATE_EXE_PATH to be dropped assuming nothing else relies upon it. (From OE-Core rev: 1dfb29a66f0db673c9d6faffed9b5bd855b206e1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa.inc')
-rw-r--r--meta/recipes-graphics/mesa/mesa.inc14
1 files changed, 10 insertions, 4 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc
index c4efc13438..d850246724 100644
--- a/meta/recipes-graphics/mesa/mesa.inc
+++ b/meta/recipes-graphics/mesa/mesa.inc
@@ -55,11 +55,17 @@ ANY_OF_DISTRO_FEATURES:class-target = "opengl vulkan"
55 55
56PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}" 56PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}"
57 57
58export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm-config" 58# By placing llvm-config in the target sysroot bindir, it will then map values
59export LLVM_CONFIG = "${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE}" 59# to the target libdir magically. We can safely add to path as there are no other binaries
60export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}" 60# there.
61 61PATH:prepend = "${STAGING_BINDIR_CROSS}:${STAGING_BINDIR}:"
62MESA_LLVM_RELEASE ?= "${LLVMVERSION}" 62MESA_LLVM_RELEASE ?= "${LLVMVERSION}"
63do_configure:prepend () {
64 if [ -e ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ]; then
65 cp ${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE} ${STAGING_BINDIR}
66 cp ${STAGING_BINDIR_NATIVE}/llvm-config ${STAGING_BINDIR}
67 fi
68}
63 69
64# set the MESA_BUILD_TYPE to either 'release' (default) or 'debug' 70# set the MESA_BUILD_TYPE to either 'release' (default) or 'debug'
65# by default the upstream mesa sources build a debug release 71# by default the upstream mesa sources build a debug release