blob: b2812dc65edaaa2fb704b582eaf35dcc9fb104b3 [file] [log] [blame]
Tom Rixcd782632009-06-28 12:52:29 -05001#
2# Copyright (c) 2009 Wind River Systems, Inc.
3# Tom Rix <Tom.Rix at windriver.com>
4#
Wolfgang Denk1a459662013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Tom Rixcd782632009-06-28 12:52:29 -05006#
7
8include $(TOPDIR)/config.mk
9
Łukasz Majewskie0a0cbf2012-11-13 03:21:59 +000010LIB := $(obj)libpower.o
Tom Rixcd782632009-06-28 12:52:29 -050011
Akshay Saraswat39d182d2013-02-25 01:13:00 +000012COBJS-$(CONFIG_EXYNOS_TMU) += exynos-tmu.o
Macpaul Linf8ea15f2011-01-05 17:12:23 +080013COBJS-$(CONFIG_FTPMU010_POWER) += ftpmu010.o
Simon Glass1aa7e232012-04-02 13:18:44 +000014COBJS-$(CONFIG_TPS6586X_POWER) += tps6586x.o
Tom Rixcd782632009-06-28 12:52:29 -050015COBJS-$(CONFIG_TWL4030_POWER) += twl4030.o
Steve Sakoman516799f2010-07-15 12:53:42 -070016COBJS-$(CONFIG_TWL6030_POWER) += twl6030.o
Nishanth Menoncb199102013-03-26 05:20:54 +000017COBJS-$(CONFIG_PALMAS_POWER) += palmas.o
Tom Rixcd782632009-06-28 12:52:29 -050018
Łukasz Majewskibe3b51a2012-11-13 03:22:14 +000019COBJS-$(CONFIG_POWER) += power_core.o
Łukasz Majewski2988e862012-11-13 03:22:15 +000020COBJS-$(CONFIG_DIALOG_POWER) += power_dialog.o
Łukasz Majewskibe3b51a2012-11-13 03:22:14 +000021COBJS-$(CONFIG_POWER_FSL) += power_fsl.o
22COBJS-$(CONFIG_POWER_I2C) += power_i2c.o
23COBJS-$(CONFIG_POWER_SPI) += power_spi.o
Łukasz Majewskie0a0cbf2012-11-13 03:21:59 +000024
Tom Rixcd782632009-06-28 12:52:29 -050025COBJS := $(COBJS-y)
Łukasz Majewskie0a0cbf2012-11-13 03:21:59 +000026SRCS := $(COBJS:.o=.c)
27OBJS := $(addprefix $(obj),$(COBJS))
Tom Rixcd782632009-06-28 12:52:29 -050028
29all: $(LIB)
30
31$(LIB): $(obj).depend $(OBJS)
Sebastien Carlier6d8962e2010-11-05 15:48:07 +010032 $(call cmd_link_o_target, $(OBJS))
Tom Rixcd782632009-06-28 12:52:29 -050033
34
35#########################################################################
36
37# defines $(obj).depend target
38include $(SRCTREE)/rules.mk
39
40sinclude $(obj).depend
41
42########################################################################