diff options
| -rw-r--r-- | meta/lib/oe/go.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oe/go.py b/meta/lib/oe/go.py index dfd957d157..4559dc63b2 100644 --- a/meta/lib/oe/go.py +++ b/meta/lib/oe/go.py | |||
| @@ -7,6 +7,10 @@ | |||
| 7 | import re | 7 | import re |
| 8 | 8 | ||
| 9 | def map_arch(a): | 9 | def 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 | """ | ||
| 10 | if re.match('i.86', a): | 14 | if re.match('i.86', a): |
| 11 | return '386' | 15 | return '386' |
| 12 | elif a == 'x86_64': | 16 | elif a == 'x86_64': |
| @@ -31,4 +35,4 @@ def map_arch(a): | |||
| 31 | return 'riscv64' | 35 | return 'riscv64' |
| 32 | elif a == 'loongarch64': | 36 | elif a == 'loongarch64': |
| 33 | return 'loong64' | 37 | return 'loong64' |
| 34 | return '' | 38 | raise KeyError(f"Cannot map architecture {a}") |
