USB passthrough is a useful feature while using qemu for debugging purpose.
[Peter: reword commit message, pass --disable-libusb if not enabled]
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Enables support for virtual filesystem in Qemu allowing
shared filesystem between Qemu and its emulated target.
+config BR2_PACKAGE_HOST_QEMU_USB
+ bool "USB passthrough support"
+ help
+ Enables USB passthrough support from guest to host.
+
endif
HOST_QEMU_OPTS += --disable-virtfs
endif
+ifeq ($(BR2_PACKAGE_HOST_QEMU_USB),y)
+HOST_QEMU_OPTS += --enable-libusb
+HOST_QEMU_DEPENDENCIES += host-libusb
+else
+HOST_QEMU_OPTS += --disable-libusb
+endif
+
# Override CPP, as it expects to be able to call it like it'd
# call the compiler.
define HOST_QEMU_CONFIGURE_CMDS