From 099bd78ce80772c42887104a40aa0a92fdaa6965 Mon Sep 17 00:00:00 2001 From: Peter Morrow Date: Tue, 6 Apr 2021 06:07:57 -0700 Subject: [PATCH] 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 Signed-off-by: Steve Sakoman --- meta/classes/goarch.bbclass | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.40.1