diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-08-22 10:49:40 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2015-08-22 10:49:40 -0700 |
commit | 4aad80d178ffa09c536dc0101a741ee4da3902eb (patch) | |
tree | 2ff6e70af8b40813ef01b99238bd2d390fd869f4 | |
parent | 34b8dd2d920feeb661f62f23e984ce37ed364321 (diff) | |
download | meta-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.bb | 6 | ||||
-rw-r--r-- | recipes-devtools/clang/libcxx_git.bb | 40 | ||||
-rw-r--r-- | recipes-devtools/clang/libcxxabi_git.bb | 39 |
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 | ||
12 | require clang.inc | 12 | require clang.inc |
13 | 13 | ||
14 | BRANCH ?= "master" | 14 | BRANCH ?= "release_37" |
15 | 15 | ||
16 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \ | 16 | LIC_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 | ||
22 | SRCREV_compiler-rt = "0a93a02dc42d75bad5b7c7dad975a488e2833fcc" | 22 | SRCREV_compiler-rt = "b5214093d4c91ed5352d35ee9126665fabfa97fe" |
23 | 23 | ||
24 | SRCREV_FORMAT = "compiler-rt" | 24 | SRCREV_FORMAT = "compiler-rt" |
25 | 25 | ||
@@ -35,7 +35,7 @@ do_configure () { | |||
35 | 35 | ||
36 | do_compile () { | 36 | do_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 | |||
4 | DESCRIPTION = "libc++ is a new implementation of the C++ standard library, targeting C++11" | ||
5 | HOMEPAGE = "http://libcxx.llvm.org/" | ||
6 | LICENSE = "MIT & UIUC" | ||
7 | SECTION = "base" | ||
8 | INHIBIT_DEFAULT_DEPS = "1" | ||
9 | |||
10 | DEPENDS += "clang-cross-${TRANSLATED_TARGET_ARCH}" | ||
11 | |||
12 | require clang.inc | ||
13 | |||
14 | inherit cmake | ||
15 | |||
16 | BRANCH ?= "release_37" | ||
17 | |||
18 | DEPENDS += "libcxxabi" | ||
19 | |||
20 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=149d2e8e8d99e3a2d702997b5f919fd9; \ | ||
21 | " | ||
22 | SRC_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 | |||
28 | SRCREV_libcxxabi = "8f53d45e9ac7d3c078ab3fe8f91c40a4cc6b579a" | ||
29 | SRCREV_libcxx = "de80a7d886d75188de210eb4d6f0768fdc4d4d0b" | ||
30 | SRCREV_llvm = "937d48bea8f01b02d5f3db05a9e58dfb976e9d3b" | ||
31 | |||
32 | SRCREV_FORMAT = "llvm_libcxx_libcxxabi" | ||
33 | |||
34 | S = "${WORKDIR}/git/projects/libcxx" | ||
35 | |||
36 | THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" | ||
37 | |||
38 | EXTRA_OECMAKE += "-DLIBCXX_CXX_ABI=libcxxabi -DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/../libcxxabi/include -DLLVM_PATH=${S}/../../" | ||
39 | |||
40 | BBCLASSEXTEND = "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 | |||
4 | DESCRIPTION = "libc++ is a new implementation of the C++ standard library, targeting C++11" | ||
5 | HOMEPAGE = "http://libcxx.llvm.org/" | ||
6 | LICENSE = "MIT & UIUC" | ||
7 | SECTION = "base" | ||
8 | INHIBIT_DEFAULT_DEPS = "1" | ||
9 | |||
10 | DEPENDS += "clang-cross-${TRANSLATED_TARGET_ARCH}" | ||
11 | |||
12 | require clang.inc | ||
13 | |||
14 | inherit cmake | ||
15 | |||
16 | BRANCH ?= "release_37" | ||
17 | |||
18 | DEPENDS += "compiler-rt" | ||
19 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=9041c9f38eb0f718f408e28ce138bb9a; \ | ||
20 | " | ||
21 | SRC_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 | |||
27 | SRCREV_libcxxabi = "8f53d45e9ac7d3c078ab3fe8f91c40a4cc6b579a" | ||
28 | SRCREV_libcxx = "de80a7d886d75188de210eb4d6f0768fdc4d4d0b" | ||
29 | SRCREV_llvm = "937d48bea8f01b02d5f3db05a9e58dfb976e9d3b" | ||
30 | |||
31 | SRCREV_FORMAT = "llvm_libcxx_libcxxabi" | ||
32 | |||
33 | S = "${WORKDIR}/git/projects/libcxxabi" | ||
34 | |||
35 | THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" | ||
36 | |||
37 | EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLLVM_PATH=${S}/../../ -DLIBCXXABI_LIBCXX_INCLUDES=${S}/../libcxx/include" | ||
38 | |||
39 | BBCLASSEXTEND = "native nativesdk" | ||