public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 2/7] meson: pass -target and -I to bindgen calls
Date: Sat, 12 Apr 2025 01:09:11 +0300	[thread overview]
Message-ID: <20250412-mesa-25-fixes-v1-2-791840391271@oss.qualcomm.com> (raw)
In-Reply-To: <20250412-mesa-25-fixes-v1-0-791840391271@oss.qualcomm.com>

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.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
 meta/classes-recipe/meson.bbclass | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/classes-recipe/meson.bbclass b/meta/classes-recipe/meson.bbclass
index cbfc45b94bbd076735847134a0976b6b30784d50..ef45a034a767e979a45553ba08e46dc90e34f33f 100644
--- a/meta/classes-recipe/meson.bbclass
+++ b/meta/classes-recipe/meson.bbclass
@@ -93,6 +93,7 @@ cpp_link_args = ${@meson_array('LDFLAGS', d)}
 [properties]
 needs_exe_wrapper = true
 sys_root = '${STAGING_DIR_HOST}'
+bindgen_clang_arguments = ['-target', '${@d.getVar('RUST_HOST_SYS')}', '-I${STAGING_INCDIR}']
 
 [host_machine]
 system = '${@meson_operating_system('HOST_OS', d)}'

-- 
2.39.5



  parent reply	other threads:[~2025-04-11 22:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-11 22:09 [PATCH 0/7] mesa: small improvements after 25.0 merge Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 1/7] mesa: drop kmsro PACKAGECONFIG Dmitry Baryshkov
2025-04-12 10:27   ` Martin Jansa
2025-04-12 13:52     ` Dmitry Baryshkov
2025-04-12 17:25       ` [OE-core] " Khem Raj
2025-04-12 18:46         ` Martin Jansa
2025-04-14 20:11           ` Khem Raj
2025-04-15  8:55             ` Dmitry Baryshkov
2025-04-11 22:09 ` Dmitry Baryshkov [this message]
2025-04-11 22:53   ` [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls Khem Raj
2025-04-12 15:50     ` Dmitry Baryshkov
2025-04-12 16:29     ` Dmitry Baryshkov
2025-04-12 18:02       ` Khem Raj
2025-04-13 11:15         ` Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 3/7] mesa: drop the bindgen patch Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 4/7] mesa: update patch status Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 5/7] mesa: don't buid Intel drivers outside of x86 world Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 6/7] mesa: introduce amd PACKAGECONFIG Dmitry Baryshkov
2025-04-11 22:09 ` [PATCH 7/7] mesa: hanlde svga Gallium driver through PACKAGECONFIG too Dmitry Baryshkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250412-mesa-25-fixes-v1-2-791840391271@oss.qualcomm.com \
    --to=dmitry.baryshkov@oss.qualcomm.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox