From 241b00df51161a037ab8733d678fd2bbfc2454e1 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Thu, 15 Jun 2017 16:52:55 +0200 Subject: [PATCH] Allow to configure QEMU_OPTIONS to disable -enable-kvm Not all environments have access to KVM support. For example if you already work inside a VM (Qubes OS). --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 440e328..ca78384 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,8 @@ all: list_laptops .PHONY: all +QEMU_OPTIONS ?= -enable-kvm + GITVERSION = $(shell git describe --dirty --abbrev=6 ) ($(shell date +%Y%m%d)) BUILDINFO = $(GITVERSION) $(MAKECMDGOALS) @@ -269,10 +271,10 @@ endef # simple testing of images in an emulator %.iso.test: %.iso - qemu-system-x86_64 -enable-kvm -cdrom $< + qemu-system-x86_64 $(QEMU_OPTIONS) -cdrom $< %.img.test: %.img - qemu-system-x86_64 -enable-kvm -hda $< + qemu-system-x86_64 $(QEMU_OPTIONS) -hda $< mec-tools/Makefile: git submodule update --init --remote