Detect WSL and disable soundhw, kvm

This commit is contained in:
K. Lange 2018-08-15 19:45:25 +09:00
parent 0ac9adf3f0
commit b60381b763

View File

@ -252,7 +252,12 @@ clean:
rm -f ${MODULES}
rm -f ${APPS_Y} ${LIBS_Y}
QEMU_ARGS=-serial mon:stdio -m 1G -soundhw ac97,pcspk -enable-kvm -rtc base=localtime
ifneq (,$(findstring Microsoft,$(shell uname -r)))
QEMU_ARGS=-serial mon:stdio -m 1G -rtc base=localtime
else
QEMU_ARGS=-serial mon:stdio -m 1G -soundhw ac97,pcspk -enable-kvm -rtc base=localtime
endif
.PHONY: run
run: image.iso