summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-29 14:28:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-03-29 15:24:34 +0000
commit3f8cb421e34c932f2bcbfdca6ef98c9ff25e169f (patch)
treea921239d1672f1ac8acbc8422e50f006a850cd0f
parent1fce9adf75328fca649ba6afe1f85fdb5ec40307 (diff)
downloadpoky-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.inc2
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"
18remove_gcc_directory() { 18remove_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