summaryrefslogtreecommitdiffstats
path: root/meta/classes/goarch.bbclass
diff options
context:
space:
mode:
authorPeter Morrow <pemorrow@linux.microsoft.com>2021-04-06 06:07:57 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-23 10:41:15 +0100
commit1c0af77e5fd61f103f95f888499320f6bee05318 (patch)
treec9edc0b906a666767e12ba7af0fc1be68ad4da2c /meta/classes/goarch.bbclass
parent8f7d34d135e167f8949a9c44c00fd066408cb120 (diff)
downloadpoky-1c0af77e5fd61f103f95f888499320f6bee05318.tar.gz
goarch: map target os to windows for mingw* TARGET_OS
mingw32/mingw64 is not a supported value for GOOS, so map from 'mingw*' to 'windows' to enable building for windows targets. (From OE-Core rev: 099bd78ce80772c42887104a40aa0a92fdaa6965) Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/goarch.bbclass')
-rw-r--r--meta/classes/goarch.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/goarch.bbclass b/meta/classes/goarch.bbclass
index 1099b95769..ecd3044edd 100644
--- a/meta/classes/goarch.bbclass
+++ b/meta/classes/goarch.bbclass
@@ -114,6 +114,8 @@ def go_map_mips(a, f, d):
114def go_map_os(o, d): 114def go_map_os(o, d):
115 if o.startswith('linux'): 115 if o.startswith('linux'):
116 return 'linux' 116 return 'linux'
117 elif o.startswith('mingw'):
118 return 'windows'
117 return o 119 return o
118 120
119 121