summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-source.inc
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2023-01-07 09:48:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-12 23:08:58 +0000
commitcc9244ca70957cf1ed11ee987fc6496e3ea92567 (patch)
tree51b3b2d65a40431cf37d63cd9a63b367a38baa2a /meta/recipes-devtools/rust/rust-source.inc
parentd2410b591f3feb5264747b25ef0793516161d087 (diff)
downloadpoky-cc9244ca70957cf1ed11ee987fc6496e3ea92567.tar.gz
rust: Merge all rustc-source patches into rust-source.inc
With the dim-sum approach to patching we had the same patch applied in many places, but not all, so that there were no guarantees that we were actually building agaginst the same thing in all recipes. (From OE-Core rev: 550c273f38d8e6d2d431908023e213c6b018d7ed) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust/rust-source.inc')
-rw-r--r--meta/recipes-devtools/rust/rust-source.inc22
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 @@
1RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}" 1RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}"
2SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust"
3SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c"
4 2
5SRC_URI:append:class-target:pn-libstd-rs = "\ 3SRC_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 10SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c"
9SRC_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"
15SRC_URI:append:class-nativesdk:pn-nativesdk-rust = " file://hardcodepaths.patch"
16 11
17RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" 12RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
18 13
14# Used by crossbeam_atomic.patch
15export TARGET_VENDOR
16
19UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" 17UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
20UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src" 18UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src"
21 19