summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzwdz2021-10-07 21:33:21 +0200
committerdzwdz2021-10-07 21:33:21 +0200
commitc52451dbe1628839c26500db42a05cfdb454afde (patch)
treec4beca9cde123f10b65d740ef20488d8e9a6ae87
parent53d3fd65b47a3e0f9c4f439022f10852d765a9ba (diff)
make: create a 70000 sector long fake disk image
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7757c25..886de4b 100644
--- a/Makefile
+++ b/Makefile
@@ -18,10 +18,9 @@ endef
.PHONY: all boot debug lint check clean
all: out/boot.iso check
-boot: all
- touch out/disk # TODO this is temporary
+boot: all out/hdd
qemu-system-i386 -cdrom out/boot.iso $(QFLAGS) -no-shutdown \
- -drive file=out/disk,format=raw,media=disk
+ -drive file=out/hdd,format=raw,media=disk
debug: all
@@ -62,6 +61,9 @@ out/fs/boot/grub/grub.cfg: grub.cfg
@mkdir -p $(@D)
@cp $< $@
+out/hdd:
+ @dd if=/dev/zero of=$@ bs=512 count=70000
+
out/obj/%.s.o: src/%.s
@mkdir -p $(@D)