From: Alexander Kanavin Date: Fri, 22 Jul 2022 18:39:15 +0000 (+0200) Subject: meson: provide relocation script and native/cross wrappers also for meson-native X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3471 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87d4f6d176f27c22dbb99abc271b9a6eaca314f8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git meson: provide relocation script and native/cross wrappers also for meson-native When using meson-native directly from bitbake this has no effect and everything works as before; the use case is being able to build meson-driven projects from the 'direct SDK' environment. Build systems like cmake/autotools are entirely driven by environment variables, but meson needs configuration files, and so this replicates how SDKs set things up. In particular, with this change the libepoxy build test from the SDK test suite is able to pass. Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/meson/meson/meson-wrapper b/meta/recipes-devtools/meson/meson/meson-wrapper index 8fafaad9754..c62007f5077 100755 --- a/meta/recipes-devtools/meson/meson/meson-wrapper +++ b/meta/recipes-devtools/meson/meson/meson-wrapper @@ -1,7 +1,7 @@ #!/bin/sh if [ -z "$OECORE_NATIVE_SYSROOT" ]; then - echo "OECORE_NATIVE_SYSROOT not set; are you in a Yocto SDK environment?" >&2 + exec "meson.real" "$@" fi if [ -z "$SSL_CERT_DIR" ]; then diff --git a/meta/recipes-devtools/meson/meson_0.63.0.bb b/meta/recipes-devtools/meson/meson_0.63.0.bb index 42e64e351fe..890f47506f4 100644 --- a/meta/recipes-devtools/meson/meson_0.63.0.bb +++ b/meta/recipes-devtools/meson/meson_0.63.0.bb @@ -75,7 +75,7 @@ def generate_native_link_template(d): return repr(val) -do_install:append:class-nativesdk() { +install_templates() { install -d ${D}${datadir}/meson cat >${D}${datadir}/meson/meson.native.template <