浏览代码

package/qemu: add option to enable virtual filesystem in host qemu

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
[Thomas: tweak option prompt]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Etienne Carriere 6 年之前
父节点
当前提交
e0f49e6484
共有 2 个文件被更改,包括 10 次插入0 次删除
  1. 6 0
      package/qemu/Config.in.host
  2. 4 0
      package/qemu/qemu.mk

+ 6 - 0
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
 	  Ethernet and can be used to create virtual switches to
 	  "plug" both physical and virtual machines in them.
 	  "plug" both physical and virtual machines in them.
 
 
+config BR2_PACKAGE_HOST_QEMU_VIRTFS
+	bool "Virtual filesystem support"
+	help
+	  Enables support for virtual filesystem in Qemu allowing
+	  shared filesystem between Qemu and its emulated target.
+
 endif
 endif

+ 4 - 0
package/qemu/qemu.mk

@@ -253,6 +253,10 @@ HOST_QEMU_OPTS += --enable-vde
 HOST_QEMU_DEPENDENCIES += host-vde2
 HOST_QEMU_DEPENDENCIES += host-vde2
 endif
 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
 # Override CPP, as it expects to be able to call it like it'd
 # call the compiler.
 # call the compiler.
 define HOST_QEMU_CONFIGURE_CMDS
 define HOST_QEMU_CONFIGURE_CMDS