mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 18:49:32 +02:00
rust: Enable nativesdk and target builds + replace rust-tools-cross-canadian
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>
This commit is contained in:
@@ -9,6 +9,7 @@ inherit cargo_common
|
||||
|
||||
DEPENDS += "file-native python3-native"
|
||||
DEPENDS:append:class-native = " rust-llvm-native"
|
||||
DEPENDS:append:class-nativesdk = " nativesdk-rust-llvm"
|
||||
|
||||
S = "${RUSTSRC}"
|
||||
|
||||
@@ -202,18 +203,6 @@ rust_do_install () {
|
||||
rm -f ${D}${libdir}/rustlib/src/rust
|
||||
}
|
||||
|
||||
rust_install_targets() {
|
||||
# Install our custom target.json files
|
||||
local td="${D}${libdir}/rustlib/"
|
||||
install -d "$td"
|
||||
for tgt in "${WORKDIR}/targets/"* ; do
|
||||
install -m 0644 "$tgt" "$td"
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
do_install () {
|
||||
rust_do_install
|
||||
rust_install_targets
|
||||
}
|
||||
# ex: sts=4 et sw=4 ts=8
|
||||
|
||||
Reference in New Issue
Block a user