From 73f77d24cd944dee6a1838345921286d70cf14f7 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 16 Jan 2019 20:01:04 -0800 Subject: clang: Switch to upcoming 8.0 release branch Clang 8.0 is going to be released in Feb-March 2019 so here we switch to release/8.x branch a bit early so we can provide some feedback for release to be good on OE If one needs to use stable 7.0.1 release please use thud branch clang 8.0 does have RISC-V backend, enable it clang: Add building experimental targets e.g. riscv Signed-off-by: Khem Raj --- recipes-devtools/clang/common.inc | 64 ++++++++++----------------------------- 1 file changed, 16 insertions(+), 48 deletions(-) (limited to 'recipes-devtools/clang/common.inc') diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index d582d34..ad1f435 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc @@ -8,59 +8,27 @@ LICENSE = "NCSA" BASEURI ??= "${LLVM_GIT}/llvm-project;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH}" SRC_URI = "\ ${BASEURI} \ - ${LLVMPATCHES} \ - ${CLANGPATCHES} \ - ${COMPILERRTPATCHES} \ - ${LIBCXXABIPATCHES} \ - ${LIBCXXPATCHES} \ - ${LLDBPATCHES} \ + ${@'file://0000-clang-Enable-SSP-and-PIE-by-default.patch' if '${GCCPIE}' else ''} \ + file://0001-clang-driver-Use-lib-for-ldso-on-OE.patch \ + file://0002-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch \ + file://0003-clang-musl-ppc-does-not-support-128-bit-long-double.patch \ + file://0004-clang-Prepend-trailing-to-sysroot.patch \ + file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch \ + file://0006-clang-Define-releative-gcc-installation-dir.patch \ + file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch \ + file://0008-clang-scan-view-needs-python-2.x.patch \ + file://0009-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch \ + file://0010-llvm-allow-env-override-of-exe-path.patch \ + file://0011-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch \ + file://0012-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch \ + file://0013-compiler-rt-support-a-new-embedded-linux-target.patch \ + file://0014-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch \ + file://0015-compiler-rt-Disable-tsan-on-OE-glibc.patch \ " -# llvm patches -# -LLVMPATCHES = "\ - file://0001-llvm-TargetLibraryInfo-Undefine-libc-functions-if-th.patch;patchdir=llvm \ - file://0002-llvm-allow-env-override-of-exe-path.patch;patchdir=llvm \ - file://0003-llvm-Disable-calls-to-_finite-and-other-glibc-only-f.patch;patchdir=llvm \ -" # Fallback to no-PIE if not set GCCPIE ??= "" -# Clang patches -CLANGPATCHES = "\ - file://0001-clang-driver-Use-lib-for-ldso-on-OE.patch;patchdir=clang \ - file://0002-clang-Driver-tools.cpp-Add-lssp_nonshared-on-musl.patch;patchdir=clang \ - file://0003-clang-musl-ppc-does-not-support-128-bit-long-double.patch;patchdir=clang \ - file://0004-clang-Prepend-trailing-to-sysroot.patch;patchdir=clang \ - file://0005-clang-Look-inside-the-target-sysroot-for-compiler-ru.patch;patchdir=clang \ - file://0006-clang-Define-releative-gcc-installation-dir.patch;patchdir=clang \ - file://0007-clang-Fix-ldso-for-musl-on-x86-and-x32-architectures.patch;patchdir=clang \ - file://0008-clang-scan-view-needs-python-2.x.patch;patchdir=clang \ -" -CLANGPATCHES += "${@'file://0009-clang-Enable-SSP-and-PIE-by-default.patch;patchdir=clang' if '${GCCPIE}' else ''}" - -# compiler-rt patches -COMPILERRTPATCHES = "\ - file://0001-compiler-rt-support-a-new-embedded-linux-target.patch;patchdir=compiler-rt \ - file://0002-compiler-rt-Simplify-cross-compilation.-Don-t-use-na.patch;patchdir=compiler-rt \ - file://0003-compiler-rt-Disable-tsan-on-OE-glibc.patch;patchdir=compiler-rt \ - file://0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch;patchdir=compiler-rt \ -" -# libcxxabi patches -LIBCXXABIPATCHES ="\ - file://0001-libcxxabi-Find-libunwind-headers-when-LIBCXXABI_LIBU.patch;patchdir=libcxxabi \ -" - -# libc++ patches -LIBCXXPATCHES = "\ -" - -# lldb patches -LLDBPATCHES = "\ - file://0001-lldb-Include-limits.h-for-PATH_MAX-definition.patch;patchdir=lldb \ - file://0002-lldb-Add-lxml2-to-linker-cmdline-of-xml-is-found.patch;patchdir=lldb \ -" - S = "${TMPDIR}/work-shared/llvm-project-source-${PV}-${PR}/git" B = "${WORKDIR}/llvm-project-source-${PV}/build.${HOST_SYS}.${TARGET_SYS}" -- cgit v1.2.3-54-g00ecf