blob: b14221b6cb88945306fa7521c39539aa148259ba [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}"
Patrick Williams92b42cb2022-09-03 06:53:57 -05002
Andrew Geissler517393d2023-01-13 08:55:19 -06003SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \
Andrew Geissler517393d2023-01-13 08:55:19 -06004 file://hardcodepaths.patch;patchdir=${RUSTSRC} \
Andrew Geissler517393d2023-01-13 08:55:19 -06005 file://zlib-off64_t.patch;patchdir=${RUSTSRC} \
Patrick Williams169d7bc2024-01-05 11:33:25 -06006 file://0001-Revert-Map-source-absolute-paths-to-OUT_DIR-as-relat.patch;patchdir=${RUSTSRC} \
Patrick Williams73bd93f2024-02-20 08:07:48 -06007 file://rv32-missing-syscalls.patch;patchdir=${RUSTSRC} \
8 file://rv32-rustix-libc-backend.patch;patchdir=${RUSTSRC} \
Patrick Williams39653562024-03-01 08:54:02 -06009 file://rv32-cargo-rustix-0.38.19-fix.patch;patchdir=${RUSTSRC} \
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060010 file://cargo-path.patch;patchdir=${RUSTSRC} \
11 file://custom-target-cfg.patch;patchdir=${RUSTSRC} \
12 file://rustc-bootstrap.patch;patchdir=${RUSTSRC} \
13 file://target-build-value.patch;patchdir=${RUSTSRC} \
Patrick Williams39653562024-03-01 08:54:02 -060014 file://0001-Handle-vendored-sources-when-remapping-paths.patch;patchdir=${RUSTSRC} \
15 file://repro-issue-fix-with-v175.patch;patchdir=${RUSTSRC} \
Andrew Geissler517393d2023-01-13 08:55:19 -060016"
Patrick Williams39653562024-03-01 08:54:02 -060017SRC_URI[rust.sha256sum] = "4526f786d673e4859ff2afa0bab2ba13c918b796519a25c1acce06dba9542340"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050018
Andrew Geissler517393d2023-01-13 08:55:19 -060019RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
20
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050021UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
22UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src"
Patrick Williams44b3caf2024-04-12 16:51:14 -050023
24CVE_STATUS[CVE-2024-24576] = "not-applicable-platform: Issue only applies on Windows"