Skip to content

Commit 4eade40

Browse files
QEMU: Allow baremetal software with bios only
FreeRTOS only runs in M-Mode with the -bios flag without a kernel nor a disk image (typically).
1 parent 929fd7c commit 4eade40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pycheribuild/qemu_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ def get_commandline(
176176
write_disk_image_changes=True,
177177
gui_options: "Optional[list[str]]" = None,
178178
) -> "list[str]":
179-
if kernel_file is None and disk_image is None:
180-
raise ValueError("Must pass kernel and/or disk image path when launching QEMU")
179+
#if bios_args is None and kernel_file is None and disk_image is None:
180+
# raise ValueError("Must pass kernel and/or disk image path when launching QEMU")
181181
if qemu_command is None:
182182
qemu_command = self.get_qemu_binary()
183183
result = [str(qemu_command)]

0 commit comments

Comments
 (0)