2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2025-01-09 06:25:55 +01:00
kolibrios-nvme-driver/Makefile
2024-03-28 18:43:18 -04:00

19 lines
391 B
Makefile

QEMU=qemu-system-i386
ASM=./drivers/nvme/nvme.asm
NVME_SYS=./drivers/nvme/nvme.sys
all: MOUNT
.PHONY: all
run: MOUNT
$(QEMU) -m 128 -fda ./kolibri.img -boot a -drive file=nvm.img,if=none,id=nvm -device nvme,serial=deadbeef,drive=nvm
.PHONY: run
MOUNT: $(NVME_SYS)
@mcopy -moi kolibri.img $(NVME_SYS) ::DRIVERS/NVME.SYS
.PHONY: MOUNT
$(NVME_SYS): $(ASM)
@cd ./drivers/nvme && $(MAKE)