Enable cross-compiling for riscv64 architecture (#7346)

Lighthouse currently lacks support for cross-compilation targeting the `riscv64` architecture.


  This PR introduces initial support for cross-compiling Lighthouse to `riscv64`. The following changes were made:

- **Makefile**: Updated to support `cross` with `riscv64` as a target.
- **Cross.toml**: Added configuration specific to `riscv64`.
- **Documentation**: List 'build-riscv64' in `book/src/installation_cross_compiling.md`.
This commit is contained in:
Robert Mordzon
2025-04-24 00:31:46 +02:00
committed by GitHub
parent c13e069c9c
commit 1dd37048b9
3 changed files with 16 additions and 1 deletions

View File

@@ -18,7 +18,8 @@ project.
The `Makefile` in the project contains two targets for cross-compiling:
- `build-x86_64`: builds an optimized version for x86_64 processors (suitable for most users).
- `build-aarch64`: builds an optimized version for 64-bit ARM processors (suitable for Raspberry Pi 4).
- `build-aarch64`: builds an optimized version for 64-bit ARM processors (suitable for Raspberry Pi 4/5).
- `build-riscv64`: builds an optimized version for 64-bit RISC-V processors.
### Example