~vdupras/duskbsd-qemu

60f5cb7bdafdb8b207faae99ad5b3fd4afcb27c5 — Virgil Dupras 1 year, 2 months ago 1f9edc6
Rebuild kernel on any change in usr/src/sys

This avoids the need for "make clean run" all the time.
1 files changed, 2 insertions(+), 2 deletions(-)

M Makefile
M Makefile => Makefile +2 -2
@@ 33,7 33,7 @@ usr/src/obj/tools: usr/src/build.sh | usr/src/share usr/src/external/gpl3 usr/sr
$(CONFTGT): $(CONF) | usr/src/sys/README.md
	cp $(CONF) $(CONFTGT)

$(KERNEL): $(CONFTGT) usr/src/obj/tools
$(KERNEL): $(CONFTGT) $(shell find usr/src/sys) usr/src/obj/tools
	cd usr/src && $(BUILDSH) kernel=$(CONFTGTNAME)

mbr.bin: mbr.asm


@@ 44,7 44,7 @@ duskos/README.md:
	git submodule update

$(KEXEC): | duskos/README.md
	make -C duskos/netbsd kexec
	$(MAKE) -C duskos/netbsd kexec

fat.img: mbr.bin $(KEXEC)
	dd if=/dev/zero of=$@ bs=1M count=10