1 bootx64.efi: efitest.bin hdr.asm
2 nasm -o $@ -f bin hdr.asm
4 efitest.bin: efitest.asm
8 dd if=/dev/zero of=$@ bs=1024 count=2080
12 mcopy -i $@ $< ::/EFI/BOOT
15 dd if=/dev/zero of=$@ bs=1024 count=2048
16 echo start=2048 type=ef | sfdisk $@
17 dd if=$< of=$@ bs=512 seek=2048 conv=notrunc
21 rm -f bootx64.efi efitest.bin
25 qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -hda $< -net none -serial stdio
29 qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -S -s -hda $< -net none -serial stdio
33 ndisasm -b 64 -o 0x1000 -e 4096 $< >$@