Skip to content

Commit 7c0442a

Browse files
committed
scripts: qemu: directly invoke intel_ace QEMU for ptl and wcl targets
Since Zephyr's west runner doesn't generate a run target for the custom intel_ace QEMU emulator out of the box, we bypass west run entirely for PTL and WCL. The python runner now uses the explicitly requested intel_ace QEMU binary with the adsp_ace30 machine and zephyr.ri firmware image. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
1 parent dff1dd9 commit 7c0442a

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

scripts/sof-qemu-run.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,14 @@ def main():
108108
break
109109

110110
# Determine execution command
111-
run_cmd = [west_path, "-v", "build", "-d", build_dir]
112-
113-
114-
run_cmd.extend(["-t", "run"])
111+
if "ptl" in build_dir.lower() or "wcl" in build_dir.lower():
112+
qemu_bin = os.environ.get("QEMU_BIN_PATH", os.path.join(os.environ.get("SOF_WORKSPACE", os.path.abspath(os.path.join(os.path.dirname(__file__), "..", ".."))), "qemu", "build"))
113+
qemu_exe = os.path.join(qemu_bin, "qemu-system-xtensa")
114+
print(f"[sof-qemu-run] Bypassing west run explicitly for ACE30 target. Using QEMU: {qemu_exe}")
115+
fw_image = os.path.join(build_dir, "zephyr", "zephyr.ri")
116+
run_cmd = [qemu_exe, "-cpu", "ace30", "-machine", "adsp_ace30", "-kernel", fw_image, "-nographic"]
117+
else:
118+
run_cmd = [west_path, "-v", "build", "-d", build_dir, "-t", "run"]
115119

116120
if args.valgrind:
117121
if not is_native_sim:

0 commit comments

Comments
 (0)