mirror of
https://git.yoctoproject.org/poky
synced 2026-03-16 04:09:39 +01:00
rust: update 1.57.0 -> 1.58.0
(From OE-Core rev: 43895e2967b2c80f4ee353b33ffe422ea7590ff1) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1039ad104e
commit
e5ce164931
@@ -27,7 +27,7 @@ GOVERSION ?= "1.17%"
|
||||
# This can not use wildcards like 8.0.% since it is also used in mesa to denote
|
||||
# llvm version being used, so always bump it with llvm recipe version bump
|
||||
LLVMVERSION ?= "12.0.1"
|
||||
RUSTVERSION ?= "1.57.0"
|
||||
RUSTVERSION ?= "1.58%"
|
||||
|
||||
PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
|
||||
PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 4e188d047dee33a19902113a3c90cdf1d8310a9e Mon Sep 17 00:00:00 2001
|
||||
From 8b86ecf87cf3589861b458f099572ad8487fc6cc Mon Sep 17 00:00:00 2001
|
||||
From: Ralf Anton Beier <ralf_beier@me.com>
|
||||
Date: Sun, 8 Aug 2021 11:05:06 +0200
|
||||
Subject: [PATCH 5/8] Add base definitions for riscv64 + musl
|
||||
Subject: [PATCH 1/4] Add base definitions for riscv64 + musl
|
||||
|
||||
https://github.com/rust-lang/libc/pull/1994/commits/030a07761f61f3293d53752e60edbd330a9d718d
|
||||
|
||||
@@ -10,10 +10,12 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
|
||||
---
|
||||
.../src/unix/linux_like/linux/musl/b64/mod.rs | 3 +
|
||||
.../linux_like/linux/musl/b64/riscv64/mod.rs | 867 ++++++++++++++++++
|
||||
2 files changed, 870 insertions(+)
|
||||
create mode 100644 vendor/libc-0.2.98/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
|
||||
.../linux_like/linux/musl/b64/riscv64/mod.rs | 832 ++++++++++++++++++
|
||||
2 files changed, 835 insertions(+)
|
||||
create mode 100644 vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
|
||||
|
||||
diff --git a/vendor/libc/src/unix/linux_like/linux/musl/b64/mod.rs b/vendor/libc/src/unix/linux_like/linux/musl/b64/mod.rs
|
||||
index cfcdaaecf..7261b95d2 100644
|
||||
--- a/vendor/libc/src/unix/linux_like/linux/musl/b64/mod.rs
|
||||
+++ b/vendor/libc/src/unix/linux_like/linux/musl/b64/mod.rs
|
||||
@@ -163,6 +163,9 @@ cfg_if! {
|
||||
@@ -26,6 +28,9 @@ Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
|
||||
} else {
|
||||
// Unknown target_arch
|
||||
}
|
||||
diff --git a/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs b/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
|
||||
new file mode 100644
|
||||
index 000000000..c656189c4
|
||||
--- /dev/null
|
||||
+++ b/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
|
||||
@@ -0,0 +1,832 @@
|
||||
@@ -861,3 +866,6 @@ Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
|
||||
+pub const SYS_process_madvise: ::c_long = 440;
|
||||
+pub const SYS_epoll_pwait2: ::c_long = 441;
|
||||
+pub const SYS_mount_setattr: ::c_long = 442;
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 4319893ebb7fca8bbd2bffc4bddb8d3ecdc08cc2 Mon Sep 17 00:00:00 2001
|
||||
From bd805ef63035ecefa03f67d5ab2e1d79f7daf9bc Mon Sep 17 00:00:00 2001
|
||||
From: Ralf Anton Beier <ralf_beier@me.com>
|
||||
Date: Sun, 8 Aug 2021 11:07:21 +0200
|
||||
Subject: [PATCH 6/8] FIXUP: linux/musl/mod.rs: add riscv64 to b64 set
|
||||
Subject: [PATCH 2/4] FIXUP: linux/musl/mod.rs: add riscv64 to b64 set
|
||||
|
||||
https://github.com/rust-lang/libc/pull/1994/commits/30070c822be2ef399b2ba38cdc1d72ac694d65a3
|
||||
|
||||
@@ -9,12 +9,14 @@ Upstream-Status: Submitted [https://github.com/rust-lang/libc/pull/2537]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
|
||||
---
|
||||
vendor/libc-0.2.98/src/unix/linux_like/linux/musl/mod.rs | 3 ++-
|
||||
vendor/libc/src/unix/linux_like/linux/musl/mod.rs | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/vendor/libc/src/unix/linux_like/linux/musl/mod.rs b/vendor/libc/src/unix/linux_like/linux/musl/mod.rs
|
||||
index df596e968..1ab13a712 100644
|
||||
--- a/vendor/libc/src/unix/linux_like/linux/musl/mod.rs
|
||||
+++ b/vendor/libc/src/unix/linux_like/linux/musl/mod.rs
|
||||
@@ -709,7 +709,8 @@ cfg_if! {
|
||||
@@ -765,7 +765,8 @@ cfg_if! {
|
||||
target_arch = "aarch64",
|
||||
target_arch = "mips64",
|
||||
target_arch = "powerpc64",
|
||||
@@ -24,3 +26,6 @@ Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
|
||||
mod b64;
|
||||
pub use self::b64::*;
|
||||
} else if #[cfg(any(target_arch = "x86",
|
||||
--
|
||||
2.20.1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
From 9d240d05c6e6620f36e4ddbcbcb5862fb3269d9f Mon Sep 17 00:00:00 2001
|
||||
From a811c933372b18b98fdef3d5901b512131b27b1c Mon Sep 17 00:00:00 2001
|
||||
From: Ralf Anton Beier <ralf_beier@me.com>
|
||||
Date: Sun, 8 Aug 2021 11:09:17 +0200
|
||||
Subject: [PATCH 7/8] FIXUP Correct definitions to match musl
|
||||
Subject: [PATCH 3/4] FIXUP Correct definitions to match musl
|
||||
|
||||
https://github.com/rust-lang/libc/pull/1994/commits/5f6a4d9745c79c81be63c708515ab116786554a3
|
||||
|
||||
@@ -9,9 +9,11 @@ Upstream-Status: Submitted [https://github.com/rust-lang/libc/pull/2537]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
|
||||
---
|
||||
.../linux_like/linux/musl/b64/riscv64/mod.rs | 708 ++++++++----------
|
||||
1 file changed, 311 insertions(+), 397 deletions(-)
|
||||
.../linux_like/linux/musl/b64/riscv64/mod.rs | 655 +++++++++---------
|
||||
1 file changed, 312 insertions(+), 343 deletions(-)
|
||||
|
||||
diff --git a/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs b/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
|
||||
index c656189c4..1799539c2 100644
|
||||
--- a/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
|
||||
+++ b/vendor/libc/src/unix/linux_like/linux/musl/b64/riscv64/mod.rs
|
||||
@@ -191,351 +191,8 @@ s! {
|
||||
@@ -366,7 +368,7 @@ Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
|
||||
pub const SYS_read: ::c_long = 63;
|
||||
pub const SYS_write: ::c_long = 64;
|
||||
pub const SYS_close: ::c_long = 57;
|
||||
@@ -830,3 +487,315 @@ pub const SYS_faccessat2: ::c_long = 439
|
||||
@@ -830,3 +487,315 @@ pub const SYS_faccessat2: ::c_long = 439;
|
||||
pub const SYS_process_madvise: ::c_long = 440;
|
||||
pub const SYS_epoll_pwait2: ::c_long = 441;
|
||||
pub const SYS_mount_setattr: ::c_long = 442;
|
||||
@@ -682,3 +684,6 @@ Signed-off-by: Ralf Anton Beier <ralf_beier@me.com>
|
||||
+extern "C" {
|
||||
+ pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
|
||||
+}
|
||||
--
|
||||
2.20.1
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,11 +0,0 @@
|
||||
require rust-source.inc
|
||||
require libstd-rs.inc
|
||||
|
||||
SRC_URI += " \
|
||||
file://0005-Add-base-definitions-for-riscv64-musl-libc.patch;patchdir=../../ \
|
||||
file://0006-FIXUP-linux-musl-mod.rs-add-riscv64-to-b64-set.patch;patchdir=../../ \
|
||||
file://0007-FIXUP-Correct-definitions-to-match-musl.patch;patchdir=../../ \
|
||||
file://0008-Update-checksums-for-modified-files-for-rust.patch;patchdir=../../ \
|
||||
"
|
||||
# libstd moved from src/libstd to library/std in 1.47+
|
||||
S = "${RUSTSRC}/library/std"
|
||||
12
meta/recipes-devtools/rust/libstd-rs_1.58.0.bb
Normal file
12
meta/recipes-devtools/rust/libstd-rs_1.58.0.bb
Normal file
@@ -0,0 +1,12 @@
|
||||
require rust-source.inc
|
||||
require libstd-rs.inc
|
||||
|
||||
SRC_URI += " \
|
||||
file://0001-Add-base-definitions-for-riscv64-musl.patch;patchdir=../../ \
|
||||
file://0002-FIXUP-linux-musl-mod.rs-add-riscv64-to-b64-set.patch;patchdir=../../ \
|
||||
file://0003-FIXUP-Correct-definitions-to-match-musl.patch;patchdir=../../ \
|
||||
file://0004-Update-checksums-for-modified-files-for-rust.patch;patchdir=../../ \
|
||||
"
|
||||
|
||||
# libstd moved from src/libstd to library/std in 1.47+
|
||||
S = "${RUSTSRC}/library/std"
|
||||
@@ -2,17 +2,17 @@
|
||||
## snapshot info is taken from rust/src/stage0.txt
|
||||
## TODO: find a way to add additional SRC_URIs based on the contents of an
|
||||
## earlier SRC_URI.
|
||||
RS_VERSION = "1.56.1"
|
||||
CARGO_VERSION = "1.56.1"
|
||||
RS_VERSION = "1.57.0"
|
||||
CARGO_VERSION = "1.57.0"
|
||||
|
||||
# TODO: Add hashes for other architecture toolchains as well. Make a script?
|
||||
SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "b01011cbb5503c456ecc6a557a38e099994b8497df545c661ce8fd48c5beadc6"
|
||||
SRC_URI[rustc-snapshot-x86_64.sha256sum] = "a7001d1218b62d377cab15522d1b1c376b073c05f7d0ff32cf278871a5eeda3d"
|
||||
SRC_URI[cargo-snapshot-x86_64.sha256sum] = "dfed65a50e2b58b6807c1fb6f8afa7abd5c3b22c682d505721d615823687c708"
|
||||
SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "ccdc72d06c90841b7227ec3630337881eeda3da5fbe87328d2e9d705f6f8016c"
|
||||
SRC_URI[rustc-snapshot-x86_64.sha256sum] = "c42f40c5279a3a9d539cae93dbcab9d333777ad9a60a5b9f1086b874ef63db86"
|
||||
SRC_URI[cargo-snapshot-x86_64.sha256sum] = "ed2013713ae742895af5df8d91c5430ba9ba3c781e3bc7f3471b220cc06d565d"
|
||||
|
||||
SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "a83416d15354e4dfa1c1e4a756282c6be7169679f2b04eca82ed34e2116b93f0"
|
||||
SRC_URI[rustc-snapshot-aarch64.sha256sum] = "77aec6a8c5f3d33941c79a48cda3bb08878c23dd1947dc027dfe5c4da41305b3"
|
||||
SRC_URI[cargo-snapshot-aarch64.sha256sum] = "3d263eb1871b5d6ca4b198b9611925923e9353e1f5c2becf8c7b784298e88743"
|
||||
SRC_URI[rust-std-snapshot-aarch64.sha256sum] = "3618da916a0f92f241cf1d67d04bb57835b303cf2047b57dc2f2487b89a4fc1f"
|
||||
SRC_URI[rustc-snapshot-aarch64.sha256sum] = "f26811e48d03c56c125de03d389e1ae7c6df36990953c1670c6a5676bc12d4cb"
|
||||
SRC_URI[cargo-snapshot-aarch64.sha256sum] = "6d11cd94618d80cda273eeeae7285980445f61a49ebacc616777b482a41cbf3f"
|
||||
|
||||
SRC_URI += " \
|
||||
https://static.rust-lang.org/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
SRC_URI += "https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz;name=rust"
|
||||
SRC_URI[rust.sha256sum] = "fad07ea1daf9c6195c32e6e9c43ece4565c5f2f1de3c3771574790d6abbc9704"
|
||||
SRC_URI[rust.sha256sum] = "37dce222b82a438e550ccd5e45ca9bad1c57aa7acc7adfec6a897c4ff94b6485"
|
||||
|
||||
RUSTSRC = "${WORKDIR}/rustc-${PV}-src"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user