Meta/run.py: Bring back SERENITY_EXTRA_QEMU_ARGS

This commit is contained in:
Hendiadyoin1 2024-03-06 20:31:55 +01:00 committed by Andrew Kaster
parent 5aa28c31d5
commit b2377f1f9c
Notes: sideshowbarker 2024-07-17 07:31:31 +09:00

View file

@ -18,6 +18,7 @@ from pathlib import Path
from shutil import which
from subprocess import run
from typing import Any, Callable, Literal
import shlex
QEMU_MINIMUM_REQUIRED_MAJOR_VERSION = 6
QEMU_MINIMUM_REQUIRED_MINOR_VERSION = 2
@ -826,6 +827,8 @@ def assemble_arguments(config: Configuration) -> list[str | Path]:
boch_src = Path(config.serenity_src or ".", "Meta/bochsrc")
return [config.bochs_binary, "-q", "-f", boch_src]
passed_qemu_args = shlex.split(environ.get("SERENITY_EXTRA_QEMU_ARGS", ""))
return [
config.qemu_binary or "",
# Deviate from standard order here:
@ -851,6 +854,7 @@ def assemble_arguments(config: Configuration) -> list[str | Path]:
*config.network_default_arguments,
*config.boot_drive_arguments,
*config.character_device_arguments,
*passed_qemu_args,
]