Merge branch 'master' of git://git.denx.de/u-boot-samsung
[platform/kernel/u-boot.git] / drivers / power / Makefile
index dd06514..c9ba1ae 100644 (file)
 
 include $(TOPDIR)/config.mk
 
-LIB    := $(obj)libpower.a
+LIB    := $(obj)libpower.o
 
 COBJS-$(CONFIG_TWL4030_POWER)  += twl4030.o
+COBJS-$(CONFIG_TWL6030_POWER)  += twl6030.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
@@ -34,7 +35,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 
 #########################################################################