Skip to content

Commit

Permalink
scripts/vm-util: Default to UEFI for RISC-V
Browse files Browse the repository at this point in the history
  • Loading branch information
avdgrinten committed Nov 24, 2024
1 parent 12a0c64 commit 89c1d0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/vm-util.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def parse_device(yml, *, bus_id=None, device_id=None):
return args

def do_qemu(args):
# Default to --uefi for RISC-V.
if args.arch == "riscv64":
if args.uefi is None:
args.uefi = True

qemu = os.environ.get("QEMU")

if not qemu:
Expand Down Expand Up @@ -466,7 +471,7 @@ def do_qemu(args):
qemu_parser.add_argument("--usb-passthrough-pcap", type=str, action='append')
qemu_parser.add_argument("--usb-redir", type=str, action='append')
qemu_parser.add_argument("--usb-serial", action='store_true')
qemu_parser.add_argument("--uefi", action="store_true")
qemu_parser.add_argument("--uefi", action=argparse.BooleanOptionalAction)
qemu_parser.add_argument("--ovmf-logs", action="store_true")
qemu_parser.add_argument("--cmd", type=str)
qemu_parser.add_argument("--qmp", action="store_true")
Expand Down

0 comments on commit 89c1d0c

Please sign in to comment.