opensbi
opensbi copied to clipboard
on m1 macbook pro, riscv64-unknown-unknown-elf
I just run make and got an error
error: unable to create target: 'No available targets are compatible with triple "riscv64-unknown-unknown-elf"'

You need a compiler that can compile to RISC-V machine code, Apple's Clang fork can't. Consider using a non-Apple version of LLVM. You can use CC, AR, LD and OBJCOPY to set different build tools.