Compiling Haiku for RISCV64
Haiku can be compiled for devices using the RISC-V 64bit processor architecture. (RV64GC)
Please ensure that you have obtained a copy of Haiku’s source code as described in Get the Haiku Source Code if you have not already done so.
The state of the RISC-V port is early. Only the bootloader currently runs.
Create a compiler toolchain
Building the RISCV64 compiler toolchain is quite easy using Haiku’s
For a complete list of flags for the configure script, see Haiku’s Configure Options
- Perform a git clone haiku and buildtools
- Within the haiku source directory, create your workspace for RISCV64 via
mkdir generated.riscv64; cd generated.riscv64
- Run configure to build your RISCV64 toolchain.
../configure --use-gcc-pipe -j4 --cross-tools-source ../../buildtools --build-cross-tools riscv64
Building a filesystem image
Once you have a complete RISCV64 toolchain, you can build a Haiku filesystem image via
jam -j2 -q @minimum-mmc
The generated filesystem image can be booted under a RISCV64 UEFI BIOS