Tom Rix | cd78263 | 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 | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Tom Rix | cd78263 | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/config.mk |
| 9 | |
Łukasz Majewski | e0a0cbf | 2012-11-13 03:21:59 +0000 | [diff] [blame] | 10 | LIB := $(obj)libpower.o |
Tom Rix | cd78263 | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 11 | |
Akshay Saraswat | 39d182d | 2013-02-25 01:13:00 +0000 | [diff] [blame] | 12 | COBJS-$(CONFIG_EXYNOS_TMU) += exynos-tmu.o |
Macpaul Lin | f8ea15f | 2011-01-05 17:12:23 +0800 | [diff] [blame] | 13 | COBJS-$(CONFIG_FTPMU010_POWER) += ftpmu010.o |
Simon Glass | 1aa7e23 | 2012-04-02 13:18:44 +0000 | [diff] [blame] | 14 | COBJS-$(CONFIG_TPS6586X_POWER) += tps6586x.o |
Tom Rix | cd78263 | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 15 | COBJS-$(CONFIG_TWL4030_POWER) += twl4030.o |
Steve Sakoman | 516799f | 2010-07-15 12:53:42 -0700 | [diff] [blame] | 16 | COBJS-$(CONFIG_TWL6030_POWER) += twl6030.o |
Nishanth Menon | cb19910 | 2013-03-26 05:20:54 +0000 | [diff] [blame] | 17 | COBJS-$(CONFIG_PALMAS_POWER) += palmas.o |
Tom Rix | cd78263 | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 18 | |
Łukasz Majewski | be3b51a | 2012-11-13 03:22:14 +0000 | [diff] [blame] | 19 | COBJS-$(CONFIG_POWER) += power_core.o |
Łukasz Majewski | 2988e86 | 2012-11-13 03:22:15 +0000 | [diff] [blame] | 20 | COBJS-$(CONFIG_DIALOG_POWER) += power_dialog.o |
Łukasz Majewski | be3b51a | 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 | e0a0cbf | 2012-11-13 03:21:59 +0000 | [diff] [blame] | 24 | |
Tom Rix | cd78263 | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 25 | COBJS := $(COBJS-y) |
Łukasz Majewski | e0a0cbf | 2012-11-13 03:21:59 +0000 | [diff] [blame] | 26 | SRCS := $(COBJS:.o=.c) |
| 27 | OBJS := $(addprefix $(obj),$(COBJS)) |
Tom Rix | cd78263 | 2009-06-28 12:52:29 -0500 | [diff] [blame] | 28 | |
| 29 | all: $(LIB) |
| 30 | |
| 31 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 32 | $(call cmd_link_o_target, $(OBJS)) |
Tom Rix | cd78263 | 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 | ######################################################################## |