blob: be04c1aa4d161794dcd9acda769c9a7a5c9c111e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
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'"
BINARIES = "llvm-min-tblgen llvm-tblgen clang-tblgen lldb-tblgen"
OECMAKE_TARGET_COMPILE = "${BINARIES}"
do_install() {
for f in ${BINARIES}; do
install -D ${B}/bin/$f ${D}${bindir}/$f
done
}
|