xref: /openbmc/openbmc/poky/meta/recipes-devtools/rust/rust-source.inc (revision 43a6b7c2a48b0cb1381af4d3192d22a12ead65f0)
1RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}"
2
3SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \
4            file://zlib-off64_t.patch;patchdir=${RUSTSRC} \
5            file://rv32-rustix-libc-backend.patch;patchdir=${RUSTSRC} \
6            file://rv32-cargo-rustix-0.38.28-fix.patch;patchdir=${RUSTSRC} \
7            file://rust-oe-selftest.patch;patchdir=${RUSTSRC} \
8            file://repro-issue-fix-with-cc-crate-hashmap.patch;patchdir=${RUSTSRC} \
9            file://oeqa-selftest-Increase-timeout-in-process-sigpipe-ru.patch;patchdir=${RUSTSRC} \
10            file://0001-src-core-build_steps-tool.rs-switch-off-lto-for-rust.patch;patchdir=${RUSTSRC} \
11"
12SRC_URI[rust.sha256sum] = "36217ef7e32f40a180e3d79bd666b4dfdaed49dd381023a5fb765fd12d0092ce"
13
14RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
15
16UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
17UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src"
18
19CVE_STATUS[CVE-2024-24576] = "not-applicable-platform: Issue only applies on Windows"
20CVE_STATUS[CVE-2024-43402] = "not-applicable-platform: Issue only applies on Windows"
21