To install rust and cargo package as images when building yocto

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

To install rust and cargo package as images when building yocto

2,433 Views
Anonymous
Deactivated User

I am using 5.15.72.

When I do imx full image, I try to include rust and cargo.
Do you know how?

0 Kudos
Reply
5 Replies

2,397 Views
Anonymous
Deactivated User

I realized that what I asked was wrong.
What I actually need is a cross_compiler of rust and cargo in the image after build.

0 Kudos
Reply

2,387 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Anonymous !

If you want to compile in the Host machine you must use the Yocto toolchain for that work.

If you want to include the compilers on the image of the iMX you can add the next line in the local.conf with the packages that you want in your iMX image.

CORE_IMAGE_EXTRA_INSTALL += "name of the package".

0 Kudos
Reply

2,380 Views
Anonymous
Deactivated User

Do you know which package it is?
What I want is
https://github.com/rust-embedded/meta-rust-bin/tree/master
It works.

That is, "pre-built toolchains for the Rust programming language" are included inside the imx image.

0 Kudos
Reply

2,372 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Anonymous!

Yes, that package is included in iMX images.

Chavira_0-1684338711217.png

 

0 Kudos
Reply

2,417 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Anonymous !

Thank you for contacting NXP Support!

Inside the open embedded Layer exist those packages.

You can consult the installed packages in Open Embedded Layer by following the link.

OpenEmbedded Layer Index - layers

 

Best Regards.

Chavira.

0 Kudos
Reply