Just for your information, here's how Gentoo is doing things to stay compatible
with as many variants as possible:
PS. Stage files are here:
https://www.gentoo.org/downloads/#riscv
(rv32-ilp32 is still building, rv32 musl is waiting until the worst musl-1.2.5 issues
are ironed out...)
--
Andreas K. Hüttel
dilfridge(a)gentoo.org
Gentoo Linux developer
(council, comrel, toolchain, base-system, perl, libreoffice)
https://wiki.gentoo.org/wiki/User:Dilfridge