Skip to content

Commit

Permalink
goarch: Add riscv64
Browse files Browse the repository at this point in the history
Source: poky
MR: 00000
Type: Integration
Disposition: Merged from poky
ChangeID: 2187d06
Description:

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:
golang/go#27532

(From OE-Core rev: 91e3b2a762124bf5cf923654ef3a7c871b84c82f)

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
  • Loading branch information
alistair23 authored and jpuhlman committed Mar 29, 2019
1 parent a0fd341 commit c2df191
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions meta/classes/goarch.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c2df191

Please sign in to comment.