diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-10-17 14:27:16 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-27 11:37:42 +0000 |
| commit | b466b11964505cb203dc7377255c8c52936aeb6e (patch) | |
| tree | 53cf3137128b52cceee8449090b0a48664c01aa5 | |
| parent | 416731b8756cd2689055ada2deaff48c7751d3b9 (diff) | |
| download | poky-b466b11964505cb203dc7377255c8c52936aeb6e.tar.gz | |
libstd-rs: remove redundant CARGO_TARGET_DIR
The cargo class already sets this, so there's no need to set it again.
The value set by cargo.bbclass is actually ${B}/target, so update the
do_install task to match.
(From OE-Core rev: 3557f1c294531e7f8c34a2b0677e8c03f1b1be77)
(From OE-Core rev: ec51c22e902c2556438f1323a71a5e47ef00681e)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-devtools/rust/libstd-rs_1.90.0.bb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/meta/recipes-devtools/rust/libstd-rs_1.90.0.bb b/meta/recipes-devtools/rust/libstd-rs_1.90.0.bb index b39ec0ab39..8af93bec57 100644 --- a/meta/recipes-devtools/rust/libstd-rs_1.90.0.bb +++ b/meta/recipes-devtools/rust/libstd-rs_1.90.0.bb | |||
| @@ -34,7 +34,6 @@ CARGO_BUILD_FLAGS += "--features '${CARGO_FEATURES}'" | |||
| 34 | CARGO_VENDORING_DIRECTORY = "${RUSTSRC}/vendor" | 34 | CARGO_VENDORING_DIRECTORY = "${RUSTSRC}/vendor" |
| 35 | 35 | ||
| 36 | do_compile:prepend () { | 36 | do_compile:prepend () { |
| 37 | export CARGO_TARGET_DIR="${B}" | ||
| 38 | # For Rust 1.13.0 and newer | 37 | # For Rust 1.13.0 and newer |
| 39 | export RUSTC_BOOTSTRAP="1" | 38 | export RUSTC_BOOTSTRAP="1" |
| 40 | } | 39 | } |
| @@ -45,8 +44,8 @@ do_install () { | |||
| 45 | # With the incremental build support added in 1.24, the libstd deps directory also includes dependency | 44 | # With the incremental build support added in 1.24, the libstd deps directory also includes dependency |
| 46 | # files that get installed. Those are really only needed to incrementally rebuild the libstd library | 45 | # files that get installed. Those are really only needed to incrementally rebuild the libstd library |
| 47 | # itself and don't need to be installed. | 46 | # itself and don't need to be installed. |
| 48 | rm -f ${B}/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/*.d | 47 | rm -f ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/*.d |
| 49 | cp ${B}/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/* ${D}${rustlibdir} | 48 | cp ${B}/target/${RUST_TARGET_SYS}/${BUILD_DIR}/deps/* ${D}${rustlibdir} |
| 50 | } | 49 | } |
| 51 | 50 | ||
| 52 | BBCLASSEXTEND = "nativesdk" | 51 | BBCLASSEXTEND = "nativesdk" |
