diff options
author | Alistair Francis <Alistair.Francis@wdc.com> | 2019-03-19 20:47:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-21 16:19:23 +0000 |
commit | 2187d06166ed6819a1d07c3f8a3be7a256fab18c (patch) | |
tree | 549835cb57fdeb40356c35a40113bbeae6ecd418 | |
parent | 6c66a46c51d5a726a6366dd238c4e30a9488f6d0 (diff) | |
download | poky-2187d06166ed6819a1d07c3f8a3be7a256fab18c.tar.gz |
goarch: Add riscv64
Although RISC-V 64-bit doesn't have official golang support there are
forks that now exist with at least some support and work is ongoing in
the upstream tree. In order to be able to use the goarch class add
support for RISC-V.
For more details see here:
https://github.com/golang/go/issues/27532
(From OE-Core rev: 91e3b2a762124bf5cf923654ef3a7c871b84c82f)
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/goarch.bbclass | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass index 39fea5e3d1..7aaf26aed1 100644 --- a/meta/classes/goarch.bbclass +++ b/meta/classes/goarch.bbclass | |||
@@ -68,6 +68,8 @@ def go_map_arch(a, d): | |||
68 | return 'ppc64' | 68 | return 'ppc64' |
69 | elif re.match('p(pc|owerpc)(64el)', a): | 69 | elif re.match('p(pc|owerpc)(64el)', a): |
70 | return 'ppc64le' | 70 | return 'ppc64le' |
71 | elif a == 'riscv64': | ||
72 | return 'riscv64' | ||
71 | else: | 73 | else: |
72 | raise bb.parse.SkipRecipe("Unsupported CPU architecture: %s" % a) | 74 | raise bb.parse.SkipRecipe("Unsupported CPU architecture: %s" % a) |
73 | 75 | ||