cmake: add rule to run kernel with qemu monitor on stdio

This commit is contained in:
2026-02-21 12:23:41 +00:00
parent 32aaacb95f
commit c476b08c03

View File

@@ -22,3 +22,12 @@ add_custom_target(debug-kernel
-o "gdb-remote localhost:1234"
USES_TERMINAL
DEPENDS ${kernel_name} bsp)
add_custom_target(run-kernel-monitor
COMMAND
${QEMU}
-kernel $<TARGET_FILE:${kernel_name}>
-initrd ${sys_dir}/${bsp_name}
-m 1G -monitor stdio
USES_TERMINAL
DEPENDS ${kernel_name} bsp)