]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/pm856/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / board / pm856 / Makefile
index 52a756c8e3af3e123bd3a510ae6daf1bc6c7591f..9f623a29d2fa18ab2f104506e221a183a1d85d26 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        += law.o
@@ -35,7 +35,7 @@ OBJS  := $(addprefix $(obj),$(COBJS-y))
 SOBJS  := $(addprefix $(obj),$(SOBJS))
 
 $(LIB):        $(obj).depend $(OBJS) $(SOBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 clean:
        rm -f $(OBJS) $(SOBJS)