On Fri, Oct 21, 2022 at 10:12 AM Alexander Kanavin
<alex.kana...@gmail.com> wrote:
>
> On Fri, 21 Oct 2022 at 19:00, Khem Raj <raj.k...@gmail.com> wrote:
> > > On Fri, 21 Oct 2022 at 18:07, Khem Raj <raj.k...@gmail.com> wrote:
> > > > Looking briefly over the code, my educated guess is that target names
> > > > are still not matching
> > > > rusts tuple uses riscv32gc but we use riscv32
> > >
> > > I believe we have a remapping in meta/lib/oe/rust.py, can you check if
> > > that works?
> >
> > This is mapping host uname, it wont work.
>
> No, it's mapping the targets too. E.g. in rust-common.bbclass:
>
> # Responsible for taking Yocto triples and converting it to Rust triples
> def rust_base_triple(d, thing):
>     '''
>     Mangle bitbake's *_SYS into something that rust might support (see
>     rust/mk/cfg/* for a list)
>
>     Note that os is assumed to be some linux form
>     '''
>
>     # The llvm-target for armv7 is armv7-unknown-linux-gnueabihf
>     if d.getVar('{}_ARCH'.format(thing)) == d.getVar('TARGET_ARCH')
> and target_is_armv7(d):
>         arch = "armv7"
>     else:
>         arch = oe.rust.arch_to_rust_arch(d.getVar('{}_ARCH'.format(thing)))
>

anyway, the builds failed at exactly the same point so as I sensed it
does not work.

> Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#172038): 
https://lists.openembedded.org/g/openembedded-core/message/172038
Mute This Topic: https://lists.openembedded.org/mt/94464934/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to