Skip to contentSkip to conversation

usb: Fix usb-host build

PATCH In review Jan Kiszka 3 participants 3 messages Sep 22, 2017 – Sep 26, 2017

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 usb: Fix usb-host build

From: Jan Kiszka <[email protected]>

This reverts the incorrect commit 2041649f0b04 (these are machine-independent objects) and fixes the name of the config var.

---
 hw/usb/Makefile.objs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/Makefile.objs +1 -1
index 757e365562..c7f0a52f44 100644
@@ -38,7 +38,7 @@ endif
 common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
 
 # usb pass-through
-ifeq ($(CONFIG_LIBUSB)$(CONFIG_USB),yy)
+ifeq ($(CONFIG_USB_LIBUSB),y)
 common-obj-y += host-libusb.o host-legacy.o
 else
 common-obj-y += host-stub.o
Signature · 1 line
2.12.3
#1 lore raw

Gerd, ping? If you provide a reviewed-by or acked-by I can apply this to master as a buildfix...

thanks
-- PMM

Quoted 25 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

This reverts the incorrect commit 2041649f0b04 (these are machine-independent objects) and fixes the name of the config var.

---
 hw/usb/Makefile.objs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/Makefile.objs +1 -2
index 757e365562..c7f0a52f44 100644
@@ -38,7 +38,7 @@ endif
 common-obj-$(CONFIG_USB_REDIR) += redirect.o quirks.o
 
 # usb pass-through
-ifeq ($(CONFIG_LIBUSB)$(CONFIG_USB),yy)
+ifeq ($(CONFIG_USB_LIBUSB),y)
 common-obj-y += host-libusb.o host-legacy.o
 else
 common-obj-y += host-stub.o
--

2.12.3

#2 lore raw
Quoted 12 lines · Peter Maydell

Gerd, ping? If you provide a reviewed-by or acked-by I can apply this to master as a buildfix...

thanks
-- PMM

Quoted 4 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

This reverts the incorrect commit 2041649f0b04 (these are machine-independent objects)

Commit is correct. The objects are machine-independent indeed, but not all machines need it. s390x (host) doesn't support usb in the first place, so usb-passthrough is rather pointless. So this drops the compiled object files from the list for the linker ...

Quoted 1 line
Quoted 1 line

and fixes the name of the config var.

That one is needed.

cheers,
Gerd