]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/ep8260/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / ep8260 / Makefile
index b8bf320347e1af91a37d6f0c8b665fa152a6e812..68a4803cf27a6936ff0ad67ae31b699f4eac7ddc 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    = $(obj)lib$(BOARD).a
+LIB    = $(obj)lib$(BOARD).o
 
 COBJS  = $(BOARD).o flash.o mii_phy.o
 
@@ -32,7 +32,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(SOBJS) $(OBJS)