summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1d60062..7701d9d 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,9 @@ export INITRD=$(ESP_DIR)/initramfs.cpio.gz
10export BOOTLOADER=rsboot/rsboot.efi 10export BOOTLOADER=rsboot/rsboot.efi
11export OVMF=/usr/share/edk2/x64/OVMF.4m.fd 11export OVMF=/usr/share/edk2/x64/OVMF.4m.fd
12export BOOT_EFI=$(ESP_DIR)/EFI/BOOT/BOOTX64.EFI 12export BOOT_EFI=$(ESP_DIR)/EFI/BOOT/BOOTX64.EFI
13# Attach a raw disk image as the SATA drive (disk.img -> ide.0, ESP -> ide.1).
14# Create one with: mkfs.fat -F 32 -n RSDOS disk.img && mcopy -i disk.img files ::
15export DISK_IMG ?= /tmp/disk.img
13 16
14.PHONY: all run run-gui clean image debug release fmt bootloader boot-image 17.PHONY: all run run-gui clean image debug release fmt bootloader boot-image
15 18
@@ -43,7 +46,10 @@ $(INITRD): | $(ESP_DIR)
43run: all 46run: all
44 qemu-system-x86_64 \ 47 qemu-system-x86_64 \
45 -bios $(OVMF) \ 48 -bios $(OVMF) \
46 -drive file=fat:rw:$(ESP_DIR),format=raw \ 49 -drive file=$(DISK_IMG),format=raw,if=none,id=disk \
50 -device ide-hd,drive=disk,bus=ide.0 \
51 -drive file=fat:rw:$(ESP_DIR),format=raw,if=none,id=esp \
52 -device ide-hd,drive=esp,bus=ide.1 \
47 -serial stdio \ 53 -serial stdio \
48 -m 256M \ 54 -m 256M \
49 -machine q35 \ 55 -machine q35 \
@@ -54,7 +60,10 @@ run: all
54run-gui: all 60run-gui: all
55 qemu-system-x86_64 \ 61 qemu-system-x86_64 \
56 -bios $(OVMF) \ 62 -bios $(OVMF) \
57 -drive file=fat:rw:$(ESP_DIR),format=raw \ 63 -drive file=$(DISK_IMG),format=raw,if=none,id=disk \
64 -device ide-hd,drive=disk,bus=ide.0 \
65 -drive file=fat:rw:$(ESP_DIR),format=raw,if=none,id=esp \
66 -device ide-hd,drive=esp,bus=ide.1 \
58 -serial stdio \ 67 -serial stdio \
59 -m 256M \ 68 -m 256M \
60 -machine q35 \ 69 -machine q35 \
@@ -66,7 +75,10 @@ run-gui: all
66debug: all 75debug: all
67 qemu-system-x86_64 \ 76 qemu-system-x86_64 \
68 -bios $(OVMF) \ 77 -bios $(OVMF) \
69 -drive file=fat:rw:$(ESP_DIR),format=raw \ 78 -drive file=$(DISK_IMG),format=raw,if=none,id=disk \
79 -device ide-hd,drive=disk,bus=ide.0 \
80 -drive file=fat:rw:$(ESP_DIR),format=raw,if=none,id=esp \
81 -device ide-hd,drive=esp,bus=ide.1 \
70 -serial stdio \ 82 -serial stdio \
71 -m 256M \ 83 -m 256M \
72 -machine q35 \ 84 -machine q35 \