2
0
mirror of https://git.missingno.dev/kolibrios-nvme-driver/ synced 2025-01-31 01:30:05 +01:00

fix nvme.sys dependencies

This commit is contained in:
ramenu 2024-04-20 20:28:06 -04:00
parent 06cfd44233
commit 634a199176
2 changed files with 18 additions and 13 deletions

View File

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

View File

@ -1,9 +1,12 @@
RM = rm
FASM = fasm FASM = fasm
KPACK = kpack KPACK = kpack
all: all:
$(FASM) nvme.asm @$(FASM) nvme.asm
$(KPACK) nvme.sys @$(KPACK) nvme.sys
.PHONY: all
clean: clean:
rm *.sys @$(RM) ./*.sys
.PHONY: clean