]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
toolchain-scripts: Export meson settings for SDK builds
authorTom Hochstein <tom.hochstein@oss.nxp.com>
Sat, 10 May 2025 08:43:52 +0000 (09:43 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 12 May 2025 09:52:52 +0000 (10:52 +0100)
commitf2f898e36feb3bd489edda451e71b11bf69940b9
treecaa10303924681b8a7913b2acd322ca44b84471a
parentd69d049e9a7114323a1e1b8da4999e9e3f08ad03
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]
(From OE-Core rev: 9e742a0a9078f4a19a5edbfa51f22f7b71992188)

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