]> git.ipfire.org Git - people/ms/u-boot.git/blob - drivers/power/Makefile
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / drivers / power / Makefile
1 #
2 # Copyright (c) 2009 Wind River Systems, Inc.
3 # Tom Rix <Tom.Rix at windriver.com>
4 #
5 # SPDX-License-Identifier: GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9
10 LIB := $(obj)libpower.o
11
12 COBJS-$(CONFIG_EXYNOS_TMU) += exynos-tmu.o
13 COBJS-$(CONFIG_FTPMU010_POWER) += ftpmu010.o
14 COBJS-$(CONFIG_TPS6586X_POWER) += tps6586x.o
15 COBJS-$(CONFIG_TWL4030_POWER) += twl4030.o
16 COBJS-$(CONFIG_TWL6030_POWER) += twl6030.o
17 COBJS-$(CONFIG_PALMAS_POWER) += palmas.o
18
19 COBJS-$(CONFIG_POWER) += power_core.o
20 COBJS-$(CONFIG_DIALOG_POWER) += power_dialog.o
21 COBJS-$(CONFIG_POWER_FSL) += power_fsl.o
22 COBJS-$(CONFIG_POWER_I2C) += power_i2c.o
23 COBJS-$(CONFIG_POWER_SPI) += power_spi.o
24
25 COBJS := $(COBJS-y)
26 SRCS := $(COBJS:.o=.c)
27 OBJS := $(addprefix $(obj),$(COBJS))
28
29 all: $(LIB)
30
31 $(LIB): $(obj).depend $(OBJS)
32 $(call cmd_link_o_target, $(OBJS))
33
34
35 #########################################################################
36
37 # defines $(obj).depend target
38 include $(SRCTREE)/rules.mk
39
40 sinclude $(obj).depend
41
42 ########################################################################