blob: 0534e59c358560b635eb13868a973220810e37a1 [file] [log] [blame]
RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}"
SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \
file://crossbeam_atomic.patch;patchdir=${RUSTSRC} \
file://hardcodepaths.patch;patchdir=${RUSTSRC} \
file://getrandom-open64.patch;patchdir=${RUSTSRC} \
file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=${RUSTSRC} \
file://zlib-off64_t.patch;patchdir=${RUSTSRC} \
file://0001-musl-Define-SOCK_SEQPACKET-in-common-place.patch;patchdir=${RUSTSRC} \
"
SRC_URI[rust.sha256sum] = "ce1a115f6aafa912b4622906a92b626354973afa9288e2c7750df4dcf3390fc0"
RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
# Used by crossbeam_atomic.patch
export TARGET_VENDOR
UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src"