summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2022-12-16 12:06:31 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-12-17 23:49:56 +0000
commite115fe54720ddcf9dcb8a3de2ea9e720abc6774f (patch)
tree232e788bce6e28429202c76371ab3f7aa3dabc2c /meta/recipes-devtools/rust
parent9eb2b0bb7ab4b047acc11c3ce0034aa4def49432 (diff)
downloadpoky-e115fe54720ddcf9dcb8a3de2ea9e720abc6774f.tar.gz
rust: Install target.json for target rustc
As part of the merging builds, installation of target.json was lost causing `rustc` to fail on startup with: error: Error loading target specification: Could not find specification for target "aarch64-poky-linux-gnu". Run `rustc --print target-list` for a list of built-in targets We know the full target specification, so just install it directly rather than using the glob approach from previously. Fixes: b9b0cd99cdc7 ("rust: Enable nativesdk and target builds + replace rust-tools-cross-canadian") (From OE-Core rev: b187185ceecf1c852b1fdc47451d157a41962d69) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust')
-rw-r--r--meta/recipes-devtools/rust/rust_1.65.0.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rust/rust_1.65.0.bb b/meta/recipes-devtools/rust/rust_1.65.0.bb
index dbf74cec8f..b39f772c5f 100644
--- a/meta/recipes-devtools/rust/rust_1.65.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.65.0.bb
@@ -68,6 +68,9 @@ rust_do_install:class-target() {
68 chrpath -r "\$ORIGIN/../lib" ${D}${bindir}/$i 68 chrpath -r "\$ORIGIN/../lib" ${D}${bindir}/$i
69 done 69 done
70 70
71 install -d ${D}${libdir}/rustlib/${RUST_HOST_SYS}
72 install -m 0644 ${WORKDIR}/rust-targets/${RUST_HOST_SYS}.json ${D}${libdir}/rustlib/${RUST_HOST_SYS}/target.json
73
71 chown root:root ${D}/ -R 74 chown root:root ${D}/ -R
72 rm ${D}${libdir}/rustlib/uninstall.sh 75 rm ${D}${libdir}/rustlib/uninstall.sh
73 rm ${D}${libdir}/rustlib/install.log 76 rm ${D}${libdir}/rustlib/install.log