kernel/run.sh

23 lines
495 B
Bash
Executable File

#!/bin/bash
EMUFLAGS="-no-reboot -m 256M -cdrom build/noxos.iso -chardev stdio,id=log,logfile=noxos.log -serial chardev:log"
emulate() {
echo "<=====| Emulating with disabled debug mode |=====>"
qemu-system-x86_64 $EMUFLAGS
}
# qemu will wait for gdb to connect, before booting
emulate_debug() {
echo "<=====| Emulating in debug mode |=====>"
qemu-system-x86_64 -s -S $EMUFLAGS
}
case $1 in
"debug")
emulate_debug
;;
*)
emulate
;;
esac