summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-04-18 03:57:12 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-04-23 09:47:42 +0100
commit581861b94bde21e48b9cc992f34fe9ef2323756b (patch)
tree58497aba610a047652e39253666ce93b87c5cd06
parentea00dbbcf3bacf6e115fb261d9880f52be25ca05 (diff)
downloadpoky-581861b94bde21e48b9cc992f34fe9ef2323756b.tar.gz
meson: pass -target and -I to bindgen calls
In order to properly generate Rust bindings for the target systems, we need to pass '-taget foo-linux-gnueabi' flags and a correct include target include path (${STAGING_INCDIR}) to the bindgen. Add those flags to the generated meson target file. (From OE-Core rev: 40008d55c01681c60088e5b7defb0b8513a4ed1c) Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes-recipe/meson.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
index cbfc45b94b..ef45a034a7 100644
--- a/meta/classes-recipe/meson.bbclass
+++ b/meta/classes-recipe/meson.bbclass
@@ -93,6 +93,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
93[properties] 93[properties]
94needs_exe_wrapper = true 94needs_exe_wrapper = true
95sys_root = '${STAGING_DIR_HOST}' 95sys_root = '${STAGING_DIR_HOST}'
96bindgen_clang_arguments = ['-target', '${@d.getVar('RUST_HOST_SYS')}', '-I${STAGING_INCDIR}']
96 97
97[host_machine] 98[host_machine]
98system = '${@meson_operating_system('HOST_OS', d)}' 99system = '${@meson_operating_system('HOST_OS', d)}'