summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Morrow <pemorrow@linux.microsoft.com>2021-04-06 06:07:57 -0700
committerSteve Sakoman <steve@sakoman.com>2021-04-19 04:27:15 -1000
commit099bd78ce80772c42887104a40aa0a92fdaa6965 (patch)
tree1f8c3cd08be8b98880fad1ee52a261eecea9a21f
parentf1dda70ff8b672b695b44079db69a0563bb6c96c (diff)
downloadopenembedded-core-contrib-099bd78ce80772c42887104a40aa0a92fdaa6965.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. Signed-off-by: Peter Morrow <pemorrow@linux.microsoft.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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):
def go_map_os(o, d):
if o.startswith('linux'):
return 'linux'
+ elif o.startswith('mingw'):
+ return 'windows'
return o