diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-05-10 10:54:05 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2016-05-10 10:54:05 -0700 |
commit | f9c60c776a55df7a673ff6dddff1bc1b79147447 (patch) | |
tree | fbd091bbf7bce3b0d312a4be5c05447347b9d391 | |
parent | 8c364db375d1ccc30941377c67a4944e86d23bef (diff) | |
download | meta-clang-f9c60c776a55df7a673ff6dddff1bc1b79147447.tar.gz |
compiler-rt: Fix build with OE target triplets
Signed-off-by: Khem Raj <raj.khem@gmail.com>
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 @@ | |||
1 | From eeb6437d951a5316a5d743578ccb284db9d57caa 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] 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-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 @@ | |||
1 | From 14f4f8e55b363037ae881084e4594934a869cf5d 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] 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/config-ix.cmake | 4 ---- | ||
15 | 1 file changed, 4 deletions(-) | ||
16 | |||
17 | diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake | ||
18 | index 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 | -- | ||
33 | 2.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" | |||
7 | SECTION = "base" | 7 | SECTION = "base" |
8 | INHIBIT_DEFAULT_DEPS = "1" | 8 | INHIBIT_DEFAULT_DEPS = "1" |
9 | 9 | ||
10 | DEPENDS += "clang-cross-${TARGET_ARCH} virtual/${TARGET_PREFIX}libc-for-gcc" | ||
11 | |||
12 | require clang.inc | 10 | require clang.inc |
13 | 11 | ||
12 | DEPENDS += "clang-cross-${TARGET_ARCH} virtual/${TARGET_PREFIX}libc-for-gcc" | ||
13 | |||
14 | PV .= "+git${SRCPV}" | 14 | PV .= "+git${SRCPV}" |
15 | 15 | ||
16 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \ | 16 | LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \ |
@@ -18,6 +18,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=27b14ab4ce08d04c3a9a5f0ed7997362; \ | |||
18 | SRC_URI = "${LLVM_GIT}/compiler-rt.git;protocol=${LLVM_GIT_PROTOCOL};branch=${BRANCH};name=compiler-rt \ | 18 | SRC_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 | ||
23 | SRCREV_FORMAT = "compiler-rt" | 24 | SRCREV_FORMAT = "compiler-rt" |