]> code.ossystems Code Review - openembedded-core.git/commitdiff
goarch: Add riscv64 thud+ossystemd
authorAlistair Francis <Alistair.Francis@wdc.com>
Tue, 19 Mar 2019 20:47:41 +0000 (20:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Mar 2019 16:19:17 +0000 (16:19 +0000)
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 <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/goarch.bbclass

index 39fea5e3d1037a6c3eb0484094a96e7e66734f1d..7aaf26aed12b0a4c1be83eacdab2cc091c38535f 100644 (file)
@@ -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)