From Fedora Project Wiki

GRUB2 for RISC-V

This page will provide the info about how to build GRUB2 for RISCV64.

Source code

  • Get Upstream code
git clone git://git.savannah.gnu.org/grub.git
  • Fetch some patches for RISC-V build
push grub
git remote add github.com_tekkamanninja https://github.com/tekkamanninja/grub.git
git fetch github.com_tekkamanninja
git checkout github.com_tekkamanninja/riscv_devel_Nikita_V2
pop

Build