summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordzwdz2021-10-09 11:53:38 +0000
committerdzwdz2021-10-09 11:53:38 +0000
commitd9463f6e977ce686ac7a55f22b0b25b0ce67b025 (patch)
tree768fbb673945dba63dc8c5e02f8a4238da4148d7 /Makefile
parentfaed927869451cf4070abba91b5a9cf9e32c9a6c (diff)
parentacf41ff6fee44dd24f9383d96fecd992dcb072e2 (diff)
Merge branch 'main' of github.com:dzwdz/camellia
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 08bb5d6..886de4b 100644
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,10 @@ endef
.PHONY: all boot debug lint check clean
all: out/boot.iso check
-boot: all
- qemu-system-i386 -cdrom out/boot.iso $(QFLAGS) -no-shutdown
+boot: all out/hdd
+ qemu-system-i386 -cdrom out/boot.iso $(QFLAGS) -no-shutdown \
+ -drive file=out/hdd,format=raw,media=disk
+
debug: all
qemu-system-i386 -cdrom out/boot.iso $(QFLAGS) -s -S &
@@ -59,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)