From: Ross Burton Date: Sat, 10 May 2025 08:43:56 +0000 (+0100) Subject: meson: clean up the native template in nativesdk builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f13063d11f1c62152af9ed45cb24f6499262e1a2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git meson: clean up the native template in nativesdk builds In a nativesdk build, the native build template should be minimal as it just needs to ensure that Meson can link with libraries in the SDK's native sysroot. Specifically, it shouldn't be passing BUILD_* flags to Meson as these are for the Yocto build host, not the SDK user. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/meson/meson_1.8.0.bb b/meta/recipes-devtools/meson/meson_1.8.0.bb index 5d4fc39751..78e0a0ed80 100644 --- a/meta/recipes-devtools/meson/meson_1.8.0.bb +++ b/meta/recipes-devtools/meson/meson_1.8.0.bb @@ -86,6 +86,21 @@ cpp_link_args = ${@generate_native_link_template(d)} EOF } +install_nativesdk_template() { + install -d ${D}${datadir}/meson + + cat >${D}${datadir}/meson/meson.native.template <