gitlab.arm.com will be in the maintainance mode on Wednesday June 29th 01:00 - 10:00 (UTC+1). Repositories is read only during the maintainance.

Commit 89470741 authored by Jose Marinho's avatar Jose Marinho
Browse files

qemu: allow for qemu binary (QEMU_BIN) to be set as env variable


Signed-off-by: Jose Marinho's avatarJose Marinho <jose.marinho@arm.com>
parent 87180263
......@@ -7,6 +7,8 @@ FLASH_IMAGE := nor_flash.bin
OPTEE_EXTRA += CFG_RPMB_FS_DEV_ID=1
QEMU_BIN ?= qemu-system-aarch64
ifneq ($(CONFIG_TFABOOT)$(CONFIG_POSITION_INDEPENDENT),yy)
tweakconfig:
echo "CONFIG_POSITION_INDEPENDENT=y" >> $(UBOOT_OUTPUT)/.config
......@@ -44,7 +46,7 @@ QEMU_BASE_CONFIG += -drive if=virtio,format=raw,file=$(VIRTDISK)
endif
qemu-fip:
qemu-system-aarch64 $(QEMU_BASE_CONFIG) -bios $(FLASH_IMAGE) $(QEMU_EXTRA)
$(QEMU_BIN) $(QEMU_BASE_CONFIG) -drive if=pflash,unit=0,file=$(FLASH_IMAGE) $(QEMU_EXTRA)
qemu-semihosting:
cd output && qemu-system-aarch64 $(QEMU_BASE_CONFIG) -bios bl1.bin -semihosting-config enable,target=native $(QEMU_EXTRA)
cd output && $(QEMU_BIN) $(QEMU_BASE_CONFIG) -bios bl1.bin -semihosting-config enable,target=native $(QEMU_EXTRA)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment