xref: /openbmc/u-boot/drivers/power/Makefile (revision 3765b3e7)
1#
2# Copyright (c) 2009 Wind River Systems, Inc.
3# Tom Rix <Tom.Rix at windriver.com>
4#
5# SPDX-License-Identifier:	GPL-2.0+
6#
7
8include $(TOPDIR)/config.mk
9
10LIB	:= $(obj)libpower.o
11
12COBJS-$(CONFIG_EXYNOS_TMU)	+= exynos-tmu.o
13COBJS-$(CONFIG_FTPMU010_POWER)	+= ftpmu010.o
14COBJS-$(CONFIG_TPS6586X_POWER)	+= tps6586x.o
15COBJS-$(CONFIG_TWL4030_POWER)	+= twl4030.o
16COBJS-$(CONFIG_TWL6030_POWER)	+= twl6030.o
17COBJS-$(CONFIG_PALMAS_POWER)	+= palmas.o
18
19COBJS-$(CONFIG_POWER) += power_core.o
20COBJS-$(CONFIG_DIALOG_POWER) += power_dialog.o
21COBJS-$(CONFIG_POWER_FSL) += power_fsl.o
22COBJS-$(CONFIG_POWER_I2C) += power_i2c.o
23COBJS-$(CONFIG_POWER_SPI) += power_spi.o
24
25COBJS	:= $(COBJS-y)
26SRCS	:= $(COBJS:.o=.c)
27OBJS	:= $(addprefix $(obj),$(COBJS))
28
29all:	$(LIB)
30
31$(LIB):	$(obj).depend $(OBJS)
32	$(call cmd_link_o_target, $(OBJS))
33
34
35#########################################################################
36
37# defines $(obj).depend target
38include $(SRCTREE)/rules.mk
39
40sinclude $(obj).depend
41
42########################################################################
43