From 677725d351831f003004c541b49150266c829489 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 26 Mar 2025 23:55:20 -0400 Subject: kvm on linux only --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4f4fef9..3cf44fe 100644 --- a/Makefile +++ b/Makefile @@ -2,15 +2,19 @@ .PHONY: build clean qemu .SILENT: +UNAME := $(shell uname) + QEMU = qemu-system-i386 QEMUOPTS = -drive file=bin/disk.img,index=0,media=disk,format=raw \ -no-reboot -d cpu_reset \ -serial mon:stdio \ -m 4G \ - -display sdl \ - -enable-kvm \ -name kern +ifeq ($(UNAME), Linux) +QEMUOPTS += -enable-kvm -display sdl +endif + qemu: bin/disk.img $(QEMU) $(QEMUOPTS) -- cgit v1.2.3-freya