blob: b3cb7a64eceed486ee6bc34aaff8606b13eb1fa7 (
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
28
29
30
31
32
33
|
require llvm.inc
DEPENDS = "llvm-common-native cmake-native binutils-cross perl-native"
inherit native
# the difference to the non-native build is that we do not need
# to declare the location of the tblgen executable.
EXTRA_OECMAKE = "\
-DLLVM_TARGETS_TO_BUILD=${LLVM_ARCH} \
-DCMAKE_LINKER:FILEPATH=${LD} \
-DCMAKE_AR:FILEPATH=${AR} \
-DCMAKE_OBJCOPY:FILEPATH=${OBJCOPY} \
-DCMAKE_OBJDUMP:FILEPATH=${OBJDUMP} \
-DCMAKE_RANLIB:FILEPATH=${RANLIB} \
-DCMAKE_STRIP:FILEPATH=${STRIP} \
-DNM_PATH:FILEPATH=${NM} \
"
PACKAGES = ""
PACKAGES_DYNAMIC = ""
do_stage() {
cd ${OECMAKE_BUILDPATH}
llvm_stage
install -d ${STAGING_BINDIR}
install -m 0755 bin/llvm-config${LLVM_RELEASE} ${STAGING_BINDIR}
}
|