From: Etienne Carriere Date: Thu, 22 Nov 2018 15:21:40 +0000 (+0100) Subject: package/qemu: add option to enable virtual filesystem in host qemu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0f49e648401;p=buildroot.git package/qemu: add option to enable virtual filesystem in host qemu Signed-off-by: Etienne Carriere [Thomas: tweak option prompt] Signed-off-by: Thomas Petazzoni --- diff --git a/package/qemu/Config.in.host b/package/qemu/Config.in.host index 957c7d2ae1..f99f3e05cf 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 "Virtual filesystem support" + 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 5bdf390bc9..5ee6abf731 100644 --- a/package/qemu/qemu.mk +++ b/package/qemu/qemu.mk @@ -253,6 +253,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