[oe-commits] [openembedded-core] 04/05: goarch: Add riscv64

git at git.openembedded.org git at git.openembedded.org
Wed Mar 20 23:57:34 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit fc6cfb5da704aa79b8632889e478d7c3ba79c7fb
Author: Alistair Francis <Alistair.Francis at wdc.com>
AuthorDate: Tue Mar 19 20:47:41 2019 +0000

    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 <alistair.francis at wdc.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/goarch.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 39fea5e..7aaf26a 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)
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list