]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/power/pmic/Makefile
drivers/power/pmic: Add tps65217 driver
[karo-tx-uboot.git] / drivers / power / pmic / Makefile
1 #
2 # Copyright (C) 2012 Samsung Electronics
3 # Lukasz Majewski <l.majewski@samsung.com>
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9
10 LIB     := $(obj)libpmic.o
11
12 COBJS-$(CONFIG_POWER_MAX8998) += pmic_max8998.o
13 COBJS-$(CONFIG_POWER_MAX8997) += pmic_max8997.o
14 COBJS-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o
15 COBJS-$(CONFIG_POWER_MAX77686) += pmic_max77686.o
16 COBJS-$(CONFIG_POWER_TPS65217) += pmic_tps65217.o
17
18 COBJS   := $(COBJS-y)
19 SRCS    := $(COBJS:.o=.c)
20 OBJS    := $(addprefix $(obj),$(COBJS))
21
22 all:    $(LIB)
23
24 $(LIB): $(obj).depend $(OBJS)
25         $(call cmd_link_o_target, $(OBJS))
26
27
28 #########################################################################
29
30 # defines $(obj).depend target
31 include $(SRCTREE)/rules.mk
32
33 sinclude $(obj).depend
34
35 ########################################################################