From 499dfc941036b16a7bf615112b0a24e0daac9c41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vincent=20Stehl=C3=A9?= Date: Thu, 1 Aug 2019 19:09:24 +0200 Subject: [PATCH] qemu: fix host virtfs option MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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é Cc: Etienne Carriere Signed-off-by: Peter Korsgaard --- 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 73e0778d73..2c11f64ad0 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -271,8 +271,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 -- 2.30.2