From 003dd05e4c168f7c3cccb9cbfad3fd8f38fe8741 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 13 Nov 2019 22:59:11 -0800 Subject: clang: Provide llvm/llvm-native When using meta-clang, it makes sense to use llvm provided by clang recipe, this ensures that we do not build llvm from oe-core but instead offer the one from clang recipe enable rtti and eh for native/nativesdk clang, this is needed for mesa to build Let clang PROVIDE llvm Build AMDGNU and other targets, this is needed for llvm-config to work properly, since we use llvm-config from clang-native, so its better to build the targets that are built for clang-native atleast create version specific symlinks for tblgen anf llvm-config Signed-off-by: Khem Raj --- recipes-graphics/mesa/mesa_%.bbappend | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'recipes-graphics') diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend index fadc95c..26c6fe3 100644 --- a/recipes-graphics/mesa/mesa_%.bbappend +++ b/recipes-graphics/mesa/mesa_%.bbappend @@ -3,3 +3,8 @@ DEPENDS_append_toolchain-clang = " libatomic-ops" EXTRA_OECONF_append_toolchain-clang_x86 = " --disable-asm" EXTRA_OECONF_append_toolchain-clang_x86-64 = " --disable-asm" + +export YOCTO_ALTERNATE_EXE_PATH = "${STAGING_LIBDIR}/llvm-config" + +PACKAGECONFIG[gallium-llvm] = "-Dllvm=true -Dshared-llvm=true, -Dllvm=false, clang clang-native \ +${@'elfutils' if ${GALLIUMDRIVERS_LLVM33_ENABLED} else ''}" -- cgit v1.2.3-54-g00ecf