blob: e0228b228256a8771df7b0be2536c3c42f90448d [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for the i2c core.
3#
4
Lan Tianyu5d98e612014-05-20 20:59:23 +08005i2ccore-y := i2c-core.o
Lan Tianyu36604752014-08-15 13:38:59 +08006i2ccore-$(CONFIG_ACPI) += i2c-acpi.o
Lan Tianyu5d98e612014-05-20 20:59:23 +08007
David Brownell9c1600e2007-05-01 23:26:31 +02008obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o
Lan Tianyu5d98e612014-05-20 20:59:23 +08009obj-$(CONFIG_I2C) += i2ccore.o
Jean Delvaree2ca3072010-03-02 12:23:43 +010010obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070011obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o
Michael Lawnick08263742010-08-11 18:21:02 +020012obj-$(CONFIG_I2C_MUX) += i2c-mux.o
Michael Lawnick7f528132010-08-11 18:21:03 +020013obj-y += algos/ busses/ muxes/
Jean Delvare31d178b2012-10-28 21:37:00 +010014obj-$(CONFIG_I2C_STUB) += i2c-stub.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
matt mooneyef9d9b82010-10-24 18:16:58 +020016ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG
Jean Delvarefe6fc252011-03-20 14:50:53 +010017CFLAGS_i2c-core.o := -Wno-deprecated-declarations