diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-12-27 18:35:35 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-12-27 18:35:35 -0800 |
commit | 79b3bc561aadb2165dd9b48314a713dc1cf9eb5f (patch) | |
tree | 8347bb489ec61c60b3f303316c039f8f6e8d1348 | |
parent | 0aebeac010b13c3540efd9ca9e7b77a5000bcdd0 (diff) | |
download | meta-clang-79b3bc561aadb2165dd9b48314a713dc1cf9eb5f.tar.gz |
clang,nativesdk-packagegroup-sdk-host: Recognise risc-v
This helps build SDKs for risc-v when meta-clang is in layer mix
even though clang for risc-v may not fully work yet
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend | 1 | ||||
-rw-r--r-- | recipes-devtools/clang/clang.inc | 3 | ||||
-rw-r--r-- | recipes-devtools/clang/clang_git.bb | 1 |
3 files changed, 1 insertions, 4 deletions
diff --git a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend index d13264a..a8e81aa 100644 --- a/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend +++ b/recipes-core/packagegroups/nativesdk-packagegroup-sdk-host.bbappend | |||
@@ -1,4 +1,3 @@ | |||
1 | NATIVESDKCLANG ?= "nativesdk-clang" | 1 | NATIVESDKCLANG ?= "nativesdk-clang" |
2 | NATIVESDKCLANG_riscv64 ?= "" | ||
3 | 2 | ||
4 | RDEPENDS_${PN} += "${NATIVESDKCLANG}" | 3 | RDEPENDS_${PN} += "${NATIVESDKCLANG}" |
diff --git a/recipes-devtools/clang/clang.inc b/recipes-devtools/clang/clang.inc index 34730f7..f2d4568 100644 --- a/recipes-devtools/clang/clang.inc +++ b/recipes-devtools/clang/clang.inc | |||
@@ -18,7 +18,4 @@ CLANGMD5SUM = "444af0e124949f07f791f12c928e5994" | |||
18 | LLDMD5SUM = "f4941ace8ddb3d6cf177fff94966319a" | 18 | LLDMD5SUM = "f4941ace8ddb3d6cf177fff94966319a" |
19 | LLDBMD5SUM = "b6320ed0b0d00ae661dd94f277bbf024" | 19 | LLDBMD5SUM = "b6320ed0b0d00ae661dd94f277bbf024" |
20 | 20 | ||
21 | # risc-v comes with clang-8+ | ||
22 | COMPATIBLE_HOST_riscv64 = "(null)" | ||
23 | |||
24 | require common.inc | 21 | require common.inc |
diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb index 12ac0f9..b3b8272 100644 --- a/recipes-devtools/clang/clang_git.bb +++ b/recipes-devtools/clang/clang_git.bb | |||
@@ -24,6 +24,7 @@ def get_clang_arch(bb, d, arch_var): | |||
24 | elif re.match('aarch64_be$', a): return 'AArch64' | 24 | elif re.match('aarch64_be$', a): return 'AArch64' |
25 | elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'Mips' | 25 | elif re.match('mips(isa|)(32|64|)(r6|)(el|)$', a): return 'Mips' |
26 | elif re.match('p(pc|owerpc)(|64)', a): return 'PowerPC' | 26 | elif re.match('p(pc|owerpc)(|64)', a): return 'PowerPC' |
27 | elif re.match('riscv(32|64)$', a): return 'RISCV' | ||
27 | else: | 28 | else: |
28 | bb.error("cannot map '%s' to a supported llvm architecture" % a) | 29 | bb.error("cannot map '%s' to a supported llvm architecture" % a) |
29 | return "" | 30 | return "" |