summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-05-10 10:54:05 -0700
committerKhem Raj <raj.khem@gmail.com>2016-05-10 10:54:05 -0700
commitf9c60c776a55df7a673ff6dddff1bc1b79147447 (patch)
treefbd091bbf7bce3b0d312a4be5c05447347b9d391
parent8c364db375d1ccc30941377c67a4944e86d23bef (diff)
downloadmeta-clang-f9c60c776a55df7a673ff6dddff1bc1b79147447.tar.gz
compiler-rt: Fix build with OE target triplets
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-devtools/clang/compiler-rt/0001-3.9-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch33
-rw-r--r--recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch34
-rw-r--r--recipes-devtools/clang/compiler-rt_git.bb5
3 files changed, 70 insertions, 2 deletions
diff --git a/recipes-devtools/clang/compiler-rt/0001-3.9-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch b/recipes-devtools/clang/compiler-rt/0001-3.9-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch
new file mode 100644
index 0000000..1d02c4c
--- /dev/null
+++ b/recipes-devtools/clang/compiler-rt/0001-3.9-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch
@@ -0,0 +1,33 @@
1From eeb6437d951a5316a5d743578ccb284db9d57caa Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 10 May 2016 10:37:55 -0700
4Subject: [PATCH] Remove fatal check for explicit
5 COMPILER_RT_DEFAULT_TARGET_ARCH
6
7In OE, we do not deduce float-abi via target triplet
8but via a CFLAGS option, and we do not have possibility
9to build both hf and sf in same toolchain, therefore lets
10ignore the test, we are doing the right job from recipe
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 cmake/Modules/CompilerRTUtils.cmake | 4 ----
15 1 file changed, 4 deletions(-)
16
17diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake
18index 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--
322.8.2
33
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
new file mode 100644
index 0000000..d741b55
--- /dev/null
+++ b/recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch
@@ -0,0 +1,34 @@
1From 14f4f8e55b363037ae881084e4594934a869cf5d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 10 May 2016 10:37:55 -0700
4Subject: [PATCH] Remove fatal check for explicit
5 COMPILER_RT_DEFAULT_TARGET_ARCH
6
7In OE, we do not deduce float-abi via target triplet
8but via a CFLAGS option, and we do not have possibility
9to build both hf and sf in same toolchain, therefore lets
10ignore the test, we are doing the right job from recipe
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 cmake/config-ix.cmake | 4 ----
15 1 file changed, 4 deletions(-)
16
17diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
18index 264085e..299682d 100644
19--- a/cmake/config-ix.cmake
20+++ b/cmake/config-ix.cmake
21@@ -128,10 +128,6 @@ 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--
332.8.2
34
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb
index a9391ed..c5f0987 100644
--- a/recipes-devtools/clang/compiler-rt_git.bb
+++ b/recipes-devtools/clang/compiler-rt_git.bb
@@ -7,10 +7,10 @@ LICENSE = "MIT | NCSA"
7SECTION = "base" 7SECTION = "base"
8INHIBIT_DEFAULT_DEPS = "1" 8INHIBIT_DEFAULT_DEPS = "1"
9 9
10DEPENDS += "clang-cross-${TARGET_ARCH} virtual/${TARGET_PREFIX}libc-for-gcc"
11
12require clang.inc 10require clang.inc
13 11
12DEPENDS += "clang-cross-${TARGET_ARCH} virtual/${TARGET_PREFIX}libc-for-gcc"
13
14PV .= "+git${SRCPV}" 14PV .= "+git${SRCPV}"
15 15
16LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \ 16LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \
@@ -18,6 +18,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \
18SRC_URI = "${LLVM_GIT}/compiler-rt.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=compiler-rt \ 18SRC_URI = "${LLVM_GIT}/compiler-rt.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=compiler-rt \
19 file://0001-support-a-new-embedded-linux-target.patch \ 19 file://0001-support-a-new-embedded-linux-target.patch \
20 file://0001-Simplify-cross-compilation.-Don-t-use-native-compile.patch \ 20 file://0001-Simplify-cross-compilation.-Don-t-use-native-compile.patch \
21 file://0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch \
21" 22"
22 23
23SRCREV_FORMAT = "compiler-rt" 24SRCREV_FORMAT = "compiler-rt"