summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-08-22 10:49:40 -0700
committerKhem Raj <raj.khem@gmail.com>2015-08-22 10:49:40 -0700
commit4aad80d178ffa09c536dc0101a741ee4da3902eb (patch)
tree2ff6e70af8b40813ef01b99238bd2d390fd869f4
parent34b8dd2d920feeb661f62f23e984ce37ed364321 (diff)
downloadmeta-clang-4aad80d178ffa09c536dc0101a741ee4da3902eb.tar.gz
compiler-rt,libcxx,libcxxabi: Fix and add recipes
Add new recipes for libcxx and libcxxabi fix compiler-rt builds using clang Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-devtools/clang/compiler-rt_git.bb6
-rw-r--r--recipes-devtools/clang/libcxx_git.bb40
-rw-r--r--recipes-devtools/clang/libcxxabi_git.bb39
3 files changed, 82 insertions, 3 deletions
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb
index 5f8a81d..e15d15a 100644
--- a/recipes-devtools/clang/compiler-rt_git.bb
+++ b/recipes-devtools/clang/compiler-rt_git.bb
@@ -11,7 +11,7 @@ DEPENDS += "clang-cross-${TRANSLATED_TARGET_ARCH}"
11 11
12require clang.inc 12require clang.inc
13 13
14BRANCH ?= "master" 14BRANCH ?= "release_37"
15 15
16LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \ 16LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \
17 " 17 "
@@ -19,7 +19,7 @@ SRC_URI = "git://github.com/llvm-mirror/compiler-rt.git;branch=${BRANCH};name=co
19 file://0001-support-a-new-embedded-linux-target.patch \ 19 file://0001-support-a-new-embedded-linux-target.patch \
20 " 20 "
21 21
22SRCREV_compiler-rt = "0a93a02dc42d75bad5b7c7dad975a488e2833fcc" 22SRCREV_compiler-rt = "b5214093d4c91ed5352d35ee9126665fabfa97fe"
23 23
24SRCREV_FORMAT = "compiler-rt" 24SRCREV_FORMAT = "compiler-rt"
25 25
@@ -35,7 +35,7 @@ do_configure () {
35 35
36do_compile () { 36do_compile () {
37 cd ${B} 37 cd ${B}
38 oe_runmake VERBOSE=1 clang_linux_embedded 38 oe_runmake VERBOSE=1 clang_linux
39} 39}
40 40
41#PROVIDES_append_class-target = "\ 41#PROVIDES_append_class-target = "\
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb
new file mode 100644
index 0000000..02e5bed
--- /dev/null
+++ b/recipes-devtools/clang/libcxx_git.bb
@@ -0,0 +1,40 @@
1# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4DESCRIPTION = "libc++ is a new implementation of the C++ standard library, targeting C++11"
5HOMEPAGE = "http://libcxx.llvm.org/"
6LICENSE = "MIT & UIUC"
7SECTION = "base"
8INHIBIT_DEFAULT_DEPS = "1"
9
10DEPENDS += "clang-cross-${TRANSLATED_TARGET_ARCH}"
11
12require clang.inc
13
14inherit cmake
15
16BRANCH ?= "release_37"
17
18DEPENDS += "libcxxabi"
19
20LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=149d2e8e8d99e3a2d702997b5f919fd9; \
21 "
22SRC_URI = "\
23 git://github.com/llvm-mirror/llvm.git;branch=${BRANCH};name=llvm \
24 git://github.com/llvm-mirror/libcxx.git;branch=${BRANCH};name=libcxx;destsuffix=git/projects/libcxx \
25 git://github.com/llvm-mirror/libcxxabi.git;branch=${BRANCH};name=libcxxabi;destsuffix=git/projects/libcxxabi \
26 "
27
28SRCREV_libcxxabi = "8f53d45e9ac7d3c078ab3fe8f91c40a4cc6b579a"
29SRCREV_libcxx = "de80a7d886d75188de210eb4d6f0768fdc4d4d0b"
30SRCREV_llvm = "937d48bea8f01b02d5f3db05a9e58dfb976e9d3b"
31
32SRCREV_FORMAT = "llvm_libcxx_libcxxabi"
33
34S = "${WORKDIR}/git/projects/libcxx"
35
36THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc"
37
38EXTRA_OECMAKE += "-DLIBCXX_CXX_ABI=libcxxabi -DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/../libcxxabi/include -DLLVM_PATH=${S}/../../"
39
40BBCLASSEXTEND = "native nativesdk"
diff --git a/recipes-devtools/clang/libcxxabi_git.bb b/recipes-devtools/clang/libcxxabi_git.bb
new file mode 100644
index 0000000..5194620
--- /dev/null
+++ b/recipes-devtools/clang/libcxxabi_git.bb
@@ -0,0 +1,39 @@
1# Copyright (C) 2015 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4DESCRIPTION = "libc++ is a new implementation of the C++ standard library, targeting C++11"
5HOMEPAGE = "http://libcxx.llvm.org/"
6LICENSE = "MIT & UIUC"
7SECTION = "base"
8INHIBIT_DEFAULT_DEPS = "1"
9
10DEPENDS += "clang-cross-${TRANSLATED_TARGET_ARCH}"
11
12require clang.inc
13
14inherit cmake
15
16BRANCH ?= "release_37"
17
18DEPENDS += "compiler-rt"
19LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=9041c9f38eb0f718f408e28ce138bb9a; \
20 "
21SRC_URI = "\
22 git://github.com/llvm-mirror/llvm.git;branch=${BRANCH};name=llvm \
23 git://github.com/llvm-mirror/libcxx.git;branch=${BRANCH};name=libcxx;destsuffix=git/projects/libcxx \
24 git://github.com/llvm-mirror/libcxxabi.git;branch=${BRANCH};name=libcxxabi;destsuffix=git/projects/libcxxabi \
25 "
26
27SRCREV_libcxxabi = "8f53d45e9ac7d3c078ab3fe8f91c40a4cc6b579a"
28SRCREV_libcxx = "de80a7d886d75188de210eb4d6f0768fdc4d4d0b"
29SRCREV_llvm = "937d48bea8f01b02d5f3db05a9e58dfb976e9d3b"
30
31SRCREV_FORMAT = "llvm_libcxx_libcxxabi"
32
33S = "${WORKDIR}/git/projects/libcxxabi"
34
35THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc"
36
37EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLLVM_PATH=${S}/../../ -DLIBCXXABI_LIBCXX_INCLUDES=${S}/../libcxx/include"
38
39BBCLASSEXTEND = "native nativesdk"