X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=Makefile;h=4b8184f3c5e0ec58c5d5f747d9aaee5d5c19e8d2;hb=61b721d365efaaae4d5ebb8d13972faa697be54b;hp=362c429255dcef90992572cfe584f70047864f6c;hpb=d0a849ffeb541a8c285a92558cedcd6611072540;p=rrq%2Fjonasforth.git diff --git a/Makefile b/Makefile index 362c429..4b8184f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ .PHONY: qemu -qemu: out/main OVMF_CODE.fd OVMF_VARS.fd +qemu: out/main out/startup.nsh OVMF_CODE.fd OVMF_VARS.fd # Based on https://wiki.osdev.org/UEFI#Emulation_with_QEMU_and_OVMF qemu-system-x86_64 -cpu qemu64 \ -drive if=pflash,format=raw,unit=0,file=OVMF_CODE.fd,readonly=on \ @@ -18,6 +18,13 @@ out/main: main.asm impl.asm bootstrap.asm sys.f os/uefi.asm mkdir -p out OS_INCLUDE=os/uefi.asm fasm $< $@ +out/startup.nsh: + mkdir -p out + echo 'fs0:main' >out/startup.nsh + +main: main.asm impl.asm bootstrap.asm sys.f os/linux.asm + OS_INCLUDE=os/linux.asm fasm $< $@ + .PHONY: clean clean: rm -rf out OVMF_CODE.fd OVMF_VARS.fd