]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/rtc/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / drivers / rtc / Makefile
index 98734db77f6f93cdfe015f8cdeef7bf42e638200..f810fca0907b33bc40846dff5bb7ae60fc556366 100644 (file)
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 #CFLAGS += -DDEBUG
 
-LIB    = $(obj)librtc.a
+LIB    = $(obj)librtc.o
 
 COBJS-$(CONFIG_RTC_AT91SAM9_RTT) += at91sam9_rtt.o
 COBJS-$(CONFIG_RTC_BFIN) += bfin_rtc.o
@@ -71,7 +71,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################