diff options
author | Robert Schuster <thebohemian@gmx.net> | 2009-03-31 11:51:10 +0200 |
---|---|---|
committer | Robert Schuster <thebohemian@gmx.net> | 2009-03-31 11:55:05 +0200 |
commit | 8db75a24a2f7d0af4bac46e69535733a203226c2 (patch) | |
tree | 8c34f03d1828b2be5f725eaa220ce7aca7f54675 /recipes/llvm/llvm-native.inc | |
parent | 7ac3d6c5fa717dbd30b523e2259f20ced8d0f253 (diff) |
llvm: Reworked to allow multiple installation of same version.
- introduced common include file
- provided implementation for llvm 2.5
- added wrapper script and its build recipe
- the same for native side
llvm2.5 2.5: New recipe
llvm2.5-native 2.5: New recipe.
llvm-common: New recipe.
llvm-common-native: New recipe.
Diffstat (limited to 'recipes/llvm/llvm-native.inc')
-rw-r--r-- | recipes/llvm/llvm-native.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes/llvm/llvm-native.inc b/recipes/llvm/llvm-native.inc new file mode 100644 index 0000000000..a7d7fa3830 --- /dev/null +++ b/recipes/llvm/llvm-native.inc @@ -0,0 +1,26 @@ +require llvm.inc + +DEPENDS = "llvm-common-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} \ +" + +do_stage() { + llvm_stage + + install -d ${STAGING_BINDIR} + install -m 0755 build/bin/llvm-config${LLVM_RELEASE} ${STAGING_BINDIR} +} + + |