diff options
| -rw-r--r-- | meta/recipes-graphics/mesa/mesa.inc | 14 |
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 | ||
| 56 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}" | 56 | PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)}" |
| 57 | 57 | ||
| 58 | export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm-config" | 58 | # By placing llvm-config in the target sysroot bindir, it will then map values |
| 59 | export 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 |
| 60 | export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}" | 60 | # there. |
| 61 | 61 | PATH:prepend = "${STAGING_BINDIR_CROSS}:${STAGING_BINDIR}:" | |
| 62 | MESA_LLVM_RELEASE ?= "${LLVMVERSION}" | 62 | MESA_LLVM_RELEASE ?= "${LLVMVERSION}" |
| 63 | do_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 |
