Skip to content

Commit d924a19

Browse files
aero.py: set qemu binary path
Signed-off-by: Andy-Python-Programmer <[email protected]>
1 parent 16e0c81 commit d924a19

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

aero.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,13 @@ def run_in_emulator(build_info: BuildInfo, iso_path):
496496
log_error("unknown target architecture")
497497
exit(1)
498498

499-
qemu_binary = f'qemu-system-{build_info.target_arch}'
499+
qemu_binary = os.getenv("QEMU_PATH")
500+
if not qemu_binary:
501+
qemu_binary = f'qemu-system-{build_info.target_arch}'
502+
else:
503+
qemu_binary = os.path.join(qemu_binary, f'qemu-system-{build_info.target_arch}');
504+
505+
log_info(f"{qemu_binary} {' '.join(qemu_args)}")
500506
run_command([qemu_binary, *qemu_args])
501507

502508

0 commit comments

Comments
 (0)