Skip to content

Commit fc6cfb5

Browse files
alistair23rpurdie
authored andcommitted
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: golang/go#27532 Signed-off-by: Alistair Francis <[email protected]> Signed-off-by: Richard Purdie <[email protected]>
1 parent c4a81fd commit fc6cfb5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

meta/classes/goarch.bbclass

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def go_map_arch(a, d):
6868
return 'ppc64'
6969
elif re.match('p(pc|owerpc)(64el)', a):
7070
return 'ppc64le'
71+
elif a == 'riscv64':
72+
return 'riscv64'
7173
else:
7274
raise bb.parse.SkipRecipe("Unsupported CPU architecture: %s" % a)
7375

0 commit comments

Comments
 (0)