summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlistair Francis <Alistair.Francis@wdc.com>2019-03-19 20:47:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-03-21 16:19:23 +0000
commit2187d06166ed6819a1d07c3f8a3be7a256fab18c (patch)
tree549835cb57fdeb40356c35a40113bbeae6ecd418
parent6c66a46c51d5a726a6366dd238c4e30a9488f6d0 (diff)
downloadpoky-master.tar.gz
poky-master.tar.bz2
poky-master.zip
goarch: Add riscv64HEADmaster
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.bbclass2
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):
return 'ppc64'
elif re.match('p(pc|owerpc)(64el)', a):
return 'ppc64le'
+ elif a == 'riscv64':
+ return 'riscv64'
else:
raise bb.parse.SkipRecipe("Unsupported CPU architecture: %s" % a)