* [Buildroot] [git commit branch/2022.11.x] package/qemu: check if qemu-system is enabled when creating symlink
@ 2023-03-15 7:09 Peter Korsgaard
0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2023-03-15 7:09 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=df21c1c972680a2bf4361f5c33ed591f340714e2
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.11.x
Commit c6b9cd9a11fe7fec6bfec2ddbd42c2851dba0011 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 commit f67c896fecade666e44a734b34cbf7b0d08903c0)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/qemu/qemu.mk | 2 ++
1 file changed, 2 insertions(+)
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index a991d49993..43e8e7321f 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -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))
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-03-15 7:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-15 7:09 [Buildroot] [git commit branch/2022.11.x] package/qemu: check if qemu-system is enabled when creating symlink Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).