Skip to content

Commit 3d6bcb3

Browse files
committed
qemu: Add paths to riscv64 efi binaries
Verified on Ubuntu 24.04, Debian 13 and Fedora 42. Signed-off-by: Joel Stanley <[email protected]>
1 parent 2adaf1d commit 3d6bcb3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/qemu/qemu.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,10 @@ func getFirmware(qemuExe string, arch limayaml.Arch) (string, error) {
12161216
// Fedora package "edk2-arm"
12171217
candidates = append(candidates, "/usr/share/AAVMF/AAVMF32_CODE.fd")
12181218
case limayaml.RISCV64:
1219-
// NOP, as EDK2 for RISCV64 is not packaged yet in well-known distros.
1219+
// Debian package "qemu-efi-riscv64"
1220+
candidates = append(candidates, "/usr/share/qemu-efi-riscv64/RISCV_VIRT_CODE.fd")
1221+
// Fedora package "edk2-riscv64"
1222+
candidates = append(candidates, "/usr/share/edk2/riscv/RISCV_VIRT_CODE.fd")
12201223
}
12211224

12221225
logrus.Debugf("firmware candidates = %v", candidates)

0 commit comments

Comments
 (0)