This is very much a draft still as I go along. Everything in here is subhect to change heavily, could be wrong and your mileage may vary greatly.
Everything here assumes native building on Arch POWER.
This gets a compatible GCC 13.2.1+patches & Binutils 2.41+patches along with newlib 4.1.0.
pacman -Sy base-devel riscv64-unknown-elf-newlib
git clone https://github.com/milkv-pioneer/zsbl
KCFLAGS="-march=rv64gc_zicsr_zifencei -pipe" KAFLAGS="-march=rv64gc_zicsr_zifencei" make
Generated images are in the top level directory.
git clone https://github.com/milkv-pioneer/opensbi
make PLATFORM=generic -j2
Generated firmware is located in build/platform/generic/firmware/
.