From: Peter Marko Date: Wed, 10 Dec 2025 19:07:46 +0000 (+0100) Subject: Revert "lib/oe/go: document map_arch, and raise an error on unknown architecture" X-Git-Tag: 2024-04.15-scarthgap~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b3d2b671a149cbeea2bdc9ba42192da2015c3b7;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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. Signed-off-by: Peter Marko Signed-off-by: Peter Marko Signed-off-by: Steve Sakoman --- diff --git a/meta/lib/oe/go.py b/meta/lib/oe/go.py index 4559dc63b2..dfd957d157 100644 --- a/meta/lib/oe/go.py +++ b/meta/lib/oe/go.py @@ -7,10 +7,6 @@ import re 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): return '386' elif a == 'x86_64': @@ -35,4 +31,4 @@ def map_arch(a): return 'riscv64' elif a == 'loongarch64': return 'loong64' - raise KeyError(f"Cannot map architecture {a}") + return ''