mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Revert "lib/oe/go: document map_arch, and raise an error on unknown architecture"
This reverts commit e6de433ccb2784581d6c775cce97f414ef9334b1. This introduced a breaking change which is not suitable for backport to stable LTS branches. (From OE-Core rev: 2b3d2b671a149cbeea2bdc9ba42192da2015c3b7) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
719a5fe1e3
commit
553530a8ac
@@ -7,10 +7,6 @@
|
|||||||
import re
|
import re
|
||||||
|
|
||||||
def map_arch(a):
|
def map_arch(a):
|
||||||
"""
|
|
||||||
Map our architecture names to Go's GOARCH names.
|
|
||||||
See https://github.com/golang/go/blob/master/src/internal/syslist/syslist.go for the complete list.
|
|
||||||
"""
|
|
||||||
if re.match('i.86', a):
|
if re.match('i.86', a):
|
||||||
return '386'
|
return '386'
|
||||||
elif a == 'x86_64':
|
elif a == 'x86_64':
|
||||||
@@ -35,4 +31,4 @@ def map_arch(a):
|
|||||||
return 'riscv64'
|
return 'riscv64'
|
||||||
elif a == 'loongarch64':
|
elif a == 'loongarch64':
|
||||||
return 'loong64'
|
return 'loong64'
|
||||||
raise KeyError(f"Cannot map architecture {a}")
|
return ''
|
||||||
|
|||||||
Reference in New Issue
Block a user