mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2025-01-08 22:16:13 +01:00
19 lines
391 B
Makefile
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)
|
|
|