aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/Makefile
blob: b2812dc65edaaa2fb704b582eaf35dcc9fb104b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#
# Copyright (c) 2009 Wind River Systems, Inc.
# Tom Rix <Tom.Rix at windriver.com>
#
# SPDX-License-Identifier:	GPL-2.0+
#

include $(TOPDIR)/config.mk

LIB	:= $(obj)libpower.o

COBJS-$(CONFIG_EXYNOS_TMU)	+= exynos-tmu.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_PALMAS_POWER)	+= palmas.o

COBJS-$(CONFIG_POWER) += power_core.o
COBJS-$(CONFIG_DIALOG_POWER) += power_dialog.o
COBJS-$(CONFIG_POWER_FSL) += power_fsl.o
COBJS-$(CONFIG_POWER_I2C) += power_i2c.o
COBJS-$(CONFIG_POWER_SPI) += power_spi.o

COBJS	:= $(COBJS-y)
SRCS	:= $(COBJS:.o=.c)
OBJS	:= $(addprefix $(obj),$(COBJS))

all:	$(LIB)

$(LIB):	$(obj).depend $(OBJS)
	$(call cmd_link_o_target, $(OBJS))


#########################################################################

# defines $(obj).depend target
include $(SRCTREE)/rules.mk

sinclude $(obj).depend

########################################################################