summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-source.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rust/rust-source.inc')
-rw-r--r--meta/recipes-devtools/rust/rust-source.inc23
1 files changed, 6 insertions, 17 deletions
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc
index 820cdc16e2..e07055882c 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -1,30 +1,19 @@
1RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}" 1RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}"
2 2
3SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \ 3SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \
4 file://rv32-cargo-rustix-0.38.38-fix.patch;patchdir=${RUSTSRC} \ 4 file://rv32-cargo-rustix-0.38.40-fix.patch;patchdir=${RUSTSRC} \
5 file://rust-oe-selftest.patch;patchdir=${RUSTSRC} \ 5 file://rust-oe-selftest.patch;patchdir=${RUSTSRC} \
6 file://repro-issue-fix-with-cc-crate-hashmap.patch;patchdir=${RUSTSRC} \ 6 file://repro-issue-fix-with-cc-crate-hashmap.patch;patchdir=${RUSTSRC} \
7 file://oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch;patchdir=${RUSTSRC} \ 7 file://oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch;patchdir=${RUSTSRC} \
8 file://0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch;patchdir=${RUSTSRC} \ 8 file://0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch;patchdir=${RUSTSRC} \
9 file://revert-link-std-statically-in-rustc_driver-feature.patch;patchdir=${RUSTSRC} \ 9 file://revert-link-std-statically-in-rustc_driver-feature.patch;patchdir=${RUSTSRC} \
10 file://Zdual-proc-macros-additional-check.patch;patchdir=${RUSTSRC} \ 10 file://Zdual-proc-macros-additional-check.patch;patchdir=${RUSTSRC} \
11 file://fix-tidy-check-failure.patch;patchdir=${RUSTSRC} \ 11 file://downgrade-bootstrap-cc.patch;patchdir=${RUSTSRC} \
12" 12"
13SRC_URI[rust.sha256sum] = "e23ec747a06ffd3e94155046f40b6664ac152c9ee3c2adfd90353a7ccff24226" 13SRC_URI[rust.sha256sum] = "d542c397217b5ba5bac7eb274f5ca62d031f61842c3ba4cc5328c709c38ea1e7"
14 14
15RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" 15RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
16 16
17#After updating to Rust 1.85 we can revert this removal of "src/gcc"
18remove_gcc_directory() {
19 # Ensure the gcc directory exists
20 gcc_dir="${RUSTSRC}/src/gcc"
21 if [ -d "$gcc_dir" ]; then
22 rm -rf "$gcc_dir"
23 fi
24}
25# Add postfunc to the do_unpack task
26do_unpack[postfuncs] += "remove_gcc_directory"
27
28UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" 17UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
29UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src" 18UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src"
30 19