diff options
| author | Alex Kiernan <alex.kiernan@gmail.com> | 2023-01-07 09:48:39 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-12 23:08:58 +0000 |
| commit | cc9244ca70957cf1ed11ee987fc6496e3ea92567 (patch) | |
| tree | 51b3b2d65a40431cf37d63cd9a63b367a38baa2a /meta/recipes-devtools/rust/rust-source.inc | |
| parent | d2410b591f3feb5264747b25ef0793516161d087 (diff) | |
| download | poky-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.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 | ||
