From 0557174a67d3cfa4fe904f140f9f445414a4dcb1 Mon Sep 17 00:00:00 2001 From: boreddevnl Date: Sat, 9 May 2026 21:55:36 +0200 Subject: [PATCH] feat: Add seperate runtime parameters for run-hd for windows and linux --- Makefile | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ba62921..1ba74dd 100644 --- a/Makefile +++ b/Makefile @@ -76,7 +76,7 @@ NASMFLAGS = -f elf64 LIMINE_VERSION = 10.8.2 LIMINE_URL_BASE = https://github.com/limine-bootloader/limine/raw/v$(LIMINE_VERSION) -.PHONY: all clean run limine-setup run-windows run-mac run-linux +.PHONY: all clean run limine-setup run-windows run-mac run-linux run-hd-mac run-hd-windows run-hd-linux all: $(call PRINT_STEP,STARTING BOREDOS BUILD) @@ -420,8 +420,8 @@ $(OVMF_VARS): cp $(OVMF_VARS_TMPL) $(OVMF_VARS); \ fi -run-hd: disk.qcow2 $(OVMF_VARS) - $(call PRINT_STEP,BOOTING BOREDOS FROM HARD DRIVE) +run-hd-mac: disk.qcow2 $(OVMF_VARS) + $(call PRINT_STEP,BOOTING BOREDOS FROM HARD DRIVE ON MACOS) qemu-system-x86_64 -m 4G -serial stdio -boot c \ -smp 4 \ -audiodev coreaudio,id=audio0 -machine pcspk-audiodev=audio0 \ @@ -443,3 +443,26 @@ run-linux: $(ISO_IMAGE) disk.qcow2 -display gtk,show-cursor=off \ -device ahci,id=ahci -drive file=disk.qcow2,format=qcow2,if=none,id=disk0 -device ide-hd,bus=ahci.0,drive=disk0 \ -cpu max + +run-hd-windows: disk.qcow2 + $(call PRINT_STEP,BOOTING BOREDOS FROM HARD DRIVE ON WINDOWS) + qemu-system-x86_64 -m 4G -serial stdio -boot c \ + -smp 4 \ + -audiodev dsound,id=audio0 -machine pcspk-audiodev=audio0 \ + -vga std -global VGA.xres=1920 -global VGA.yres=1080 \ + -device ahci,id=ahci \ + -drive file=disk.qcow2,format=qcow2,if=none,id=disk0 -device ide-hd,bus=ahci.0,drive=disk0 \ + -cpu max + +run-hd-linux: disk.qcow2 $(OVMF_VARS) + $(call PRINT_STEP,BOOTING BOREDOS FROM HARD DRIVE ON LINUX) + qemu-system-x86_64 -m 4G -serial stdio -boot c \ + -smp 4 \ + -audiodev pa,id=audio0 -machine pcspk-audiodev=audio0 \ + -vga std -global VGA.xres=1920 -global VGA.yres=1080 \ + -display gtk,show-cursor=off \ + -drive if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/OVMF_CODE.fd \ + -drive if=pflash,format=raw,file=$(OVMF_VARS) \ + -device ahci,id=ahci \ + -drive file=disk.qcow2,format=qcow2,if=none,id=disk0 -device ide-hd,bus=ahci.0,drive=disk0 \ + -cpu max