Tom Rix | 330a90a | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2009 Wind River Systems, Inc. |
| 3 | # Tom Rix <Tom.Rix at windriver.com> |
| 4 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Tom Rix | 330a90a | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Łukasz Majewski | 257c531 | 2012-11-13 03:21:59 +0000 | [diff] [blame] | 10 | LIB := $(obj)libpower.o |
Tom Rix | 330a90a | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 11 | |
Akshay Saraswat | 32e61e2 | 2013-02-25 01:13:00 +0000 | [diff] [blame] | 12 | COBJS-$(CONFIG_EXYNOS_TMU) += exynos-tmu.o |
Macpaul Lin | 6d3e2d6 | 2011-01-05 17:12:23 +0800 | [diff] [blame] | 13 | COBJS-$(CONFIG_FTPMU010_POWER) += ftpmu010.o |
Simon Glass | 7bbdecd | 2012-04-02 13:18:44 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_TPS6586X_POWER) += tps6586x.o |
Tom Rix | 330a90a | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 15 | COBJS-$(CONFIG_TWL4030_POWER) += twl4030.o |
Steve Sakoman | f8f7c95 | 2010-07-15 12:53:42 -0700 | [diff] [blame] | 16 | COBJS-$(CONFIG_TWL6030_POWER) += twl6030.o |
Nishanth Menon | 627612c | 2013-03-26 05:20:54 +0000 | [diff] [blame] | 17 | COBJS-$(CONFIG_PALMAS_POWER) += palmas.o |
Tom Rix | 330a90a | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 18 | |
Łukasz Majewski | 1b6d9ed | 2012-11-13 03:22:14 +0000 | [diff] [blame] | 19 | COBJS-$(CONFIG_POWER) += power_core.o |
Łukasz Majewski | 1fc1003 | 2012-11-13 03:22:15 +0000 | [diff] [blame] | 20 | COBJS-$(CONFIG_DIALOG_POWER) += power_dialog.o |
Łukasz Majewski | 1b6d9ed | 2012-11-13 03:22:14 +0000 | [diff] [blame] | 21 | COBJS-$(CONFIG_POWER_FSL) += power_fsl.o |
| 22 | COBJS-$(CONFIG_POWER_I2C) += power_i2c.o |
| 23 | COBJS-$(CONFIG_POWER_SPI) += power_spi.o |
Łukasz Majewski | 257c531 | 2012-11-13 03:21:59 +0000 | [diff] [blame] | 24 | |
Tom Rix | 330a90a | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 25 | COBJS := $(COBJS-y) |
Łukasz Majewski | 257c531 | 2012-11-13 03:21:59 +0000 | [diff] [blame] | 26 | SRCS := $(COBJS:.o=.c) |
| 27 | OBJS := $(addprefix $(obj),$(COBJS)) |
Tom Rix | 330a90a | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 28 | |
| 29 | all: $(LIB) |
| 30 | |
| 31 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | a8d426f | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 32 | $(call cmd_link_o_target, $(OBJS)) |
Tom Rix | 330a90a | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 33 | |
| 34 | |
| 35 | ######################################################################### |
| 36 | |
| 37 | # defines $(obj).depend target |
| 38 | include $(SRCTREE)/rules.mk |
| 39 | |
| 40 | sinclude $(obj).depend |
| 41 | |
| 42 | ######################################################################## |