mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
Meta/run.py: Bring back SERENITY_EXTRA_QEMU_ARGS
This commit is contained in:
parent
5aa28c31d5
commit
b2377f1f9c
Notes:
sideshowbarker
2024-07-17 07:31:31 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/b2377f1f9c Pull-request: https://github.com/SerenityOS/serenity/pull/24141 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue