]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/power/Makefile
serial: Use default_serial_puts() in drivers
[karo-tx-uboot.git] / drivers / power / Makefile
index dd0651466fd990b14e86731915fe92208def325b..6bf388cb7d59036fd2922eb51dd89d09328af05d 100644 (file)
 
 include $(TOPDIR)/config.mk
 
-LIB    := $(obj)libpower.a
+LIB    := $(obj)libpower.o
 
+COBJS-$(CONFIG_FTPMU010_POWER) += ftpmu010.o
+COBJS-$(CONFIG_TPS6586X_POWER) += tps6586x.o
 COBJS-$(CONFIG_TWL4030_POWER)  += twl4030.o
+COBJS-$(CONFIG_TWL6030_POWER)  += twl6030.o
+COBJS-$(CONFIG_TWL6035_POWER)  += twl6035.o
 
 COBJS  := $(COBJS-y)
 SRCS   := $(COBJS:.o=.c)
@@ -34,7 +38,7 @@ OBJS  := $(addprefix $(obj),$(COBJS))
 all:   $(LIB)
 
 $(LIB):        $(obj).depend $(OBJS)
-       $(AR) $(ARFLAGS) $@ $(OBJS)
+       $(call cmd_link_o_target, $(OBJS))
 
 
 #########################################################################