qemu: enable host support for armsr/armv8
authorMathew McBride <matt@traverse.com.au>
Wed, 16 Aug 2023 01:10:18 +0000 (01:10 +0000)
committerTianling Shen <cnsztl@gmail.com>
Sun, 3 Sep 2023 14:59:52 +0000 (22:59 +0800)
commitae8a98055bf19e55a13002e99892a366143f5216
treed2697214eb0f1fcdc7d1b2c51a77de68675e5273
parent8067a8e3897c1176a52ba868d1660e039c3bb3da
qemu: enable host support for armsr/armv8

As of OpenWrt main branch commit e505873e65f72 ("armsr: armv8:
enable KVM host") [merged 2023-08-15], armsr/armv8 has
KVM host support. We can now enable QEMU host for this
target.

For example, you can run OpenWrt armsr/armv8 as a guest
like so:
qemu-system-aarch64 -nographic -M virt -cpu host --enable-kvm \
-bios u-boot.bin -smp 1 -m 1024 \
-drive file=openwrt-armsr-armv8-generic-ext4-combined.img,format=raw,index=0,media=disk

A compatible u-boot.bin can be obtained from u-boot-qemu_armv8/u-boot.bin
that is built with the armsr target and available from
downloads.openwrt.org.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
(cherry picked from commit 821bbcdf8bea7a864a038751908434578ec16339)
utils/qemu/Makefile