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