mirror of
https://git.yoctoproject.org/poky
synced 2026-02-28 12:29:40 +01:00
Backport a patch from upstream to install lldb-tblgen, and change the llvm-tblgen-native recipe to use `cmake --install` instead of copying the binaries. This ensures that CMake does any post-install steps that are needed, and we don't install binaries that have eg RPATHs pointing at the build tree. (From OE-Core rev: 93051e8730263cfc23e1230015a4789dac4914de) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
26 lines
816 B
BlitzBasic
26 lines
816 B
BlitzBasic
SUMMARY = "LLVM TableGen binaries, for the build host"
|
|
SECTION = "devel"
|
|
|
|
# Building the LLVM projects often means using the TableGen tools (llvm-tblgen,
|
|
# etc). We could build these as part of llvm-native, but there are cases where
|
|
# this would be overkill. For example, building a target LLDB needs native
|
|
# tablegen binaries and a target libllvm so having to build a complete native
|
|
# llvm is not needed.
|
|
|
|
require common-clang.inc
|
|
require common-source.inc
|
|
|
|
inherit cmake pkgconfig native
|
|
|
|
OECMAKE_SOURCEPATH = "${S}/llvm"
|
|
|
|
EXTRA_OECMAKE += "-DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS='llvm;clang;lldb'"
|
|
|
|
OECMAKE_TARGET_COMPILE = "llvm-tblgen clang-tblgen lldb-tblgen"
|
|
|
|
do_install() {
|
|
for TARGET in ${OECMAKE_TARGET_COMPILE}; do
|
|
DESTDIR=${D} cmake --install ${B} --component $TARGET
|
|
done
|
|
}
|