]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/power/Makefile
Switch from archive libraries to partial linking
[karo-tx-uboot.git] / drivers / power / Makefile
index db5317383790f393337ad999b3ef0a58e801db46..c9ba1aef86c9578a80946697baf0181e26c3d8eb 100644 (file)
@@ -23,7 +23,7 @@
 
 include $(TOPDIR)/config.mk
 
-LIB    := $(obj)libpower.a
+LIB    := $(obj)libpower.o
 
 COBJS-$(CONFIG_TWL4030_POWER)  += twl4030.o
 COBJS-$(CONFIG_TWL6030_POWER)  += twl6030.o
@@ -35,7 +35,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 
 #########################################################################