commit e929f00de69abdf0816002ed6ee49836a872e33c
parent f49253f3a8d03b36ec93857ad16e54bc247dc393
Author: Virgil Dupras <hsoft@hardcoded.net>
Date: Wed, 22 Feb 2023 21:22:54 -0500
testpc: piggy-back on pc.img instead of building the whole thing again
At the time I built that script, there was no straightforward way to do that,
but now there is. It can save quite a lot of overall build time.
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
@@ -25,8 +25,8 @@ pc.img: dusk $(ALLSRCS)
pcrun: pc.img
qemu-system-i386 $(QEMU_FLAGS) -drive file=pc.img,$(QEMU_DRVOPTS)
-pctest.img: dusk $(ALLSRCS)
- dd if=/dev/zero of=$@ bs=512 count=2880
+pctest.img: dusk pc.img
+ cp pc.img $@
./dusk < buildpctest.fs
.PHONY: testpc
diff --git a/buildpctest.fs b/buildpctest.fs
@@ -1,6 +1,6 @@
f<< /xcomp/i386/pc/build.fs
-S" pctest.img" mountImage ( drv ) 2796 buildPC
+S" pctest.img" mountImage ( drv ) FAT :mountvolume ( fat )
S" /xcomp/i386/pc/init.fs"
S" /xcomp/i386/pc/inittest.fs" rot combineInit
bye