From 84ca7c66190c2c9a59396bfeeb4b24e893911878 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Sat, 10 May 2025 09:43:56 +0100 Subject: [PATCH] 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. (From OE-Core rev: f13063d11f1c62152af9ed45cb24f6499262e1a2) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/recipes-devtools/meson/meson_1.8.0.bb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 <