mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 00:32:12 +02:00
Currently, we can't build meson into SDKs because we don't autogenerate the required meson.cross file. Enable this by using the post-relocate hooks and generating a meson.cross file based on the SDK environment passed into the post-relocate hook. (From OE-Core rev: aabb846b165fec218024a7a57f3c9fdaa2514179) Signed-off-by: Martin Kelly <mkelly@xevo.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
501 B
Executable File
501 B
Executable File
#!/bin/sh
if [ -z "$OECORE_NATIVE_SYSROOT" ]; then echo "OECORE_NATIVE_SYSROOT not set; are you in a Yocto SDK environment?" >&2 fi
If these are set to a cross-compile path, meson will get confused and try to
use them as native tools. Unset them to prevent this, as all the cross-compile
config is already in meson.cross.
unset CC CXX CPP LD AR NM STRIP
exec "$OECORE_NATIVE_SYSROOT/usr/bin/meson.real"
--cross-file "$OECORE_NATIVE_SYSROOT/usr/share/meson/meson.cross"
"$@"