summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/go.py
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-12-10 20:07:46 +0100
committerSteve Sakoman <steve@sakoman.com>2025-12-17 08:48:38 -0800
commit553530a8acce3b078473c0fa512246a3e84d46bf (patch)
treea0e19190398ae9c8c52dbb3b7e3eef319d60a6ac /meta/lib/oe/go.py
parent719a5fe1e30d64c72f4497eef56fc6e0c093bf44 (diff)
downloadpoky-scarthgap.tar.gz
Revert "lib/oe/go: document map_arch, and raise an error on unknown architecture"scarthgap
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>
Diffstat (limited to 'meta/lib/oe/go.py')
-rw-r--r--meta/lib/oe/go.py6
1 files changed, 1 insertions, 5 deletions
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 @@
7import re 7import re
8 8
9def map_arch(a): 9def map_arch(a):
10 """
11 Map our architecture names to Go's GOARCH names.
12 See https://github.com/golang/go/blob/master/src/internal/syslist/syslist.go for the complete list.
13 """
14 if re.match('i.86', a): 10 if re.match('i.86', a):
15 return '386' 11 return '386'
16 elif a == 'x86_64': 12 elif a == 'x86_64':
@@ -35,4 +31,4 @@ def map_arch(a):
35 return 'riscv64' 31 return 'riscv64'
36 elif a == 'loongarch64': 32 elif a == 'loongarch64':
37 return 'loong64' 33 return 'loong64'
38 raise KeyError(f"Cannot map architecture {a}") 34 return ''