summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/packagegroups/packagegroup-rust-cross-canadian.bb
Commit message (Collapse)AuthorAgeFilesLines
* packagegroup-rust-cross-canadian: add native compiler environmentPeter Bergin2022-09-031-0/+4
| | | | | | | | | | | | | | | | | | | When building rust crates it is quite common to have a build script [1] that is compiled for the host machine and then used during build for target. Currently when adding packagegroup-rust-cross-canadian this does not work without having the native compiler and linker added to the SDK. Add those packages to the packagegroup to make it easier to handle. The reason for having glibc-dev and libgcc-dev is to have version match with the used tools. Otherwise it will work on hosts that have compatible gcc and glibc versions but not on all. [1] https://doc.rust-lang.org/cargo/reference/build-scripts.html (From OE-Core rev: 1de29eb5ec091427560e1f0b6b16c91a3a994835) Signed-off-by: Peter Bergin <peter@berginkonsult.se> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Enable nativesdk and target builds + replace rust-tools-cross-canadianRichard Purdie2022-08-081-3/+3
| | | | | | | | | | | | Enable rust target builds as well as nativesdk-rust for the sdk. Merge the builds of rust-tools components into the rust build, packaged separately since this is a lot more efficient and saves rebuilding core rust multiple times. The tools are not target specific so nativesdk-rust-tools suffices and we can drop the cross canadian piece. (From OE-Core rev: b9b0cd99cdc77e7a90e5fd5711e706ebe64c7b6b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* cargo: Drop cross-canadian variant and fix/use nativesdkRichard Purdie2022-08-081-2/+1
| | | | | | | | | | | The cargo-cross-candian variant made no sense as one version of cargo in the SDK can work for all targets. Replace it with nativesdk-cargo instead. Move the SDK env to rust-cross-canadian. (From OE-Core rev: 6d6d135924eff5993736ee58ba8cc5d00ca635f3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: initial merge of most of meta-rustRandy MacLeod2021-08-261-0/+18
In the meta-rust repo at commit: 448047c Upgrade to 1.54.0 (#359) Make the required directories: mkdir ../oe-core/meta/recipes-devtools/rust mkdir ../oe-core/meta/recipes-devtools/cargo mkdir ../oe-core/meta/recipes-example and then: cp recipes-devtools/rust/* ../oe-core/meta/recipes-devtools/rust cp recipes-devtools/cargo/* ../oe-core/meta/recipes-devtools/cargo cp lib/crate.py ../oe-core/meta/lib cp recipes-example/* ../oe-core/meta/recipes-example cp conf/distro/include/rust_* ../oe-core/meta/conf/distro/include/ cp classes/* ../oe-core/meta/classes/ cp recipes-core/packagegroups/packagegroup-rust-cross-canadian.bb ../oe-core/meta/recipes-core/packagegroups (From OE-Core rev: 3ed57578cca93ff1ba4e0bf3f25566e10659a2f9) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>