summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-15 16:31:22 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-26 10:00:32 +0200
commit265e58da86ee32c86ab52c24b2d8ce4a7cc508a0 (patch)
tree3ffb140bcd739e9093c22c1199a68fcafa6d0b4e /meta-oe
parent2a5dea2399e2be5e5d964eda7465dcaf4c2e152b (diff)
downloadmeta-openembedded-265e58da86ee32c86ab52c24b2d8ce4a7cc508a0.tar.gz
llvm2.9: Import from meta-java
* llvm is generic enough to be useful outside meta-java e.g. we need it to enable llvmpipe galium driver in mesa * imported without any modification (except indentation), all credits go to Henning Heinold and Khem Raj for maintaining it in meta-java Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-core/llvm/llvm2.9/arm_fenv_uclibc.patch14
-rw-r--r--meta-oe/recipes-core/llvm/llvm2.9_2.9.bb29
2 files changed, 43 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/llvm/llvm2.9/arm_fenv_uclibc.patch b/meta-oe/recipes-core/llvm/llvm2.9/arm_fenv_uclibc.patch
new file mode 100644
index 000000000..c3ae49464
--- /dev/null
+++ b/meta-oe/recipes-core/llvm/llvm2.9/arm_fenv_uclibc.patch
@@ -0,0 +1,14 @@
1Index: llvm-2.9/include/llvm/Support/FEnv.h
2===================================================================
3--- llvm-2.9.orig/include/llvm/Support/FEnv.h 2010-11-29 20:44:50.000000000 +0100
4+++ llvm-2.9/include/llvm/Support/FEnv.h 2011-11-18 18:42:22.580161297 +0100
5@@ -17,6 +17,9 @@
6
7 #include "llvm/Config/config.h"
8 #include <cerrno>
9+
10+#undef HAVE_FENV_H
11+
12 #ifdef HAVE_FENV_H
13 #include <fenv.h>
14 #endif
diff --git a/meta-oe/recipes-core/llvm/llvm2.9_2.9.bb b/meta-oe/recipes-core/llvm/llvm2.9_2.9.bb
new file mode 100644
index 000000000..68cf70bb4
--- /dev/null
+++ b/meta-oe/recipes-core/llvm/llvm2.9_2.9.bb
@@ -0,0 +1,29 @@
1require llvm.inc
2
3PR = "${INC_PR}.0"
4
5SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "
6
7PARALLEL_MAKE_virtclass-native = ""
8
9EXTRA_OECMAKE = "\
10 -DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm${LLVM_RELEASE}/tblgen \
11 -DLLVM_TARGETS_TO_BUILD="X86;${LLVM_ARCH}" \
12 -DCMAKE_LINKER:FILEPATH=${LD} \
13 -DCMAKE_AR:FILEPATH=${AR} \
14 -DCMAKE_OBJCOPY:FILEPATH=${OBJCOPY} \
15 -DCMAKE_OBJDUMP:FILEPATH=${OBJDUMP} \
16 -DCMAKE_RANLIB:FILEPATH=${RANLIB} \
17 -DCMAKE_STRIP:FILEPATH=${STRIP} \
18 -DNM_PATH:FILEPATH=${NM} \
19 -DLLVM_ENABLE_PIC:BOOL=ON \
20 -DLLVM_TARGET_ARCH:STRING=${LLVM_ARCH} \
21 -DLLVM_ENABLE_ASSERTIONS:BOOL=ON \
22 -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
23 -DBUILD_SHARED_LIBS:BOOL=ON \
24"
25
26LLVM_RELEASE = "2.9"
27
28SRC_URI[md5sum] = "793138412d2af2c7c7f54615f8943771"
29SRC_URI[sha256sum] = "661236cfa17428b48cfa9cbb9909f7569c64b8ecd219fd91dbc00e3b557b3779"