~eliasnaur/unik

unik/build.sh -rwxr-xr-x 330 bytes
caafbe1aElias Naur virtio/gpu: improve the error message for when Qemu is too old 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

set -e

mkdir -p bootdrive/EFI/BOOT
go build -ldflags="-E eliasnaur.com/unik/kernel.rt0 -T 0x1700000" -o bootdrive/KERNEL.ELF $@
cp uefi/loader.efi bootdrive/EFI/BOOT/BOOTX64.EFI

# Create disk image
rm -f boot.img
dd if=/dev/zero of=boot.img bs=1M count=20
mformat -i boot.img ::/
mcopy -i boot.img -s bootdrive/* ::/