X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=Makefile;h=11d2bd2a2cdba9ace491eb7b5062e52c7502e4fc;hb=HEAD;hp=a2b0638af3146f03ecc4fe14074a9dab5c73899d;hpb=025fab14d053052e8bc3a1433aeede52d0b55b22;p=efitest3 diff --git a/Makefile b/Makefile index a2b0638..11d2bd2 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +.PHONY: all +all: disk.img + bootx64.efi: efitest.bin hdr.asm nasm -o $@ -f bin hdr.asm @@ -22,12 +25,15 @@ clean: .PHONY: run run: disk.img - qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -hda $< + qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -hda $< -net none -serial stdio .PHONY: debug debug: disk.img - qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -S -s -hda $< + qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -S -s -hda $< -net none -serial stdio disasm: bootx64.efi - ndisasm -b 64 -o 0x100000 -e 4096 $< >$@ + ndisasm -b 64 -o 0x1000 -e 4096 $< >$@ + +disasm16: bootx64.efi + ndisasm -b 16 -o 0x1000 -e 4096 $< >$@