require rust-source.inc
require rust-snapshot.inc
-SRC_URI:append:class-target = "\
- file://crossbeam_atomic.patch;patchdir=${RUSTSRC} \
- file://getrandom-open64.patch;patchdir=${RUSTSRC} \
-"
-
-# Used by crossbeam_atomic.patch
-export TARGET_VENDOR
-
S = "${RUSTSRC}/src/tools/cargo"
CARGO_VENDORING_DIRECTORY = "${RUSTSRC}/vendor"
RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}"
-SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust"
-SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c"
-SRC_URI:append:class-target:pn-libstd-rs = "\
- file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=../.. \
+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} \
"
-
-SRC_URI:append:class-target:pn-rust = " \
- file://getrandom-open64.patch \
- file://0001-Do-not-use-LFS64-on-linux-with-musl.patch \
- file://zlib-off64_t.patch \
- file://hardcodepaths.patch \
- file://crossbeam_atomic.patch"
-SRC_URI:append:class-nativesdk:pn-nativesdk-rust = " file://hardcodepaths.patch"
+SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c"
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"