blob: df3092eaf055f69bc195ab9f93b974c4071a25c6 [file] [log] [blame]
Jean-Christophe PLAGNIOL-VILLARDa8c99162007-11-20 20:14:18 +01001#
2# (C) Copyright 2000-2007
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Jean-Christophe PLAGNIOL-VILLARDa8c99162007-11-20 20:14:18 +01006#
7
8include $(TOPDIR)/config.mk
9
Sebastien Carliera8d426f2010-11-05 15:48:07 +010010LIB := $(obj)libi2c.o
Jean-Christophe PLAGNIOL-VILLARDa8c99162007-11-20 20:14:18 +010011
Mike Frysinger34216672008-10-06 04:16:47 -040012COBJS-$(CONFIG_BFIN_TWI_I2C) += bfin-twi_i2c.o
Jean-Christophe PLAGNIOL-VILLARD11069232009-03-30 18:58:39 +020013COBJS-$(CONFIG_DRIVER_DAVINCI_I2C) += davinci_i2c.o
Vipin KUMAR3f64acb2012-02-26 23:13:29 +000014COBJS-$(CONFIG_DW_I2C) += designware_i2c.o
Albert Aribaude72b62c2010-08-27 18:26:04 +020015COBJS-$(CONFIG_I2C_MVTWSI) += mvtwsi.o
Lei Wend3ae17b2011-04-13 23:48:16 +053016COBJS-$(CONFIG_I2C_MV) += mv_i2c.o
Michal Simek76b8a132008-07-14 19:45:35 +020017COBJS-$(CONFIG_I2C_MXC) += mxc_i2c.o
Marek Vasut905214e2011-11-08 23:18:12 +000018COBJS-$(CONFIG_I2C_MXS) += mxs_i2c.o
Michal Simek76b8a132008-07-14 19:45:35 +020019COBJS-$(CONFIG_DRIVER_OMAP1510_I2C) += omap1510_i2c.o
20COBJS-$(CONFIG_DRIVER_OMAP24XX_I2C) += omap24xx_i2c.o
Dirk Behme5648e512008-12-14 09:47:18 +010021COBJS-$(CONFIG_DRIVER_OMAP34XX_I2C) += omap24xx_i2c.o
Valentin Yakovenkov28a1fcc2009-10-26 18:49:06 -040022COBJS-$(CONFIG_PCA9564_I2C) += pca9564_i2c.o
Jean-Christophe PLAGNIOL-VILLARD6685a332009-03-30 18:58:40 +020023COBJS-$(CONFIG_DRIVER_S3C24X0_I2C) += s3c24x0_i2c.o
Michal Simek76b8a132008-07-14 19:45:35 +020024COBJS-$(CONFIG_TSI108_I2C) += tsi108_i2c.o
Michael Brandt75e490a2011-04-19 10:42:41 +000025COBJS-$(CONFIG_U8500_I2C) += u8500_i2c.o
Nobuhiro Iwamatsue60b79d2011-11-14 18:27:04 +000026COBJS-$(CONFIG_SH_I2C) += sh_i2c.o
Nobuhiro Iwamatsu52bc2362012-03-01 17:56:35 +000027COBJS-$(CONFIG_SH_SH7734_I2C) += sh_sh7734_i2c.o
Heiko Schochere7d9c4f2012-01-16 21:12:23 +000028COBJS-$(CONFIG_SYS_I2C) += i2c_core.o
Heiko Schocherf2850742012-10-24 13:48:22 +020029COBJS-$(CONFIG_SYS_I2C_FSL) += fsl_i2c.o
Kuo-Jung Sua4340232013-05-08 15:36:26 +080030COBJS-$(CONFIG_SYS_I2C_FTI2C010) += fti2c010.o
Dirk Eibach42b204f2013-04-25 02:40:01 +000031COBJS-$(CONFIG_SYS_I2C_PPC4XX) += ppc4xx_i2c.o
Heiko Schocher479a4cf2013-01-29 08:53:15 +010032COBJS-$(CONFIG_SYS_I2C_SOFT) += soft_i2c.o
Simon Glass026fefb2012-10-30 07:28:53 +000033COBJS-$(CONFIG_SYS_I2C_TEGRA) += tegra_i2c.o
Michal Simekbeedbcf2013-04-22 15:21:33 +020034COBJS-$(CONFIG_ZYNQ_I2C) += zynq_i2c.o
Jean-Christophe PLAGNIOL-VILLARDa8c99162007-11-20 20:14:18 +010035
36COBJS := $(COBJS-y)
Wolfgang Denka1be4762008-05-20 16:00:29 +020037SRCS := $(COBJS:.o=.c)
38OBJS := $(addprefix $(obj),$(COBJS))
Jean-Christophe PLAGNIOL-VILLARDa8c99162007-11-20 20:14:18 +010039
40all: $(LIB)
41
42$(LIB): $(obj).depend $(OBJS)
Sebastien Carliera8d426f2010-11-05 15:48:07 +010043 $(call cmd_link_o_target, $(OBJS))
Jean-Christophe PLAGNIOL-VILLARDa8c99162007-11-20 20:14:18 +010044
45#########################################################################
46
47# defines $(obj).depend target
48include $(SRCTREE)/rules.mk
49
50sinclude $(obj).depend
51
52#########################################################################