cmake: add rule to run kernel with qemu monitor on stdio
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user