cmake: fix debug qemu rules using wrong kernel executable
This commit is contained in:
@@ -66,7 +66,7 @@ if (LLDB)
|
||||
add_custom_target(debug-kernel
|
||||
COMMAND
|
||||
${QEMU}
|
||||
-kernel $<TARGET_FILE:${kernel_name}>
|
||||
-kernel ${patched_kernel}
|
||||
-initrd ${sys_dir}/${bsp_name}
|
||||
${generic_flags}
|
||||
-s -S &
|
||||
@@ -74,7 +74,7 @@ if (LLDB)
|
||||
-o "file ${CMAKE_BINARY_DIR}/kernel/${kernel_name}.debug"
|
||||
-o "gdb-remote localhost:1234"
|
||||
USES_TERMINAL
|
||||
DEPENDS ${kernel_name} bsp)
|
||||
DEPENDS ${patched_kernel} bsp)
|
||||
|
||||
if (image_cdrom)
|
||||
message(STATUS "QEMU: Enable CD-ROM debug with LLDB")
|
||||
@@ -95,7 +95,7 @@ elseif (GDB)
|
||||
add_custom_target(debug-kernel
|
||||
COMMAND
|
||||
${QEMU}
|
||||
-kernel $<TARGET_FILE:${kernel_name}>
|
||||
-kernel ${patched_kernel}
|
||||
-initrd ${sys_dir}/${bsp_name}
|
||||
${generic_flags}
|
||||
-s -S &
|
||||
@@ -103,7 +103,7 @@ elseif (GDB)
|
||||
-o "file ${CMAKE_BINARY_DIR}/kernel/${kernel_name}.debug"
|
||||
-o "remote localhost:1234"
|
||||
USES_TERMINAL
|
||||
DEPENDS ${kernel_name} bsp)
|
||||
DEPENDS ${patched_kernel} bsp)
|
||||
|
||||
if (image_cdrom)
|
||||
message(STATUS "QEMU: Enable CD-ROM debug with GDB")
|
||||
|
||||
Reference in New Issue
Block a user