summaryrefslogtreecommitdiffstats
path: root/recipes-devtools
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-04-20 15:21:09 -0700
committerKhem Raj <raj.khem@gmail.com>2015-04-21 19:42:09 -0700
commit2d1a625461af0b68f5cb9be955cb9088e1aa7dbd (patch)
tree6789120543b0ad50573f7e1233baac5dad923335 /recipes-devtools
parentcee9773fb6444413dcd72a97e4b3dffc35106744 (diff)
downloadmeta-clang-2d1a625461af0b68f5cb9be955cb9088e1aa7dbd.tar.gz
llvm/clang: Remove compiler-rt since its an independent recipe now
let it be put cross compile tool so no runtime target providers shims Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r--recipes-devtools/clang/clang.inc2
-rw-r--r--recipes-devtools/clang/clang_git.bb82
2 files changed, 12 insertions, 72 deletions
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc
index a07fe61..1e90133 100644
--- a/recipes-devtools/clang/clang.inc
+++ b/recipes-devtools/clang/clang.inc
@@ -1 +1,3 @@
1PV = "3.7.0" 1PV = "3.7.0"
2LLVM_RELEASE = ""
3LLVM_DIR = "llvm${LLVM_RELEASE}"
diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb
index 7e4ba73..baf66d1 100644
--- a/recipes-devtools/clang/clang_git.bb
+++ b/recipes-devtools/clang/clang_git.bb
@@ -11,18 +11,15 @@ require clang.inc
11BRANCH ?= "master" 11BRANCH ?= "master"
12LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa; \ 12LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=4c0bc17c954e99fd547528d938832bfa; \
13 file://tools/clang/LICENSE.TXT;md5=82ed8fe1976ca709bbd81f4f10a48ccd; \ 13 file://tools/clang/LICENSE.TXT;md5=82ed8fe1976ca709bbd81f4f10a48ccd; \
14 file://projects/compiler-rt/LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \
15 " 14 "
16SRC_URI = "git://github.com/llvm-mirror/llvm.git;branch=${BRANCH};name=llvm \ 15SRC_URI = "git://github.com/llvm-mirror/llvm.git;branch=${BRANCH};name=llvm \
17 git://github.com/llvm-mirror/clang.git;branch=${BRANCH};destsuffix=git/tools/clang;name=clang \ 16 git://github.com/llvm-mirror/clang.git;branch=${BRANCH};destsuffix=git/tools/clang;name=clang \
18 git://github.com/llvm-mirror/compiler-rt.git;branch=${BRANCH};destsuffix=git/projects/compiler-rt;name=compiler-rt \
19 " 17 "
20 18
21SRCREV_llvm = "2c64a1129f14d6322631e1c6d610b92c4c4871d0" 19SRCREV_llvm = "2c64a1129f14d6322631e1c6d610b92c4c4871d0"
22SRCREV_clang = "070ffd29fb0a5a558e8f9bd464f784ff24ef1a54" 20SRCREV_clang = "070ffd29fb0a5a558e8f9bd464f784ff24ef1a54"
23SRCREV_compiler-rt = "6f344e9bbc8fa322818b95f5ab35c8ef5ebfe0a9"
24 21
25SRCREV_FORMAT = "llvm_clang_compiler-rt" 22SRCREV_FORMAT = "llvm_clang"
26 23
27S = "${WORKDIR}/git" 24S = "${WORKDIR}/git"
28 25
@@ -32,6 +29,7 @@ EXTRA_OECMAKE="-DLLVM_ENABLE_RTTI:BOOL=True \
32 -DLLVM_ENABLE_FFI:BOOL=False \ 29 -DLLVM_ENABLE_FFI:BOOL=False \
33 -DCMAKE_SYSTEM_NAME=Linux \ 30 -DCMAKE_SYSTEM_NAME=Linux \
34 -DCMAKE_BUILD_TYPE:STRING=Release \ 31 -DCMAKE_BUILD_TYPE:STRING=Release \
32 -DLLVM_BUILD_EXTERNAL_COMPILER_RT:BOOL=True \
35 -DLLVM_TARGETS_TO_BUILD:STRING='AArch64;ARM;Mips;PowerPC;X86' \ 33 -DLLVM_TARGETS_TO_BUILD:STRING='AArch64;ARM;Mips;PowerPC;X86' \
36 " 34 "
37 35
@@ -43,75 +41,15 @@ EXTRA_OEMAKE += "REQUIRES_RTTI=1 VERBOSE=1"
43 41
44DEPENDS = "zlib libffi libxml2-native binutils" 42DEPENDS = "zlib libffi libxml2-native binutils"
45 43
46PROVIDES_append_class-target = "\
47 virtual/${TARGET_PREFIX}compilerlibs \
48 gcc-runtime \
49 libgcc \
50 libgcc-initial \
51 libg2c \
52 libg2c-dev \
53 libssp \
54 libssp-dev \
55 libssp-staticdev \
56 libgfortran \
57 libgfortran-dev \
58 libgfortran-staticdev \
59 libmudflap \
60 libmudflap-dev \
61 libgomp \
62 libgomp-dev \
63 libgomp-staticdev \
64 libitm \
65 libitm-dev \
66 libitm-staticdev \
67 libgcov-dev \
68 \
69 libgcc-dev \
70 libgcc-initial-dev \
71 libstdc++ \
72 libstdc++-dev \
73 libstdc++-staticdev \
74 libatomic \
75 libatomic-dev \
76 libatomic-staticdev \
77 libasan \
78 libasan-dev \
79 libasan-staticdev \
80 libubsan \
81 libubsan-dev \
82 libubsan-staticdev \
83 liblsan \
84 liblsan-dev \
85 liblsan-staticdev \
86 libtsan \
87 libtsan-dev \
88 libtsan-staticdev \
89 libssp \
90 libssp-dev \
91 libssp-staticdev \
92 libgfortran \
93 libgfortran-dev \
94 libgfortran-staticdev \
95 libmudflap \
96 libmudflap-dev \
97 libmudflap-staticdev \
98 libgomp \
99 libgomp-dev \
100 libgomp-staticdev \
101 libitm \
102 libitm-dev \
103 libitm-staticdev \
104"
105
106do_configure_prepend() { 44do_configure_prepend() {
107 # Remove RPATHs 45 # Remove RPATHs
108 sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' ${S}/Makefile.rules 46 sed -i 's:$(RPATH) -Wl,$(\(ToolDir\|LibDir\|ExmplDir\))::g' ${S}/Makefile.rules
109 # Drop "svn" suffix from version string 47 # Drop "svn" suffix from version string
110 sed -i 's/${PV}svn/${PV}/g' ${S}/configure 48 sed -i 's/${PV}svn/${PV}/g' ${S}/configure
111 49
112 # Fix paths in llvm-config 50 # Fix paths in llvm-config
113 sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp 51 sed -i "s|sys::path::parent_path(CurrentPath))\.str()|sys::path::parent_path(sys::path::parent_path(CurrentPath))).str()|g" ${S}/tools/llvm-config/llvm-config.cpp
114 sed -ri "s#/(bin|include|lib)(/?\")#/\1/${LLVM_DIR}\2#g" ${S}/tools/llvm-config/llvm-config.cpp 52 sed -ri "s#/(bin|include|lib)(/?\")#/\1/${LLVM_DIR}\2#g" ${S}/tools/llvm-config/llvm-config.cpp
115} 53}
116 54
117do_compile_prepend() { 55do_compile_prepend() {