From 7e326b5039bff4d422f66bb8e51267f785193985 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 6 Oct 2021 22:15:02 +0200 Subject: kernel/i386: implement part of ATA IDENTIFY --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 08bb5d6..7757c25 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,10 @@ endef all: out/boot.iso check boot: all - qemu-system-i386 -cdrom out/boot.iso $(QFLAGS) -no-shutdown + touch out/disk # TODO this is temporary + qemu-system-i386 -cdrom out/boot.iso $(QFLAGS) -no-shutdown \ + -drive file=out/disk,format=raw,media=disk + debug: all qemu-system-i386 -cdrom out/boot.iso $(QFLAGS) -s -S & -- cgit v1.2.3 From c52451dbe1628839c26500db42a05cfdb454afde Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 7 Oct 2021 21:33:21 +0200 Subject: make: create a 70000 sector long fake disk image --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3