]> 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 772a49a9021a41d46ef6c7aaf474be7a4f70553b..f810fca0907b33bc40846dff5bb7ae60fc556366 100644 (file)
@@ -25,8 +25,9 @@ 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
 COBJS-y += date.o
 COBJS-$(CONFIG_RTC_DS12887) += ds12887.o
@@ -70,7 +71,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 #########################################################################