Gustavo Lima Chaves | 56922d9 | 2017-11-01 17:40:17 -0700 | [diff] [blame] | 1 | # |
| 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. |
| 10 | QEMU_FLAGS = $(QEMU_FLAGS_$(ARCH)) |
| 11 | |
| 12 | ifeq ($(JAILHOUSE_QEMU_IMG_FILE),) |
| 13 | run: zephyr |
| 14 | $(error You have to provide a valid qcow2 QEMU image to be a Jailhouse root cell (variable JAILHOUSE_QEMU_IMG_FILE)!) |
| 15 | else |
| 16 | run: zephyr |
| 17 | @echo '[QEMU] CPU: $(QEMU_CPU_TYPE_$(ARCH))' |
| 18 | $(Q)$(QEMU_x86) $(QEMU_FLAGS) $(QEMU_EXTRA_FLAGS) |
| 19 | endif |