package/qemu: add symlink to target qemu-system

Scripts which use the buildroot host system to execute a qemu for the compiled
buildroot output can use the symlink at host/bin/qemu-system to execute the
appropriate qemu-system for the target, for example qemu-system-riscv64.

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Christian Stewart 2022-05-10 17:40:06 -07:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 4c72c4eb39
commit c6b9cd9a11

View File

@ -400,6 +400,12 @@ define HOST_QEMU_INSTALL_CMDS
$(HOST_MAKE_ENV) $(MAKE) -C $(@D) install
endef
# install symlink to qemu-system
define HOST_QEMU_POST_INSTALL_SYMLINK
ln -sf ./qemu-system-$(HOST_QEMU_ARCH) $(HOST_DIR)/bin/qemu-system
endef
HOST_QEMU_POST_INSTALL_HOOKS += HOST_QEMU_POST_INSTALL_SYMLINK
$(eval $(host-generic-package))
# variable used by other packages