mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
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 821bbcdf8b)
This commit is contained in:
committed by
Tianling Shen
parent
8067a8e389
commit
ae8a98055b
@@ -29,7 +29,7 @@ include $(INCLUDE_DIR)/nls.mk
|
|||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
QEMU_DEPS_IN_GUEST := @(TARGET_x86_64||TARGET_armsr||TARGET_malta)
|
QEMU_DEPS_IN_GUEST := @(TARGET_x86_64||TARGET_armsr||TARGET_malta)
|
||||||
QEMU_DEPS_IN_HOST := @(TARGET_x86_64||TARGET_sunxi)
|
QEMU_DEPS_IN_HOST := @(TARGET_x86_64||TARGET_armsr_armv8||TARGET_sunxi)
|
||||||
QEMU_DEPS_IN_HOST += +libstdcpp
|
QEMU_DEPS_IN_HOST += +libstdcpp
|
||||||
QEMU_DEPS_IN_HOST += $(ICONV_DEPENDS)
|
QEMU_DEPS_IN_HOST += $(ICONV_DEPENDS)
|
||||||
|
|
||||||
@@ -220,6 +220,7 @@ endef
|
|||||||
qemu-target-list := \
|
qemu-target-list := \
|
||||||
x86_64-softmmu \
|
x86_64-softmmu \
|
||||||
arm-softmmu \
|
arm-softmmu \
|
||||||
|
aarch64-softmmu \
|
||||||
|
|
||||||
qemu-target-x86_64-softmmu-deps:= \
|
qemu-target-x86_64-softmmu-deps:= \
|
||||||
+qemu-firmware-pxe \
|
+qemu-firmware-pxe \
|
||||||
|
|||||||
Reference in New Issue
Block a user