2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2024-12-23 06:18:47 +01:00
kolibrios-nvme-driver/Makefile
2024-04-20 20:28:06 -04:00

21 lines
538 B
Makefile

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