From: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH 2/7] meson: pass -target and -I to bindgen calls
Date: Sat, 12 Apr 2025 19:29:55 +0300 [thread overview]
Message-ID: <7df3cee7-99e4-464f-9638-befaab4a097f@oss.qualcomm.com> (raw)
In-Reply-To: <CAMKF1sqFzfsPgr0LJbGY3djKGGBa9hJD6rYNVC+oT9eP9Cjpsw@mail.gmail.com>
On 12/04/2025 01:53, Khem Raj wrote:
> On Fri, Apr 11, 2025 at 3:09 PM Dmitry Baryshkov via
> lists.openembedded.org
> <dmitry.baryshkov=oss.qualcomm.com@lists.openembedded.org> wrote:
>>
>> 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}']
>
> I think its better to use ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}
> --target=${TARGET_SYS}
Using ${TOOLCHAIN_OPTIONS} breaks x86-64 build with the compiler being
unable to find headers. I'd rather stick to the patch I have posted.
> here
>
>>
>> [host_machine]
>> system = '${@meson_operating_system('HOST_OS', d)}'
>>
>> --
>> 2.39.5
>>
>>
>> -=-=-=-=-=-=-=-=-=-=-=-
>> Links: You receive all messages sent to this group.
>> View/Reply Online (#214764): https://lists.openembedded.org/g/openembedded-core/message/214764
>> Mute This Topic: https://lists.openembedded.org/mt/112219030/1997914
>> Group Owner: openembedded-core+owner@lists.openembedded.org
>> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
>> -=-=-=-=-=-=-=-=-=-=-=-
>>
--
With best wishes
Dmitry
next prev parent reply other threads:[~2025-04-12 16:30 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 ` [PATCH 2/7] meson: pass -target and -I to bindgen calls Dmitry Baryshkov
2025-04-11 22:53 ` [OE-core] " Khem Raj
2025-04-12 15:50 ` Dmitry Baryshkov
2025-04-12 16:29 ` Dmitry Baryshkov [this message]
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=7df3cee7-99e4-464f-9638-befaab4a097f@oss.qualcomm.com \
--to=dmitry.baryshkov@oss.qualcomm.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/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