]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
toolchain-scripts: Export meson settings for SDK builds
authorTom Hochstein <tom.hochstein@oss.nxp.com>
Thu, 17 Apr 2025 18:08:30 +0000 (13:08 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 1 May 2025 13:33:28 +0000 (14:33 +0100)
commit9e742a0a9078f4a19a5edbfa51f22f7b71992188
treee3ca8738e80c004bf2565ac41cd56ceaa66d1b63
parent6287114bf10718fe49f7c1ed211f3d99f0933bc4
toolchain-scripts: Export meson settings for SDK builds

Create a new set of exports for the Meson `host_machine` cross settings.
This allows the target cross file to be created correctly from
meson.cross.template and aligns with meson.bbclass.

Note, one might think that HOST_OS and HOST_ARCH would be appropriate as
inputs here, aligning nicely with the Meson naming. That turns out to be
incorrect since the script is generated in a native/nativesdk build with
HOST_OS and HOST_ARCH set for the "build machine", not the "host
machine", using the Meson terminology. See
https://mesonbuild.com/Cross-compilation.html.

Fixes: [YOCTO #15485]
Signed-off-by: Tom Hochstein <tom.hochstein@oss.nxp.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/toolchain-scripts.bbclass