diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-29 14:28:51 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-29 15:24:34 +0000 |
commit | 3f8cb421e34c932f2bcbfdca6ef98c9ff25e169f (patch) | |
tree | a921239d1672f1ac8acbc8422e50f006a850cd0f | |
parent | 1fce9adf75328fca649ba6afe1f85fdb5ec40307 (diff) | |
download | poky-3f8cb421e34c932f2bcbfdca6ef98c9ff25e169f.tar.gz |
rust-source: Fix remove_gcc_directory
The patch works for rust-native but not other recipes which change ${S}.
Set it to use the correct path so it works for llvm-rust, cargo and others,
maximising the space saving.
(From OE-Core rev: 1aee0bc109c1457159440c279ddc1fe5a8d89586)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/rust/rust-source.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc index 92bb5e4779..820cdc16e2 100644 --- a/meta/recipes-devtools/rust/rust-source.inc +++ b/meta/recipes-devtools/rust/rust-source.inc | |||
@@ -17,7 +17,7 @@ RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" | |||
17 | #After updating to Rust 1.85 we can revert this removal of "src/gcc" | 17 | #After updating to Rust 1.85 we can revert this removal of "src/gcc" |
18 | remove_gcc_directory() { | 18 | remove_gcc_directory() { |
19 | # Ensure the gcc directory exists | 19 | # Ensure the gcc directory exists |
20 | gcc_dir="${S}/src/gcc" | 20 | gcc_dir="${RUSTSRC}/src/gcc" |
21 | if [ -d "$gcc_dir" ]; then | 21 | if [ -d "$gcc_dir" ]; then |
22 | rm -rf "$gcc_dir" | 22 | rm -rf "$gcc_dir" |
23 | fi | 23 | fi |