mirror of
https://github.com/kenshineto/kern.git
synced 2025-04-19 16:57:25 +00:00
kvm on linux only
This commit is contained in:
parent
fbdc3d9e11
commit
677725d351
1 changed files with 6 additions and 2 deletions
8
Makefile
8
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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue