diff options
Diffstat (limited to 'meta/recipes-devtools/rust/rust-source.inc')
-rw-r--r-- | meta/recipes-devtools/rust/rust-source.inc | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc index bfb625fb36..6f1df4561b 100644 --- a/meta/recipes-devtools/rust/rust-source.inc +++ b/meta/recipes-devtools/rust/rust-source.inc | |||
@@ -1,21 +1,19 @@ | |||
1 | RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}" | 1 | RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}" |
2 | SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust" | ||
3 | SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c" | ||
4 | 2 | ||
5 | SRC_URI:append:class-target:pn-libstd-rs = "\ | 3 | SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \ |
6 | file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=../.. \ | 4 | file://crossbeam_atomic.patch;patchdir=${RUSTSRC} \ |
5 | file://hardcodepaths.patch;patchdir=${RUSTSRC} \ | ||
6 | file://getrandom-open64.patch;patchdir=${RUSTSRC} \ | ||
7 | file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=${RUSTSRC} \ | ||
8 | file://zlib-off64_t.patch;patchdir=${RUSTSRC} \ | ||
7 | " | 9 | " |
8 | 10 | SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c" | |
9 | SRC_URI:append:class-target:pn-rust = " \ | ||
10 | file://getrandom-open64.patch \ | ||
11 | file://0001-Do-not-use-LFS64-on-linux-with-musl.patch \ | ||
12 | file://zlib-off64_t.patch \ | ||
13 | file://hardcodepaths.patch \ | ||
14 | file://crossbeam_atomic.patch" | ||
15 | SRC_URI:append:class-nativesdk:pn-nativesdk-rust = " file://hardcodepaths.patch" | ||
16 | 11 | ||
17 | RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" | 12 | RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" |
18 | 13 | ||
14 | # Used by crossbeam_atomic.patch | ||
15 | export TARGET_VENDOR | ||
16 | |||
19 | UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" | 17 | UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" |
20 | UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src" | 18 | UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src" |
21 | 19 | ||