From: Nicolas Serafini via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>,
Joseph Kogut <joseph.kogut@gmail.com>,
Simon Richter <simon@sinic.eu>,
David Pierret <david.pierret@smile.fr>,
Danilo Bargen <mail@dbrgn.ch>, Bernd Kuhls <bernd@kuhls.net>,
Graeme Smecher <gsmecher@threespeedlogic.com>,
Julien Olivain <ju.o@free.fr>,
Torben Voltmer <mail@t-voltmer.net>,
Nicolas Serafini <nicolas.serafini@flyability.com>,
James Hilliard <james.hilliard1@gmail.com>,
Manuel Diener <manuel.diener@oss.othermo.de>,
Alexander Shirokov <shirokovalexs@gmail.com>,
Mariusz Bialonczyk <manio@skyboo.net>,
Sam Voss <sam.voss@gmail.com>, Saeed Kazemi <kazemi.ms@gmail.com>,
Alex Michel <alex.michel@wiedemann-group.com>,
Leo Yu-Chi Liang <ycliang@andestech.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Shubham Chakraborty <chakrabortyshubham66@gmail.com>
Subject: [Buildroot] [PATCH 4/4] rust: add support for riscv64gc-unknown-linux-musl target
Date: Sat, 11 Apr 2026 00:42:21 +0200 [thread overview]
Message-ID: <20260410224221.1185631-5-nicolas.serafini@flyability.com> (raw)
In-Reply-To: <20260410224221.1185631-1-nicolas.serafini@flyability.com>
From: Mariusz Bialonczyk <manio@skyboo.net>
Signed-off-by: Mariusz Bialonczyk <manio@skyboo.net>
[rebased for rust 1.94.1]
Signed-off-by: Nicolas Serafini <nicolas.serafini@flyability.com>
---
package/rust-bin/rust-bin.hash | 2 ++
package/rustc/Config.in.host | 5 +++++
utils/update-rust | 1 +
3 files changed, 8 insertions(+)
diff --git a/package/rust-bin/rust-bin.hash b/package/rust-bin/rust-bin.hash
index b1e4ef67a2..00621d01f9 100644
--- a/package/rust-bin/rust-bin.hash
+++ b/package/rust-bin/rust-bin.hash
@@ -57,6 +57,8 @@ sha256 1ffe28904e888f7884124f08f940a330b314a1c42b502c6458604dd7cd852e82 rust-s
sha256 68060c6b0716eb9ab9aa0f570b508414362f509e29155b796a531c7e1c9543cc rust-std-1.94.1-powerpc64le-unknown-linux-gnu.tar.xz
# From https://static.rust-lang.org/dist/rust-std-1.94.1-riscv64gc-unknown-linux-gnu.tar.xz.sha256
sha256 8e223e480e8bb25aa8fec3bca936cb6343098b0af5b59a2c40abd5cca51aa3ab rust-std-1.94.1-riscv64gc-unknown-linux-gnu.tar.xz
+# From https://static.rust-lang.org/dist/rust-std-1.94.1-riscv64gc-unknown-linux-musl.tar.xz.sha256
+sha256 de9fcd9fc4e710ec74108dc3237a78f24fb4c1c6fdbc3a70682e73589933e5e5 rust-std-1.94.1-riscv64gc-unknown-linux-musl.tar.xz
# From https://static.rust-lang.org/dist/rust-std-1.94.1-s390x-unknown-linux-gnu.tar.xz.sha256
sha256 391a713446c2ef5bccc3f90058b4eff4df42f8c996c399bb760a1565adfeb193 rust-std-1.94.1-s390x-unknown-linux-gnu.tar.xz
# From https://static.rust-lang.org/dist/rust-std-1.94.1-sparc64-unknown-linux-gnu.tar.xz.sha256
diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host
index c3e9a13f39..9cd912fc74 100644
--- a/package/rustc/Config.in.host
+++ b/package/rustc/Config.in.host
@@ -58,6 +58,11 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS
BR2_RISCV_ISA_RVA && BR2_RISCV_ISA_RVF && \
BR2_RISCV_ISA_RVD && BR2_RISCV_ISA_RVC && \
BR2_TOOLCHAIN_USES_GLIBC
+ # riscv64gc-unknown-linux-musl
+ default y if BR2_RISCV_64 && BR2_RISCV_ISA_RVI && BR2_RISCV_ISA_RVM && \
+ BR2_RISCV_ISA_RVA && BR2_RISCV_ISA_RVF && \
+ BR2_RISCV_ISA_RVD && \
+ BR2_TOOLCHAIN_USES_MUSL
# s390x-unknown-linux-gnu
default y if BR2_s390x && BR2_TOOLCHAIN_USES_GLIBC
# x86_64-unknown-linux-musl
diff --git a/utils/update-rust b/utils/update-rust
index 7db3feff9c..18d7b1d1f8 100755
--- a/utils/update-rust
+++ b/utils/update-rust
@@ -52,6 +52,7 @@ RUST_TARGETS = [
"powerpc64-unknown-linux-gnu",
"powerpc64le-unknown-linux-gnu",
"riscv64gc-unknown-linux-gnu",
+ "riscv64gc-unknown-linux-musl",
"s390x-unknown-linux-gnu",
"sparc64-unknown-linux-gnu",
"x86_64-unknown-linux-gnu",
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2026-04-10 22:42 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-10 22:42 [Buildroot] [PATCH 0/4] package/rust: bump to 1.94.1 and fix bootstrap Nicolas Serafini via buildroot
2026-04-10 22:42 ` [Buildroot] [PATCH 1/4] package/rust: bump version to 1.94.1 Nicolas Serafini via buildroot
2026-04-10 22:42 ` [Buildroot] [PATCH 2/4] package/rust{, -bin}: fix bootstrap build for Rust >= 1.89.0 Nicolas Serafini via buildroot
2026-04-10 22:42 ` [Buildroot] [PATCH 3/4] package: update cargo suffix to -cargo5 and fix hashes Nicolas Serafini via buildroot
2026-04-10 22:42 ` Nicolas Serafini via buildroot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260410224221.1185631-5-nicolas.serafini@flyability.com \
--to=buildroot@buildroot.org \
--cc=alex.michel@wiedemann-group.com \
--cc=bernd@kuhls.net \
--cc=chakrabortyshubham66@gmail.com \
--cc=david.pierret@smile.fr \
--cc=eric.le.bihan.dev@free.fr \
--cc=gsmecher@threespeedlogic.com \
--cc=james.hilliard1@gmail.com \
--cc=joseph.kogut@gmail.com \
--cc=ju.o@free.fr \
--cc=kazemi.ms@gmail.com \
--cc=mail@dbrgn.ch \
--cc=mail@t-voltmer.net \
--cc=manio@skyboo.net \
--cc=manuel.diener@oss.othermo.de \
--cc=mika.westerberg@linux.intel.com \
--cc=nicolas.serafini@flyability.com \
--cc=sam.voss@gmail.com \
--cc=shirokovalexs@gmail.com \
--cc=simon@sinic.eu \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox