diff options
author | Ross Burton <ross.burton@arm.com> | 2024-02-16 14:46:03 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-02-17 18:19:19 +0000 |
commit | 658822409255ff8033c493bb1f7dd1f3abce4024 (patch) | |
tree | bc005928acdd665d79a9c95d1dff3c037c8e3fb0 /meta/classes-recipe | |
parent | 1aa0279aa46037f96877f77fb098720371871f19 (diff) | |
download | poky-658822409255ff8033c493bb1f7dd1f3abce4024.tar.gz |
meson: set the sysroot in the cross files
When cross compiling we have a sysroot, so by telling Meson where it is
explicitly it can do the right thing.
Currently this means it just sets PKG_CONFIG_SYSROOT_DIR to the value
that we already set it to, but in the future this can be used to stop
Meson looking directly in /usr when it shouldn't.
(From OE-Core rev: 62d4fd215a0886056d64e926f722cd07e9986118)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r-- | meta/classes-recipe/meson.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass index a849e87297..03fa2c06eb 100644 --- a/meta/classes-recipe/meson.bbclass +++ b/meta/classes-recipe/meson.bbclass | |||
@@ -90,6 +90,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)} | |||
90 | 90 | ||
91 | [properties] | 91 | [properties] |
92 | needs_exe_wrapper = true | 92 | needs_exe_wrapper = true |
93 | sys_root = '${STAGING_DIR_HOST}' | ||
93 | 94 | ||
94 | [host_machine] | 95 | [host_machine] |
95 | system = '${@meson_operating_system('HOST_OS', d)}' | 96 | system = '${@meson_operating_system('HOST_OS', d)}' |