usb: fix libusb config variable name.
PATCH 1/1 usb: fix libusb config variable name.
--- hw/usb/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
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
Signature · 1 line
2.9.3
Quoted 13 lines · Gerd Hoffmann
Cc Jan Kiszka <[email protected]>Fixes 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1Signed-off-by Gerd Hoffmann <[email protected]>--- hw/usb/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/usb/Makefile.objs +0
-0
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
Quoted 17 lines · Jan Kiszka
Quoted 16 lines · Gerd Hoffmann
Cc Jan Kiszka <[email protected]>Fixes 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1Signed-off-by Gerd Hoffmann <[email protected]>---
hw/usb/Makefile.objs | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)hw/usb/Makefile.objs +0
-0@@ -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.oThis won't still work, only patch did ->
CONFIG_USBisn'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
Jan Kiszka
Tested-byQuoted 27 lines · Gerd Hoffmann
Quoted 17 lines · Jan Kiszka
Quoted 16 lines · Gerd Hoffmann
Cc Jan Kiszka <[email protected]>Fixes 4e5ee5b21c84fe3023a64b5cc2e12a52ab0597c1Signed-off-by Gerd Hoffmann <[email protected]>---
hw/usb/Makefile.objs | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)hw/usb/Makefile.objs +0
-0@@ -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.oThis won't still work, only patch did ->
CONFIG_USBisn'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) += somethinglines in hw/usb/Makefile.objs
I swear it didn't while developing the fix, but it does indeed now.
Jan