The perfect emulation setup to study and develop the Linux kernel v5.4.3, kernel modules, QEMU, gem5 and x86_64, ARMv7 and ARMv8 userland and baremetal assembly, ANSI C, C++ and POSIX. GDB step debug and KGDB just work. Powered by Buildroot and crosstool-NG. Highly automated. Thoroughly documented. Automated tests. "Tested" in an Ubuntu 24.04 host.
do it on the same version of buildroot as in this repo, currently 2020.08.1 + two minor patches, hopefully we can avoid changing buildroot version as it can break other things unexpectedly
Once that works, it is just a matter of adding more if/elses to every existing aarch64 if/else in this repo.
Send PR and I'll gladly merge. I have booted RISC-V buildroot on QEMU in the past, so definitely doable, wasn't hard. Try this config: https://github.com/buildroot/buildroot/blob/master/configs/qemu_riscv64_virt_defconfig