From 91e3b2a762124bf5cf923654ef3a7c871b84c82f Mon Sep 17 00:00:00 2001 From: Alistair Francis Date: Tue, 19 Mar 2019 20:47:41 +0000 Subject: 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 Signed-off-by: Alistair Francis Signed-off-by: Richard Purdie --- meta/classes/goarch.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta') 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) -- cgit 1.2.3-korg