set -e

cargo build --target aarch64-unknown-none

cd "$(dirname "$0")"

llvm-objcopy -O binary ../target/aarch64-unknown-none/debug/nova ../target/aarch64-unknown-none/debug/kernel8.img

qemu-system-aarch64 \
  -M raspi3b \
  -cpu cortex-a53 \
  -serial stdio \
  -sd ../sd.img \
  -kernel ../target/aarch64-unknown-none/debug/kernel8.img \
