diff options
7 files changed, 52 insertions, 48 deletions
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index fea6ba4..de58441 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc | |||
| @@ -10,12 +10,12 @@ LLVM_GIT_PROTOCOL ?= "git" | |||
| 10 | 10 | ||
| 11 | PV = "3.9.0" | 11 | PV = "3.9.0" |
| 12 | BRANCH = "release_39" | 12 | BRANCH = "release_39" |
| 13 | SRCREV_llvm = "00d9b1b37f68373bb427369fee08814cda0692f7" | 13 | SRCREV_llvm = "63485bd162ef11dcfbd313e10f2e45d6f2c0d58e" |
| 14 | SRCREV_clang = "760f716545a51d39ec3f54cb4c96bf55c022099f" | 14 | SRCREV_clang = "1ce520b4b2d9ff3f233e30c917d9e888abb49daf" |
| 15 | SRCREV_compiler-rt = "c10168c3b09f714b9da56abcce1b48104c20e1f9" | 15 | SRCREV_compiler-rt = "95277fbc5a050588234bc4e2a52d7902e663e3b1" |
| 16 | SRCREV_cxxabi = "82bb4c89734b6157de4a2fc2b9228be6529337a8" | 16 | SRCREV_cxxabi = "82bb4c89734b6157de4a2fc2b9228be6529337a8" |
| 17 | SRCREV_libcxx = "c2a735f1ff7a6680b10369e2b34324d1095a9732" | 17 | SRCREV_libcxx = "95fa236b0059899e96b4092e66e776608c4e3c52" |
| 18 | SRCREV_libunwind = "ce3e76f9fcb0c33b4683bc1a01bb66d1c87b2356" | 18 | SRCREV_libunwind = "4194a6d954d2d6bfb225d22411cc3bc9932cc76f" |
| 19 | 19 | ||
| 20 | LLVMMD5SUM = "43fdaa303c1c5589ad60f4ffc6a0b9ce" | 20 | LLVMMD5SUM = "43fdaa303c1c5589ad60f4ffc6a0b9ce" |
| 21 | CLANGMD5SUM = "a77eac638a3aae44a2d604217d6f0f01" | 21 | CLANGMD5SUM = "a77eac638a3aae44a2d604217d6f0f01" |
diff --git a/recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch b/recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch deleted file mode 100644 index 1a7b96b..0000000 --- a/recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch +++ /dev/null | |||
| @@ -1,33 +0,0 @@ | |||
| 1 | From b0de87ae88ff187820624d461fbb8fde84a90eb1 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Tue, 10 May 2016 10:37:55 -0700 | ||
| 4 | Subject: [PATCH 1/3] Remove fatal check for explicit | ||
| 5 | COMPILER_RT_DEFAULT_TARGET_ARCH | ||
| 6 | |||
| 7 | In OE, we do not deduce float-abi via target triplet | ||
| 8 | but via a CFLAGS option, and we do not have possibility | ||
| 9 | to build both hf and sf in same toolchain, therefore lets | ||
| 10 | ignore the test, we are doing the right job from recipe | ||
| 11 | |||
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 13 | --- | ||
| 14 | cmake/Modules/CompilerRTUtils.cmake | 4 ---- | ||
| 15 | 1 file changed, 4 deletions(-) | ||
| 16 | |||
| 17 | diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake | ||
| 18 | index b4a2b48..086d9ba 100644 | ||
| 19 | --- a/cmake/Modules/CompilerRTUtils.cmake | ||
| 20 | +++ b/cmake/Modules/CompilerRTUtils.cmake | ||
| 21 | @@ -125,9 +125,5 @@ macro(test_target_arch arch def) | ||
| 22 | endif() | ||
| 23 | if(${CAN_TARGET_${arch}}) | ||
| 24 | list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch}) | ||
| 25 | - elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "${arch}" AND | ||
| 26 | - COMPILER_RT_HAS_EXPLICIT_DEFAULT_TARGET_TRIPLE) | ||
| 27 | - # Bail out if we cannot target the architecture we plan to test. | ||
| 28 | - message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}") | ||
| 29 | endif() | ||
| 30 | endmacro() | ||
| 31 | -- | ||
| 32 | 2.8.2 | ||
| 33 | |||
diff --git a/recipes-devtools/clang/compiler-rt/0001-compiler-rt-Fix-target-architecture-matching.patch b/recipes-devtools/clang/compiler-rt/0001-compiler-rt-Fix-target-architecture-matching.patch new file mode 100644 index 0000000..604d1eb --- /dev/null +++ b/recipes-devtools/clang/compiler-rt/0001-compiler-rt-Fix-target-architecture-matching.patch | |||
| @@ -0,0 +1,37 @@ | |||
| 1 | From 921549310c98ac7d594d1f290f053b8e2b3a32d0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Francis Ricci <francisjricci@gmail.com> | ||
| 3 | Date: Wed, 20 Jul 2016 18:06:31 +0000 | ||
| 4 | Subject: [PATCH 1/4] [compiler-rt] Fix target architecture matching | ||
| 5 | |||
| 6 | Summary: | ||
| 7 | Use stricter comparisons for architecture. This prevents cmake from failing | ||
| 8 | for sysroots which can only compile armhf and not arm, since | ||
| 9 | arm MATCHES armhf is true, while arm STREQUAL armhf is false. | ||
| 10 | |||
| 11 | Reviewers: beanz, compnerd | ||
| 12 | |||
| 13 | Subscribers: aemerson, llvm-commits | ||
| 14 | |||
| 15 | Differential Revision: https://reviews.llvm.org/D22473 | ||
| 16 | |||
| 17 | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@276148 91177308-0d34-0410-b5e6-96231b3b80d8 | ||
| 18 | --- | ||
| 19 | cmake/Modules/CompilerRTUtils.cmake | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake | ||
| 23 | index 78b6dce..5987cf5 100644 | ||
| 24 | --- a/cmake/Modules/CompilerRTUtils.cmake | ||
| 25 | +++ b/cmake/Modules/CompilerRTUtils.cmake | ||
| 26 | @@ -126,7 +126,7 @@ macro(test_target_arch arch def) | ||
| 27 | endif() | ||
| 28 | if(${CAN_TARGET_${arch}}) | ||
| 29 | list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch}) | ||
| 30 | - elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "${arch}" AND | ||
| 31 | + elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" STREQUAL "${arch}" AND | ||
| 32 | COMPILER_RT_HAS_EXPLICIT_DEFAULT_TARGET_TRIPLE) | ||
| 33 | # Bail out if we cannot target the architecture we plan to test. | ||
| 34 | message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}") | ||
| 35 | -- | ||
| 36 | 2.9.0 | ||
| 37 | |||
diff --git a/recipes-devtools/clang/compiler-rt/0002-support-a-new-embedded-linux-target.patch b/recipes-devtools/clang/compiler-rt/0002-support-a-new-embedded-linux-target.patch index 12fc4e4..67c7678 100644 --- a/recipes-devtools/clang/compiler-rt/0002-support-a-new-embedded-linux-target.patch +++ b/recipes-devtools/clang/compiler-rt/0002-support-a-new-embedded-linux-target.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From 7b7cdc3fcbec45f08b20600c8410c125edeb67ef Mon Sep 17 00:00:00 2001 | 1 | From 4bdc7871ab0a6134ee01c138e863476de9c08e25 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 19 Apr 2015 15:16:23 -0700 | 3 | Date: Sun, 19 Apr 2015 15:16:23 -0700 |
| 4 | Subject: [PATCH 2/3] support a new embedded linux target | 4 | Subject: [PATCH 2/4] support a new embedded linux target |
| 5 | 5 | ||
| 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 7 | --- | 7 | --- |
| @@ -322,5 +322,5 @@ diff --git a/make/platform/clang_linux_embedded_test_input.c b/make/platform/cla | |||
| 322 | new file mode 100644 | 322 | new file mode 100644 |
| 323 | index 0000000..e69de29 | 323 | index 0000000..e69de29 |
| 324 | -- | 324 | -- |
| 325 | 2.8.2 | 325 | 2.9.0 |
| 326 | 326 | ||
diff --git a/recipes-devtools/clang/compiler-rt/0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch b/recipes-devtools/clang/compiler-rt/0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch index ffbe537..9354f66 100644 --- a/recipes-devtools/clang/compiler-rt/0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch +++ b/recipes-devtools/clang/compiler-rt/0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | From f8617c08ad6e38ccb4623a777cd8c9601af6e2ec Mon Sep 17 00:00:00 2001 | 1 | From 6676553c56ac1879d8d597351b457ba2e087168c Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 19 May 2016 23:11:45 -0700 | 3 | Date: Thu, 19 May 2016 23:11:45 -0700 |
| 4 | Subject: [PATCH 3/3] Simplify cross-compilation. Don't use native-compiled | 4 | Subject: [PATCH 3/4] Simplify cross-compilation. Don't use native-compiled |
| 5 | llvm-config. | 5 | llvm-config. |
| 6 | 6 | ||
| 7 | Note: AddLLVM.cmake does not expose the LLVM source directory. | 7 | Note: AddLLVM.cmake does not expose the LLVM source directory. |
| @@ -20,10 +20,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
| 20 | 1 file changed, 6 insertions(+), 26 deletions(-) | 20 | 1 file changed, 6 insertions(+), 26 deletions(-) |
| 21 | 21 | ||
| 22 | diff --git a/CMakeLists.txt b/CMakeLists.txt | 22 | diff --git a/CMakeLists.txt b/CMakeLists.txt |
| 23 | index d8794b5..d5477cf 100644 | 23 | index a067581..ce904c0 100644 |
| 24 | --- a/CMakeLists.txt | 24 | --- a/CMakeLists.txt |
| 25 | +++ b/CMakeLists.txt | 25 | +++ b/CMakeLists.txt |
| 26 | @@ -60,32 +60,12 @@ option(COMPILER_RT_BUILD_SANITIZERS "Build sanitizers" ON) | 26 | @@ -39,32 +39,12 @@ option(COMPILER_RT_BUILD_SANITIZERS "Build sanitizers" ON) |
| 27 | mark_as_advanced(COMPILER_RT_BUILD_SANITIZERS) | 27 | mark_as_advanced(COMPILER_RT_BUILD_SANITIZERS) |
| 28 | 28 | ||
| 29 | if (COMPILER_RT_STANDALONE_BUILD) | 29 | if (COMPILER_RT_STANDALONE_BUILD) |
| @@ -63,5 +63,5 @@ index d8794b5..d5477cf 100644 | |||
| 63 | set(LLVM_LIBRARY_OUTPUT_INTDIR | 63 | set(LLVM_LIBRARY_OUTPUT_INTDIR |
| 64 | ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX}) | 64 | ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX}) |
| 65 | -- | 65 | -- |
| 66 | 2.8.2 | 66 | 2.9.0 |
| 67 | 67 | ||
diff --git a/recipes-devtools/clang/compiler-rt/0004-Disable-tsan-on-OE-glibc.patch b/recipes-devtools/clang/compiler-rt/0004-Disable-tsan-on-OE-glibc.patch index 01c6caf..8da7512 100644 --- a/recipes-devtools/clang/compiler-rt/0004-Disable-tsan-on-OE-glibc.patch +++ b/recipes-devtools/clang/compiler-rt/0004-Disable-tsan-on-OE-glibc.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From a74650380d930a049aeee3c90c70141ad4178d0b Mon Sep 17 00:00:00 2001 | 1 | From baeeb27bb523b2bff96ab2fe2c5b38ecdd0570d0 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Mon, 18 Jul 2016 08:05:02 +0000 | 3 | Date: Mon, 18 Jul 2016 08:05:02 +0000 |
| 4 | Subject: [PATCH 4/4] Disable tsan on OE/glibc | 4 | Subject: [PATCH 4/4] Disable tsan on OE/glibc |
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index 6901473..d175c23 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb | |||
| @@ -17,7 +17,7 @@ PV .= "+git${SRCPV}" | |||
| 17 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=bf24bca27049b52e9738451aa55771d4; \ | 17 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=bf24bca27049b52e9738451aa55771d4; \ |
| 18 | " | 18 | " |
| 19 | SRC_URI = "${LLVM_GIT}/compiler-rt.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=compiler-rt \ | 19 | SRC_URI = "${LLVM_GIT}/compiler-rt.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=compiler-rt \ |
| 20 | file://0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch \ | 20 | file://0001-compiler-rt-Fix-target-architecture-matching.patch \ |
| 21 | file://0002-support-a-new-embedded-linux-target.patch \ | 21 | file://0002-support-a-new-embedded-linux-target.patch \ |
| 22 | file://0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch \ | 22 | file://0003-Simplify-cross-compilation.-Don-t-use-native-compile.patch \ |
| 23 | file://0004-Disable-tsan-on-OE-glibc.patch \ | 23 | file://0004-Disable-tsan-on-OE-glibc.patch \ |
