diff mbox series

[07/13] lib/oe/go: detail map_arch() parameter

Message ID 20261116-oe-lib-docstrings-v1-7-0c894f6a1064@bootlin.com
State New
Headers show
Series Improve or add oe.* library docstrings | expand

Commit Message

Antonin Godard Nov. 16, 2026, 4:09 p.m. UTC
Detail the architecture parameter for map_arch(), which should match
TUNE_ARCH.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 meta/lib/oe/go.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta/lib/oe/go.py b/meta/lib/oe/go.py
index cbcf80f0b1..2a2cb7e75a 100644
--- a/meta/lib/oe/go.py
+++ b/meta/lib/oe/go.py
@@ -8,8 +8,11 @@  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.
+    Take ``a``, the architecture name used in OpenEmbedded (see the
+    :term:`TUNE_ARCH` variable), and return a string for the mapped architecture
+    name from 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'