[Buildroot] [PATCH 1/1] package/qemu: allow enabling virtual filesystem

Etienne Carriere etienne.carriere at linaro.org
Thu Nov 22 15:21:40 UTC 2018


Introduce builrdoot package configuration directive to enable Qemu host configuration directive

Signed-off-by: Etienne Carriere <etienne.carriere at linaro.org>
---
 package/qemu/Config.in.host | 6 ++++++
 package/qemu/qemu.mk        | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/package/qemu/Config.in.host b/package/qemu/Config.in.host
index 957c7d2..8840ff5 100644
--- a/package/qemu/Config.in.host
+++ b/package/qemu/Config.in.host
@@ -67,4 +67,10 @@ config BR2_PACKAGE_HOST_QEMU_VDE2
 	  Ethernet and can be used to create virtual switches to
 	  "plug" both physical and virtual machines in them.
 
+config BR2_PACKAGE_HOST_QEMU_VIRTFS
+	bool "Enable virtual filesystem in Qemu emulator"
+	help
+	  Enables support for virtual filesystem in Qemu allowing
+	  shared filesystem between Qemu and its emulated target.
+
 endif
diff --git a/package/qemu/qemu.mk b/package/qemu/qemu.mk
index 709535a..8153c06 100644
--- a/package/qemu/qemu.mk
+++ b/package/qemu/qemu.mk
@@ -254,6 +254,10 @@ HOST_QEMU_OPTS += --enable-vde
 HOST_QEMU_DEPENDENCIES += host-vde2
 endif
 
+ifdef ($(BR2_PACKAGE_HOST_QEMU_VIRTFS),y)
+HOST_QEMU_OPTS += --enable-virtfs
+endif
+
 # Override CPP, as it expects to be able to call it like it'd
 # call the compiler.
 define HOST_QEMU_CONFIGURE_CMDS
-- 
1.9.1



More information about the buildroot mailing list