From 3d4c48bd0afb67396aacbc444fa7f6698724860e Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 27 Dec 2018 10:47:14 -0800 Subject: recipes: Rework llvm/clang/compiler-rt/libcxx/lldb recipes This is an overhaul of clang/llvm project related recipes * switch to using a flat mono repo for all clang/llvm projects * Add llvm-project-source recipe which will prepare source tree in work-shared for all recipes much like kernel and gcc * build lld as part of clang recipes, its much easier and saves build time and hopefully nativesdk version will be built now for free * switch to official git repos at git://github.com/llvm-project * Adjust all recipes to use shared sources Signed-off-by: Khem Raj --- recipes-devtools/clang/compiler-rt_git.bb | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'recipes-devtools/clang/compiler-rt_git.bb') diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index c458836..0bc5a49 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb @@ -7,34 +7,22 @@ LICENSE = "MIT | NCSA" SECTION = "base" require clang.inc +require common-source.inc -TOOLCHAIN = "clang" +inherit cmake pkgconfig pythonnative -PV .= "+git${SRCPV}" -LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=92bfbe70fc44c6e5efc6403a31180ed7; \ -" -SRC_URI = "\ - ${LLVM_GIT}/compiler-rt.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=compiler-rt \ - file://0001-support-a-new-embedded-linux-target.patch \ - file://0002-Simplify-cross-compilation.-Don-t-use-native-compile.patch \ - file://0003-Disable-tsan-on-OE-glibc.patch \ - file://0004-cmake-mips-Do-not-specify-target-with-OE.patch \ +LIC_FILES_CHKSUM = "file://compiler-rt/LICENSE.TXT;md5=92bfbe70fc44c6e5efc6403a31180ed7; \ " -SRCREV_FORMAT = "compiler-rt" - BASEDEPENDS_remove_toolchain-clang_class-target = "compiler-rt" BASEDEPENDS_remove_toolchain-clang_class-target = "libcxx" TARGET_CXXFLAGS_remove_toolchain-clang = " -stdlib=libc++ " TUNE_CCARGS_remove = "-no-integrated-as" +LDFLAGS_append = " -fuse-ld=lld" DEPENDS += "ninja-native" -S = "${WORKDIR}/git" - -inherit cmake pkgconfig pythonnative - THUMB_TUNE_CCARGS = "" #TUNE_CCARGS += "-nostdlib" @@ -43,7 +31,7 @@ HF[vardepvalue] = "${HF}" EXTRA_OECMAKE += "-DCOMPILER_RT_STANDALONE_BUILD=ON \ -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${HOST_ARCH}${HF}${HOST_VENDOR}-${HOST_OS} \ -DCOMPILER_RT_BUILD_XRAY=OFF \ - -G Ninja \ + -G Ninja ${S}/compiler-rt \ " EXTRA_OECMAKE_append_class-nativesdk = "\ @@ -101,3 +89,5 @@ BBCLASSEXTEND = "native nativesdk" ALLOW_EMPTY_${PN} = "1" ALLOW_EMPTY_${PN}-dev = "1" + +TOOLCHAIN = "clang" -- cgit v1.2.3-54-g00ecf