Patchwork [U-Boot] usb: convert to partial linking

login
register
mail settings
Submitter Mike Frysinger
Date June 25, 2011, 1:12 a.m.
Message ID <1308964356-24726-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/101931/
State Accepted
Commit 181f565c2d78bd33483aff6fd71105e947c16baa
Delegated to: Remy Bohmer
Headers show

Comments

Mike Frysinger - June 25, 2011, 1:12 a.m.
Looks like this was missed during the conversion to partial linking.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 Makefile                 |    2 +-
 drivers/usb/eth/Makefile |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
Remy Bohmer - June 25, 2011, 8:21 a.m.
Hi,

2011/6/25 Mike Frysinger <vapier@gentoo.org>:
> Looks like this was missed during the conversion to partial linking.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  Makefile                 |    2 +-
>  drivers/usb/eth/Makefile |    4 ++--
>  2 files changed, 3 insertions(+), 3 deletions(-)

Applied to u-boot-usb master.
Thanks.

Kind regards,

Remy

Patch

diff --git a/Makefile b/Makefile
index bb1958a..a368f56 100644
--- a/Makefile
+++ b/Makefile
@@ -236,7 +236,7 @@  endif
 LIBS += drivers/rtc/librtc.o
 LIBS += drivers/serial/libserial.o
 LIBS += drivers/twserial/libtws.o
-LIBS += drivers/usb/eth/libusb_eth.a
+LIBS += drivers/usb/eth/libusb_eth.o
 LIBS += drivers/usb/gadget/libusb_gadget.o
 LIBS += drivers/usb/host/libusb_host.o
 LIBS += drivers/usb/musb/libusb_musb.o
diff --git a/drivers/usb/eth/Makefile b/drivers/usb/eth/Makefile
index 6a5f25a..a8e9eff 100644
--- a/drivers/usb/eth/Makefile
+++ b/drivers/usb/eth/Makefile
@@ -21,7 +21,7 @@ 
 
 include $(TOPDIR)/config.mk
 
-LIB	:= $(obj)libusb_eth.a
+LIB	:= $(obj)libusb_eth.o
 
 # new USB host ethernet layer dependencies
 COBJS-$(CONFIG_USB_HOST_ETHER) += usb_ether.o
@@ -36,7 +36,7 @@  OBJS	:= $(addprefix $(obj),$(COBJS))
 all:	$(LIB)
 
 $(LIB):	$(obj).depend $(OBJS)
-	$(AR) $(ARFLAGS) $@ $(OBJS)
+	$(call cmd_link_o_target, $(OBJS))
 
 #########################################################################