package/qemu: check if qemu-system is enabled when creating symlink
Commit2022.11.xc6b9cd9a11
added a symlink to qemu-system as a post install hook. However, it does not check if qemu-system is actually enabled with BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE. Add the check to make sure we only create the symlink if that is enabled. Signed-off-by: Christian Stewart <christian@paral.in> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commitf67c896fec
) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
parent
c320582d40
commit
df21c1c972
|
@ -405,10 +405,12 @@ define HOST_QEMU_INSTALL_CMDS
|
|||
endef
|
||||
|
||||
# install symlink to qemu-system
|
||||
ifeq ($(BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE),y)
|
||||
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
|
||||
endif
|
||||
|
||||
$(eval $(host-generic-package))
|
||||
|
||||
|
|
Loading…
Reference in New Issue