linux/Documentation/rust
Miguel Ojeda 70a57b2472
RISC-V: enable building 64-bit kernels with rust support
The rust modules work on 64-bit RISC-V, with no twiddling required.
Select HAVE_RUST and provide the required flags to kbuild so that the
modules can be used. The Makefile and Kconfig changes are lifted from
work done by Miguel in the Rust-for-Linux tree, hence his authorship.
Following the rabbit hole, the Makefile changes originated in a script,
created based on config files originally added by Gary, hence his
co-authorship.

32-bit is broken in core rust code, so support is limited to 64-bit:
ld.lld: error: undefined symbol: __udivdi3

As 64-bit RISC-V is now supported, add it to the arch support table.

Co-developed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Co-developed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240409-silencer-book-ce1320f06aab@spud
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2024-04-28 14:50:34 -07:00
..
arch-support.rst RISC-V: enable building 64-bit kernels with rust support 2024-04-28 14:50:34 -07:00
coding-guidelines.rst rust: support srctree-relative links 2023-12-21 20:54:17 +01:00
general-information.rst docs: rust: Move testing to a separate page 2024-02-18 21:22:27 +01:00
index.rst docs: rust: Move testing to a separate page 2024-02-18 21:22:27 +01:00
quick-start.rst docs: rust: Clarify that 'rustup override' applies to build directory 2023-12-21 22:47:40 +01:00
testing.rst docs: rust: Add description of Rust documentation test as KUnit ones 2024-02-18 21:22:27 +01:00