Commit ab6e242b authored by Grant Likely's avatar Grant Likely
Browse files

Add QEMU target support

Adds a makefile fragment to support qemu_arm64_defconfig.

Signed-off-by: Grant Likely's avatarGrant Likely <>
parent fb1ddae1
TFA_PLAT := qemu
UBOOT_EXTRA_CONFIGS += scripts/qemu_arm64_tfa.config
FLASH_IMAGE := nor_flash.bin
echo "CONFIG_TFABOOT=y" >> $(UBOOT_OUTPUT)/.config
$(MAKE) -C $(UBOOT_PATH) $(UBOOT_EXTRA) olddefconfig
u-boot/all u-boot/u-boot.bin: tweakconfig
$(FLASH_IMAGE): tfa/all
dd if=/dev/zero of=$(FLASH_IMAGE) count=$$((64*1024*1024>>9))
dd if=$(TFA_OUTPUT)/$(TFA_PLAT)/release/bl1.bin of=$(FLASH_IMAGE) bs=4096 conv=notrunc
dd if=$(TFA_OUTPUT)/$(TFA_PLAT)/release/fip.bin of=$(FLASH_IMAGE) bs=4096 seek=64 conv=notrunc
qemu: $(FLASH_IMAGE)
qemu-system-aarch64 -nographic -machine virt,secure=on -cpu cortex-a57 \
-no-acpi -smp 2 -m 1024 -bios $(FLASH_IMAGE) -d unimp \
-monitor null -serial stdio -serial tcp::5000,server,nowait
Supports Markdown
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