diff --git a/.gitignore b/.gitignore index d507aba..7bd368d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ isodir/ *.bin serial.log nakefile +log.txt diff --git a/nakefile.nim b/nakefile.nim index c1e5197..facbf44 100644 --- a/nakefile.nim +++ b/nakefile.nim @@ -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")