x86_64: cmake: add support for running qemu with debugging and stdio monitor output

This commit is contained in:
2026-04-01 19:12:15 +01:00
parent b82e8012d6
commit 0ef481c30f
+10
View File
@@ -78,6 +78,16 @@ if (LLDB)
USES_TERMINAL USES_TERMINAL
DEPENDS ${patched_kernel} bsp) DEPENDS ${patched_kernel} bsp)
add_custom_target(debug-kernel-monitor
COMMAND
${QEMU}
-kernel ${patched_kernel}
-initrd ${sys_dir}/${bsp_name}
${generic_flags}
-monitor stdio -s -S
USES_TERMINAL
DEPENDS ${patched_kernel} bsp)
if (image_cdrom) if (image_cdrom)
message(STATUS "QEMU: Enable CD-ROM debug with LLDB") message(STATUS "QEMU: Enable CD-ROM debug with LLDB")
add_custom_target(debug-cdrom add_custom_target(debug-cdrom