From 4aad80d178ffa09c536dc0101a741ee4da3902eb Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 22 Aug 2015 10:49:40 -0700 Subject: 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 --- recipes-devtools/clang/compiler-rt_git.bb | 6 ++--- recipes-devtools/clang/libcxx_git.bb | 40 +++++++++++++++++++++++++++++++ recipes-devtools/clang/libcxxabi_git.bb | 39 ++++++++++++++++++++++++++++++ 3 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 recipes-devtools/clang/libcxx_git.bb create mode 100644 recipes-devtools/clang/libcxxabi_git.bb (limited to 'recipes-devtools/clang') 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}" require clang.inc -BRANCH ?= "master" +BRANCH ?= "release_37" LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \ " @@ -19,7 +19,7 @@ SRC_URI = "git://github.com/llvm-mirror/compiler-rt.git;branch=${BRANCH};name=co file://0001-support-a-new-embedded-linux-target.patch \ " -SRCREV_compiler-rt = "0a93a02dc42d75bad5b7c7dad975a488e2833fcc" +SRCREV_compiler-rt = "b5214093d4c91ed5352d35ee9126665fabfa97fe" SRCREV_FORMAT = "compiler-rt" @@ -35,7 +35,7 @@ do_configure () { do_compile () { cd ${B} - oe_runmake VERBOSE=1 clang_linux_embedded + oe_runmake VERBOSE=1 clang_linux } #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 @@ +# Copyright (C) 2015 Khem Raj +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "libc++ is a new implementation of the C++ standard library, targeting C++11" +HOMEPAGE = "http://libcxx.llvm.org/" +LICENSE = "MIT & UIUC" +SECTION = "base" +INHIBIT_DEFAULT_DEPS = "1" + +DEPENDS += "clang-cross-${TRANSLATED_TARGET_ARCH}" + +require clang.inc + +inherit cmake + +BRANCH ?= "release_37" + +DEPENDS += "libcxxabi" + +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=149d2e8e8d99e3a2d702997b5f919fd9; \ + " +SRC_URI = "\ + git://github.com/llvm-mirror/llvm.git;branch=${BRANCH};name=llvm \ + git://github.com/llvm-mirror/libcxx.git;branch=${BRANCH};name=libcxx;destsuffix=git/projects/libcxx \ + git://github.com/llvm-mirror/libcxxabi.git;branch=${BRANCH};name=libcxxabi;destsuffix=git/projects/libcxxabi \ + " + +SRCREV_libcxxabi = "8f53d45e9ac7d3c078ab3fe8f91c40a4cc6b579a" +SRCREV_libcxx = "de80a7d886d75188de210eb4d6f0768fdc4d4d0b" +SRCREV_llvm = "937d48bea8f01b02d5f3db05a9e58dfb976e9d3b" + +SRCREV_FORMAT = "llvm_libcxx_libcxxabi" + +S = "${WORKDIR}/git/projects/libcxx" + +THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" + +EXTRA_OECMAKE += "-DLIBCXX_CXX_ABI=libcxxabi -DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLIBCXX_CXX_ABI_INCLUDE_PATHS=${S}/../libcxxabi/include -DLLVM_PATH=${S}/../../" + +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 @@ +# Copyright (C) 2015 Khem Raj +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "libc++ is a new implementation of the C++ standard library, targeting C++11" +HOMEPAGE = "http://libcxx.llvm.org/" +LICENSE = "MIT & UIUC" +SECTION = "base" +INHIBIT_DEFAULT_DEPS = "1" + +DEPENDS += "clang-cross-${TRANSLATED_TARGET_ARCH}" + +require clang.inc + +inherit cmake + +BRANCH ?= "release_37" + +DEPENDS += "compiler-rt" +LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=9041c9f38eb0f718f408e28ce138bb9a; \ + " +SRC_URI = "\ + git://github.com/llvm-mirror/llvm.git;branch=${BRANCH};name=llvm \ + git://github.com/llvm-mirror/libcxx.git;branch=${BRANCH};name=libcxx;destsuffix=git/projects/libcxx \ + git://github.com/llvm-mirror/libcxxabi.git;branch=${BRANCH};name=libcxxabi;destsuffix=git/projects/libcxxabi \ + " + +SRCREV_libcxxabi = "8f53d45e9ac7d3c078ab3fe8f91c40a4cc6b579a" +SRCREV_libcxx = "de80a7d886d75188de210eb4d6f0768fdc4d4d0b" +SRCREV_llvm = "937d48bea8f01b02d5f3db05a9e58dfb976e9d3b" + +SRCREV_FORMAT = "llvm_libcxx_libcxxabi" + +S = "${WORKDIR}/git/projects/libcxxabi" + +THUMB_TUNE_CCARGS = " -ffreestanding -nostdlib -nostdinc++ -nobuiltininc" + +EXTRA_OECMAKE += "-DLIBCXXABI_LIBCXX_PATH=${S}/../libcxx -DLLVM_PATH=${S}/../../ -DLIBCXXABI_LIBCXX_INCLUDES=${S}/../libcxx/include" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf