blob: 05a88943ae3034ca50c2cf91c245ee797e032ef6 [file] [log] [blame]
Gustavo Lima Chaves56922d92017-11-01 17:40:17 -07001#
2# Copyright (c) 2017 Intel Corporation
3#
4# SPDX-License-Identifier: Apache-2.0
5
6
7# Abstraction of 'run' goal with Qemu
8
9# QEMU_INSTANCE is a command line argument to make.
10QEMU_FLAGS = $(QEMU_FLAGS_$(ARCH))
11
12ifeq ($(JAILHOUSE_QEMU_IMG_FILE),)
13run: zephyr
14 $(error You have to provide a valid qcow2 QEMU image to be a Jailhouse root cell (variable JAILHOUSE_QEMU_IMG_FILE)!)
15else
16run: zephyr
17 @echo '[QEMU] CPU: $(QEMU_CPU_TYPE_$(ARCH))'
18 $(Q)$(QEMU_x86) $(QEMU_FLAGS) $(QEMU_EXTRA_FLAGS)
19endif