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:
parent
06cfd44233
commit
634a199176
22
Makefile
22
Makefile
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user