diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-07-31 10:48:20 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-08 10:19:56 +0100 |
commit | 4df4352813c76ef75ab7c85e40d2b5ec2e8535ec (patch) | |
tree | e0de09a7bcacc826ca68e70e921f49f013936ef7 /meta/recipes-graphics | |
parent | 3ef77a577c8dcbf9ac3718a3bc114767ab55a71a (diff) | |
download | poky-4df4352813c76ef75ab7c85e40d2b5ec2e8535ec.tar.gz |
mesa,llvm,meson: Update llvm to 8.0.1 plus define and use LLVM version globally
- Add missing dependency on libedit
- Define LLVMVERSION on the same lines as GCCVERSION and other tools
- Use LLVMVERSION in mesa and meson.bbclass to get llvm version instead of
hardcoding it
- Use llvm patches unmodified from meta-clang, helps in keeping them in
sync
- Define PREFERRED_VERSION for llvm, llvm-native, nativesdk-llvm
(From OE-Core rev: 3c08b638348abd543fc92baf56c28ca16ae6aac6)
Signed-off-by: Khem Raj <raj.khem@gmail.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 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/recipes-graphics/mesa/mesa.inc b/meta/recipes-graphics/mesa/mesa.inc index 5bbd13bca2..e99eb39d26 100644 --- a/meta/recipes-graphics/mesa/mesa.inc +++ b/meta/recipes-graphics/mesa/mesa.inc | |||
@@ -36,6 +36,10 @@ PLATFORMS ??= "${@bb.utils.filter('PACKAGECONFIG', 'x11 wayland', d)} \ | |||
36 | 36 | ||
37 | export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm${MESA_LLVM_RELEASE}/llvm-config" | 37 | export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm${MESA_LLVM_RELEASE}/llvm-config" |
38 | export YOCTO_ALTERNATE_MULTILIB_NAME = "${base_libdir}" | 38 | export YOCTO_ALTERNATE_MULTILIB_NAME = "${base_libdir}" |
39 | export LLVM_CONFIG = "${STAGING_BINDIR_NATIVE}/llvm-config${MESA_LLVM_RELEASE}" | ||
40 | export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}" | ||
41 | |||
42 | MESA_LLVM_RELEASE ?= "${LLVMVERSION}" | ||
39 | 43 | ||
40 | EXTRA_OEMESON = " \ | 44 | EXTRA_OEMESON = " \ |
41 | -Dshared-glapi=true \ | 45 | -Dshared-glapi=true \ |
@@ -107,10 +111,8 @@ GALLIUMDRIVERS_append = "${@bb.utils.contains('PACKAGECONFIG', 'r600', ',r600', | |||
107 | GALLIUMDRIVERS_append = ",virgl" | 111 | GALLIUMDRIVERS_append = ",virgl" |
108 | 112 | ||
109 | PACKAGECONFIG[gallium] = "-Dgallium-drivers=${GALLIUMDRIVERS}, -Dgallium-drivers=''" | 113 | PACKAGECONFIG[gallium] = "-Dgallium-drivers=${GALLIUMDRIVERS}, -Dgallium-drivers=''" |
110 | MESA_LLVM_RELEASE ?= "8.0.0" | ||
111 | PACKAGECONFIG[gallium-llvm] = "-Dllvm=true -Dshared-llvm=true, -Dllvm=false, llvm${MESA_LLVM_RELEASE} llvm-native \ | 114 | PACKAGECONFIG[gallium-llvm] = "-Dllvm=true -Dshared-llvm=true, -Dllvm=false, llvm${MESA_LLVM_RELEASE} llvm-native \ |
112 | ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" | 115 | ${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" |
113 | export WANT_LLVM_RELEASE = "${MESA_LLVM_RELEASE}" | ||
114 | PACKAGECONFIG[xa] = "-Dgallium-xa=true, -Dgallium-xa=false" | 116 | PACKAGECONFIG[xa] = "-Dgallium-xa=true, -Dgallium-xa=false" |
115 | 117 | ||
116 | PACKAGECONFIG[lima] = "" | 118 | PACKAGECONFIG[lima] = "" |