mirror of
https://git.missingno.dev/kolibrios-nvme-driver/
synced 2025-01-03 03:15:56 +01:00
build: include debugging recipe
This commit is contained in:
parent
7bba4781fb
commit
724dad7d69
9
Makefile
9
Makefile
@ -3,14 +3,21 @@ QEMU := qemu-system-i386
|
|||||||
NVME_INC := ./drivers/nvme/nvme.inc ./drivers/nvme/macros.inc
|
NVME_INC := ./drivers/nvme/nvme.inc ./drivers/nvme/macros.inc
|
||||||
NVME_ASM := ./drivers/nvme/nvme.asm
|
NVME_ASM := ./drivers/nvme/nvme.asm
|
||||||
NVME_SYS := ./drivers/nvme/nvme.sys
|
NVME_SYS := ./drivers/nvme/nvme.sys
|
||||||
|
MEMORY := 128
|
||||||
|
IMAGE := kolibri.img
|
||||||
|
DRIVE := nvm.img
|
||||||
|
|
||||||
all: $(NVME_SYS)
|
all: $(NVME_SYS)
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
|
|
||||||
run: $(NVME_SYS)
|
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 $(MEMORY) -fda $(IMAGE) -boot a -drive file=$(DRIVE),if=none,id=nvm -device nvme,serial=deadbeef,drive=nvm
|
||||||
.PHONY: run
|
.PHONY: run
|
||||||
|
|
||||||
|
debug: $(NVME_SYS)
|
||||||
|
$(QEMU) -s -S -kernel KERNEL.MNT -m $(MEMORY) -fda $(IMAGE) -boot a -drive file=$(DRIVE),if=none,id=nvm -device nvme,serial=deadbeef,drive=nvm
|
||||||
|
.PHONY: debug
|
||||||
|
|
||||||
$(NVME_SYS): $(NVME_ASM) $(NVME_INC)
|
$(NVME_SYS): $(NVME_ASM) $(NVME_INC)
|
||||||
@cd ./drivers/nvme && $(MAKE)
|
@cd ./drivers/nvme && $(MAKE)
|
||||||
@$(MCOPY) -moi kolibri.img $(NVME_SYS) ::DRIVERS/NVME.SYS
|
@$(MCOPY) -moi kolibri.img $(NVME_SYS) ::DRIVERS/NVME.SYS
|
||||||
|
Loading…
Reference in New Issue
Block a user