]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
Revert "lib/oe/go: document map_arch, and raise an error on unknown architecture"
authorPeter Marko <peter.marko@siemens.com>
Wed, 10 Dec 2025 19:07:46 +0000 (20:07 +0100)
committerSteve Sakoman <steve@sakoman.com>
Thu, 11 Dec 2025 21:41:59 +0000 (13:41 -0800)
This reverts commit e6de433ccb2784581d6c775cce97f414ef9334b1.

This introduced a breaking change which is not suitable for backport to
stable LTS branches.

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>
meta/lib/oe/go.py

index 4559dc63b285d383f6024a7ad1013e0a040143d3..dfd957d157a589305b486c8a6e2e3eee2435174e 100644 (file)
@@ -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 ''