BuildSystem: Add cmake target for debugging qemu

This commit is contained in:
Bananymous 2023-09-20 21:07:21 +03:00
parent 2a469241b2
commit b9c779ff7e
2 changed files with 8 additions and 2 deletions

View File

@ -87,7 +87,13 @@ add_custom_target(check-fs
) )
add_custom_target(qemu add_custom_target(qemu
COMMAND ${CMAKE_COMMAND} -E env BANAN_ARCH="${BANAN_ARCH}" DISK_IMAGE_PATH="${DISK_IMAGE_PATH}" ${CMAKE_SOURCE_DIR}/qemu.sh COMMAND ${CMAKE_COMMAND} -E env BANAN_ARCH="${BANAN_ARCH}" DISK_IMAGE_PATH="${DISK_IMAGE_PATH}" ${CMAKE_SOURCE_DIR}/qemu.sh -accel kvm
DEPENDS image
USES_TERMINAL
)
add_custom_target(qemu-debug
COMMAND ${CMAKE_COMMAND} -E env BANAN_ARCH="${BANAN_ARCH}" DISK_IMAGE_PATH="${DISK_IMAGE_PATH}" ${CMAKE_SOURCE_DIR}/qemu.sh -d int -no-reboot
DEPENDS image DEPENDS image
USES_TERMINAL USES_TERMINAL
) )

View File

@ -6,4 +6,4 @@ qemu-system-$BANAN_ARCH \
-smp 2 \ -smp 2 \
-drive format=raw,media=disk,file=${DISK_IMAGE_PATH} \ -drive format=raw,media=disk,file=${DISK_IMAGE_PATH} \
-serial stdio \ -serial stdio \
-accel kvm \ $@ \