Skip to content
Snippets Groups Projects
Commit cba53d9a authored by Nadav Har'El's avatar Nadav Har'El
Browse files

Removed scripts/run.sh, leaving the more advanced scripts/run.

To run the debug build, instead of "scripts/run.sh debug", use
"scripts/run -d".
parent b5b35b41
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
argc=$#
if [ $argc -ne 1 ]; then
echo "run.sh: default to 'release'"
v="release"
elif [[ "$1" != "release" && "$1" != "debug" ]]; then
echo "Usage: run.sh [debug|release]"
exit 1
else
v=$1
fi
qemu-system-x86_64 \
-vnc :1 \
-enable-kvm \
-gdb tcp::1234,server,nowait \
-cpu host,+x2apic \
-m 1G \
-smp 4 \
-chardev stdio,mux=on,id=stdio \
-mon chardev=stdio,mode=readline,default \
-device isa-serial,chardev=stdio \
-device virtio-net-pci \
-drive file=build/$v/loader.img,if=virtio,cache=unsafe \
-drive file=build/$v/usr.img,if=virtio,cache=unsafe
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment