Skip to contentSkip to conversation

usb: fix libusb config variable name.

PATCH In review Gerd Hoffmann 2 participants 4 messages Sep 26, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: fix libusb config variable name.

Cc Jan Kiszka <[email protected]>
Fixes 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1
---
 hw/usb/Makefile.objs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/Makefile.objs +1 -1
index 9255234c63..0e6d54b21f 100644
@@ -42,7 +42,7 @@ redirect.o-cflags = $(USB_REDIR_CFLAGS)
 redirect.o-libs = $(USB_REDIR_LIBS)
 
 # usb pass-through
-ifeq ($(CONFIG_LIBUSB)$(CONFIG_USB),yy)
+ifeq ($(CONFIG_USB_LIBUSB)$(CONFIG_USB),yy)
 common-obj-y += host-libusb.o host-legacy.o
 else
 common-obj-y += host-stub.o
Signature · 1 line
2.9.3
#1 lore raw
Quoted 13 lines · Gerd Hoffmann
Cc Jan Kiszka <[email protected]>
Fixes 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1
---
 hw/usb/Makefile.objs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/Makefile.objs +0 -0
index 9255234c63..0e6d54b21f 100644

hw/usb/Makefile.objs redirect.o-cflags = $(USB_REDIR_CFLAGS) · line 48

Quoted 8 lines
hw/usb/Makefile.objs +1 -1
@@ -42,7 +42,7 @@ redirect.o-cflags = $(USB_REDIR_CFLAGS)
 redirect.o-libs = $(USB_REDIR_LIBS)
 
 # usb pass-through
-ifeq ($(CONFIG_LIBUSB)$(CONFIG_USB),yy)
+ifeq ($(CONFIG_USB_LIBUSB)$(CONFIG_USB),yy)
 common-obj-y += host-libusb.o host-legacy.o
 else
 common-obj-y += host-stub.o

This won't still work, only patch did -> CONFIG_USB isn't set when building the common objects.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
#2 lore raw
Quoted 17 lines · Jan Kiszka
Quoted 16 lines · Gerd Hoffmann
Cc Jan Kiszka <[email protected]>
Fixes 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1

---
 hw/usb/Makefile.objs | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/Makefile.objs +0 -0
index 9255234c63..0e6d54b21f 100644
@@ -42,7 +42,7 @@ redirect.o-cflags = $(USB_REDIR_CFLAGS)
  redirect.o-libs = $(USB_REDIR_LIBS)

 # usb pass-through
-ifeq ($(CONFIG_LIBUSB)$(CONFIG_USB),yy)
Quoted 8 lines
Quoted 5 lines

+ifeq ($(CONFIG_USB_LIBUSB)$(CONFIG_USB),yy)
 common-obj-y += host-libusb.o host-legacy.o
 else
 common-obj-y += host-stub.o

This won't still work, only patch did -> CONFIG_USB isn't set when building the common objects.

I've tested it, and it did work. Also note that there are a bunch of

   common-obj-$(CONFIG_USB) += something

lines in hw/usb/Makefile.objs

cheers,
Gerd

Tested-by
#3 lore raw
Quoted 27 lines · Gerd Hoffmann
Quoted 17 lines · Jan Kiszka
Quoted 16 lines · Gerd Hoffmann
Cc Jan Kiszka <[email protected]>
Fixes 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1

---
 hw/usb/Makefile.objs | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/Makefile.objs +0 -0
index 9255234c63..0e6d54b21f 100644
@@ -42,7 +42,7 @@ redirect.o-cflags = $(USB_REDIR_CFLAGS)
  redirect.o-libs = $(USB_REDIR_LIBS)

 # usb pass-through
-ifeq ($(CONFIG_LIBUSB)$(CONFIG_USB),yy)
Quoted 8 lines
Quoted 5 lines

+ifeq ($(CONFIG_USB_LIBUSB)$(CONFIG_USB),yy)
 common-obj-y += host-libusb.o host-legacy.o
 else
 common-obj-y += host-stub.o

This won't still work, only patch did -> CONFIG_USB isn't set when building the common objects.

Quoted 6 lines

I've tested it, and it did work. Also note that there are a bunch of

   common-obj-$(CONFIG_USB) += something

lines in hw/usb/Makefile.objs

I swear it didn't while developing the fix, but it does indeed now.

Jan