Re: [RFC PATCH 3/4] usb: dwc3: add quirk to be compatible for AMD NL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Thu, Oct 09, 2014 at 01:10:36PM +0800, Huang Rui wrote:

<snip>

> > > > ray@hr-ub:~/felipe/usb-tools$ make
> > > >      LINK     companion-desc
> > > > companion-desc.o: In function `main':
> > > > /home/ray/felipe/usb-tools/companion-desc.c:219: undefined reference to `libusb_init'
> > > > /home/ray/felipe/usb-tools/companion-desc.c:221: undefined reference to `libusb_open_device_with_vid_pid'
> > > > companion-desc.o: In function `do_test':
> > > > /home/ray/felipe/usb-tools/companion-desc.c:176: undefined reference to `libusb_get_device'
> > > > /home/ray/felipe/usb-tools/companion-desc.c:178: undefined reference to `libusb_get_device_descriptor'
> > > > companion-desc.o: In function `check_configurations':
> > > > /home/ray/felipe/usb-tools/companion-desc.c:153: undefined reference to `libusb_get_config_descriptor'
> > > > companion-desc.o: In function `main':
> > > > /home/ray/felipe/usb-tools/companion-desc.c:239: undefined reference to `libusb_close'
> > > > /home/ray/felipe/usb-tools/companion-desc.c:242: undefined reference to `libusb_exit'
> > > > companion-desc.o: In function `do_test':
> > > > /home/ray/felipe/usb-tools/companion-desc.c:163: undefined reference to `libusb_free_config_descriptor'
> > > > collect2: error: ld returned 1 exit status
> > > > make: *** [companion-desc] Error 1
> > 
> > alright, libraries should be listed last. But only a few GCC versions
> > are more anal about it. Anyway, pushed a patch on Makefile, see if it
> > works for you.
> > 
> 
> Felipe, I am on Chinese holiday in the past week. And back to work on
> patch refine.
> 
> After fetch your latest codes of usbtool, anything is good except a
> arm gcc error, since I used x86 platform.
> 
> ray@hr-ub:~/felipe/usb-tools$ make
>      CC       companion-desc.o
>      LINK     companion-desc
>      CC       testmode.o
>      LINK     testmode
>      CC       cleware.o
>      LINK     cleware
>      CC       control.o
>      LINK     control
>      CC       device-reset.o
>      LINK     device-reset
>      CC       msc.o
>      LINK     msc
>      CC       testusb.o
>      LINK     testusb
>      CC       serialc.o
>      LINK     serialc
>      CC       acmc.o
>      LINK     acmc
>      CC       switchbox.o
>      LINK     switchbox
>      CC       seriald.o
> /bin/sh: 1: arm-linux-gcc: not found
> make: *** [seriald.o] Error 127

don't worry about that. Some of the tools need to run on the target but
you're not doing that :-) You can make a specific tool by e.g. "make msc".

> But it does't block my building. Because I can comment CROSS_COMPILE at
> makefile.
> 
> I am testing my driver and dwc3 controller with MSC tool currently, and will
> let you know message log later.

Cool, thanks.

-- 
balbi

Attachment: signature.asc
Description: Digital signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux