[Buildroot] [git commit branch/2019.02.x] qemu: fix host virtfs option

Peter Korsgaard peter at korsgaard.com
Wed Aug 21 12:37:19 UTC 2019


commit: https://git.buildroot.net/buildroot/commit/?id=6fee778121d325df174b5fe6dab664cfb0065f9e
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.02.x

Fix the build of host-qemu with virtfs enabled: fix a typo in makefile
conditional and add a dependency on host-libcap as that is a dependency of
virtfs support:

    if test "$virtfs" != no && test "$cap" = yes && test "$attr" = yes ; then
      virtfs=yes

The virtfs configuration option was added by commit e0f49e648401
("package/qemu: add option to enable virtual filesystem in host qemu").

Signed-off-by: Vincent Stehlé <vincent.stehle at arm.com>
Cc: Etienne Carriere <etienne.carriere at linaro.org>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 499dfc941036b16a7bf615112b0a24e0daac9c41)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/qemu/qemu.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index b858efe3f7..ca4a6656b9 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -257,8 +257,11 @@ HOST_QEMU_OPTS += --enable-vde
 HOST_QEMU_DEPENDENCIES += host-vde2
 endif
 
-ifdef ($(BR2_PACKAGE_HOST_QEMU_VIRTFS),y)
+ifeq ($(BR2_PACKAGE_HOST_QEMU_VIRTFS),y)
 HOST_QEMU_OPTS += --enable-virtfs
+HOST_QEMU_DEPENDENCIES += host-libcap
+else
+HOST_QEMU_OPTS += --disable-virtfs
 endif
 
 # Override CPP, as it expects to be able to call it like it'd


More information about the buildroot mailing list