package/qemu: Add option to enable USB passthrough support on host variant
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>
This commit is contained in:
parent
393938f04f
commit
900024a2bb
@ -83,4 +83,9 @@ config BR2_PACKAGE_HOST_QEMU_VIRTFS
|
||||
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
|
||||
|
@ -264,6 +264,13 @@ else
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user