]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/atmel/at91rm9200ek/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / atmel / at91rm9200ek / Makefile
index 96a0f055ac0f476974e5ea57e6ab393f4a283add..f64e5957333d34bb7d8276a5cf592a894e707462 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS-y += $(BOARD).o
 COBJS-y += led.o
@@ -33,7 +33,7 @@ OBJS  := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS) $(SOBJS)
+       $(call cmd_link_o_target, $(OBJS) $(SOBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)