[yocto][meta-mingw][wrynose][PATCH] mingw32-common.inc: disable meson exe wrapper for mingw targets
Joshua Watt <[email protected]> Mon, 20 Jul 2026 10:02:25 -0600
| Newsgroups | org.yoctoproject.lists.yocto-patches |
|---|---|
| Message-ID | <[email protected]> |
From: Rong Fu <[email protected]> The meson bbclass uses qemu as an exe_wrapper to run cross-compiled binaries for sanity checks. However, qemu-i386 cannot execute Windows PE format executables (.exe), causing meson setup to fail with: Executables created by c compiler i686-w64-mingw32-gcc are not runnable. This affects all meson-based nativesdk recipes when SDKMACHINE is set to a mingw target (e.g. i686-mingw32), such as nativesdk-dtc. Disable EXEWRAPPER_ENABLED for mingw32 to skip the qemu exe wrapper since it is not functional for Windows targets. Signed-off-by: Rong Fu <[email protected]> Signed-off-by: Joshua Watt <[email protected]> --- conf/machine-sdk/include/mingw32-common.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/machine-sdk/include/mingw32-common.inc b/conf/machine-sdk/include/mingw32-common.inc index bf3f14e..6014c51 100644 --- a/conf/machine-sdk/include/mingw32-common.inc +++ b/conf/machine-sdk/include/mingw32-common.inc @@ -57,6 +57,9 @@ DISABLE_STATIC:mingw32 = "" # disable security flags GCCPIE:mingw32 = "" +# qemu cannot run Windows PE executables, disable meson exe wrapper +EXEWRAPPER_ENABLED:mingw32 = "False" + # wine and wineserver are required to test MinGW SDKs HOSTTOOLS_NONFATAL += "wine wineserver" -- 2.54.0