Added optional debug mode that sends qemu output to a file.

This commit is contained in:
neviyn 2018-05-08 01:57:09 +01:00
parent 908297007d
commit ada7e292f8
2 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -5,4 +5,5 @@ isodir/
*.bin
serial.log
nakefile
log.txt

View File

@ -57,6 +57,13 @@ task "debug", "Runs the operating system using QEMU with debug build and flags."
echo "Running in Qemu."
direShell("qemu-system-i386 -drive format=raw,file=" & outputIso ,"-serial stdio -no-reboot -no-shutdown -d int,cpu_reset")
task "debug-log", "Runs the operating system using QEMU with debug build and flags, logs to file.":
runTask("build")
runTask("build-disc")
echo "Running in Qemu."
removeFile("log.txt")
direShell("qemu-system-i386 -drive format=raw,file=" & outputIso ,"-serial stdio -no-reboot -no-shutdown -d int,cpu_reset &> log.txt")
task "run", "Runs the operating system using QEMU.":
runTask("build-release")
runTask("build-disc")