mirror of
https://github.com/BoredDevNL/BoredOS.git
synced 2026-05-15 10:48:38 +00:00
FEAT: Seperate run parameters for windows, mac and linux
This commit is contained in:
parent
013f0b513f
commit
36d61e3b7b
1 changed files with 17 additions and 3 deletions
20
Makefile
20
Makefile
|
|
@ -206,12 +206,26 @@ clean:
|
||||||
rm -rf $(BUILD_DIR) $(ISO_DIR) $(ISO_IMAGE)
|
rm -rf $(BUILD_DIR) $(ISO_DIR) $(ISO_IMAGE)
|
||||||
$(MAKE) -C $(SRC_DIR)/userland clean
|
$(MAKE) -C $(SRC_DIR)/userland clean
|
||||||
|
|
||||||
run: $(ISO_IMAGE)
|
run-windows: $(ISO_IMAGE)
|
||||||
|
qemu-system-x86_64 -m 4G -serial stdio -cdrom $< -boot d \
|
||||||
|
-smp 4 \
|
||||||
|
-audiodev coreaudio,id=audio0 -machine pcspk-audiodev=audio0 \
|
||||||
|
-vga std -global VGA.xres=1920 -global VGA.yres=1080 \
|
||||||
|
-drive file=disk.img,format=raw,file.locking=off
|
||||||
|
run-mac: $(ISO_IMAGE)
|
||||||
qemu-system-x86_64 -m 4G -serial stdio -cdrom $< -boot d \
|
qemu-system-x86_64 -m 4G -serial stdio -cdrom $< -boot d \
|
||||||
-smp 4 \
|
-smp 4 \
|
||||||
-audiodev coreaudio,id=audio0 -machine pcspk-audiodev=audio0 \
|
-audiodev coreaudio,id=audio0 -machine pcspk-audiodev=audio0 \
|
||||||
-netdev user,id=net0,hostfwd=udp::12346-:12345 -device virtio-net-pci,netdev=net0 \
|
|
||||||
-vga std -global VGA.xres=1920 -global VGA.yres=1080 \
|
-vga std -global VGA.xres=1920 -global VGA.yres=1080 \
|
||||||
-display cocoa,show-cursor=off \
|
-display cocoa,show-cursor=off \
|
||||||
-drive file=disk.img,format=raw,file.locking=off \
|
-drive file=disk.img,format=raw,file.locking=off \
|
||||||
-cpu max
|
-cpu max
|
||||||
|
run-linux: $(ISO_IMAGE)
|
||||||
|
qemu-system-x86_64 -m 4G -serial stdio -cdrom $< -boot d \
|
||||||
|
-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 file=disk.img,format=raw,file.locking=off \
|
||||||
|
-cpu max
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue