blob: 4a720e645bf4c7a30099575a555ed23a8de288ed [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} \
5 file://getrandom-open64.patch;patchdir=${RUSTSRC} \
6 file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=${RUSTSRC} \
7 file://zlib-off64_t.patch;patchdir=${RUSTSRC} \
Patrick Williams8e7b46e2023-05-01 14:19:06 -05008 file://0001-musl-Define-SOCK_SEQPACKET-in-common-place.patch;patchdir=${RUSTSRC} \
Patrick Williams2a254922023-08-11 09:48:11 -05009 file://bootstrap_fail.patch;patchdir=${RUSTSRC} \
Andrew Geissler517393d2023-01-13 08:55:19 -060010"
Patrick Williamsb542dec2023-06-09 01:26:37 -050011SRC_URI[rust.sha256sum] = "bb8e9c564566b2d3228d95de9063a9254182446a161353f1d843bfbaf5c34639"
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050012
Andrew Geissler517393d2023-01-13 08:55:19 -060013RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
14
15# Used by crossbeam_atomic.patch
16export TARGET_VENDOR
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050017
18UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
19UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src"