Re: [OE-core] rust in SDK

2021-11-24 Thread Randy MacLeod

On 2021-11-24 3:14 p.m., Khem Raj wrote:



On 11/23/21 11:59 PM, Peter Bergin wrote:

Hi,

I'm looking for information about how mature and tested it is to have 
rust tools in the SDK. In README-rust.md [1] there is a phrase "Once 
the Rust SDK support is added to oe-core..." which can be read that it 
is not ready yet. In the first bullet "What works:" it states 
"-buildsdk and -crosssdk" which I can't connect to oe-core terms.


I have suceeded to add rust tools to a SDK by adding 
'TOOLCHAIN_HOST_TASK:append = " 
packagegroup-rust-cross-canadian-${MACHINE}"' to my config. With this 
I have succeeded to cross-compile the simplest hello-world example for 
aarch64. Is this the way to go or is there work to do (reffering to 
README info)?


Any information around rust and the status in oe-core are appreciated.



SDK usecase would partially work but the relocatable part might have 
issues since we have hacks to expand on install paths at SDK install 
time which may not work out of box for rust compiler tools.



Hi Peter,

The core rust/cargo toolchain works well. we're using it for librsvg
and in meta-oe, mozjs-91 and likely other places. I think Tim has work
underway (that I'm going to one day help with !! ) to uprev 
python-cryptography [1].


I *still* haven't personally tested the SDK workflow so you're comments 
on that are
appreciated. Back in Feb/2021 [2], Anatol was working with the SDK so 
perhaps

he will have something to say about the current state of affairs.

Naveen has and is working through a several bugs so if you find 
something, please

report it in the YP bugzilla: https://bugzilla.yoctoproject.org/

../Randy


[1] 
https://git.openembedded.org/meta-openembedded-contrib/log/?h=timo/python3-cryptography_35.0.0



[2] 
https://lists.openembedded.org/g/openembedded-core/message/148546?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2C%2522Current+native+SDK+glibc+compat%2522%2C20%2C1%2C0%2C80874524 






Thanks,
/Peter













--
# Randy MacLeod
# Wind River Linux


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



Re: [OE-core] rust in SDK

2021-11-24 Thread Khem Raj



On 11/23/21 11:59 PM, Peter Bergin wrote:

Hi,

I'm looking for information about how mature and tested it is to have 
rust tools in the SDK. In README-rust.md [1] there is a phrase "Once the 
Rust SDK support is added to oe-core..." which can be read that it is 
not ready yet. In the first bullet "What works:" it states "-buildsdk 
and -crosssdk" which I can't connect to oe-core terms.


I have suceeded to add rust tools to a SDK by adding 
'TOOLCHAIN_HOST_TASK:append = " 
packagegroup-rust-cross-canadian-${MACHINE}"' to my config. With this I 
have succeeded to cross-compile the simplest hello-world example for 
aarch64. Is this the way to go or is there work to do (reffering to 
README info)?


Any information around rust and the status in oe-core are appreciated.



SDK usecase would partially work but the relocatable part might have 
issues since we have hacks to expand on install paths at SDK install 
time which may not work out of box for rust compiler tools.



Thanks,
/Peter






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



Re: [OE-core] rust in SDK

2021-11-24 Thread Peter Bergin

Hi Alex,

On 2021-11-24 09:04, Alexander Kanavin wrote:
Yocto is what you make it, and you shouldn't expect things to 
magically happen if you wait for them.


If you are able to make rust work in SDK, adjust the docs, the 
readmes, add the tests and examples, and send the patches, and then 
that's the new status.


Alex


I'm fully aware of this and would like to help out and send updates. As 
I find the current docs a bit unclear I just seeks information if I'm on 
the right path. How other people is doing this or if I'm the first one 
exploring this task. I had no assumptions to let someone else fix this.


/Peter


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



Re: [OE-core] rust in SDK

2021-11-24 Thread Alexander Kanavin
Yocto is what you make it, and you shouldn't expect things to magically
happen if you wait for them.

If you are able to make rust work in SDK, adjust the docs, the readmes, add
the tests and examples, and send the patches, and then that's the new
status.

Alex

On Wed, 24 Nov 2021 at 08:59, Peter Bergin  wrote:

> Hi,
>
> I'm looking for information about how mature and tested it is to have
> rust tools in the SDK. In README-rust.md [1] there is a phrase "Once the
> Rust SDK support is added to oe-core..." which can be read that it is
> not ready yet. In the first bullet "What works:" it states "-buildsdk
> and -crosssdk" which I can't connect to oe-core terms.
>
> I have suceeded to add rust tools to a SDK by adding
> 'TOOLCHAIN_HOST_TASK:append = "
> packagegroup-rust-cross-canadian-${MACHINE}"' to my config. With this I
> have succeeded to cross-compile the simplest hello-world example for
> aarch64. Is this the way to go or is there work to do (reffering to
> README info)?
>
> Any information around rust and the status in oe-core are appreciated.
>
> Thanks,
> /Peter
>
>
> 
>
>

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



[OE-core] rust in SDK

2021-11-23 Thread Peter Bergin

Hi,

I'm looking for information about how mature and tested it is to have 
rust tools in the SDK. In README-rust.md [1] there is a phrase "Once the 
Rust SDK support is added to oe-core..." which can be read that it is 
not ready yet. In the first bullet "What works:" it states "-buildsdk 
and -crosssdk" which I can't connect to oe-core terms.


I have suceeded to add rust tools to a SDK by adding 
'TOOLCHAIN_HOST_TASK:append = " 
packagegroup-rust-cross-canadian-${MACHINE}"' to my config. With this I 
have succeeded to cross-compile the simplest hello-world example for 
aarch64. Is this the way to go or is there work to do (reffering to 
README info)?


Any information around rust and the status in oe-core are appreciated.

Thanks,
/Peter


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