Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the i2c core. |
| 4 | # |
| 5 | |
David Brownell | 9c1600e | 2007-05-01 23:26:31 +0200 | [diff] [blame] | 6 | obj-$(CONFIG_I2C_BOARDINFO) += i2c-boardinfo.o |
Wolfram Sang | 17f4a5c | 2014-09-22 19:41:00 +0200 | [diff] [blame] | 7 | obj-$(CONFIG_I2C) += i2c-core.o |
Wolfram Sang | 22c78d1 | 2017-05-23 12:27:17 +0200 | [diff] [blame] | 8 | i2c-core-objs := i2c-core-base.o i2c-core-smbus.o |
Wolfram Sang | 53f8f7c | 2017-05-23 16:22:23 +0200 | [diff] [blame] | 9 | i2c-core-$(CONFIG_ACPI) += i2c-core-acpi.o |
Wolfram Sang | e4991ec | 2017-05-23 11:14:17 +0200 | [diff] [blame] | 10 | i2c-core-$(CONFIG_I2C_SLAVE) += i2c-core-slave.o |
Wolfram Sang | 5bf4fa7 | 2017-05-23 11:50:58 +0200 | [diff] [blame] | 11 | i2c-core-$(CONFIG_OF) += i2c-core-of.o |
Wolfram Sang | 91ed534 | 2017-05-23 11:08:04 +0200 | [diff] [blame] | 12 | |
Jean Delvare | e2ca307 | 2010-03-02 12:23:43 +0100 | [diff] [blame] | 13 | obj-$(CONFIG_I2C_SMBUS) += i2c-smbus.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o |
Michael Lawnick | 0826374 | 2010-08-11 18:21:02 +0200 | [diff] [blame] | 15 | obj-$(CONFIG_I2C_MUX) += i2c-mux.o |
Michael Lawnick | 7f52813 | 2010-08-11 18:21:03 +0200 | [diff] [blame] | 16 | obj-y += algos/ busses/ muxes/ |
Jean Delvare | 31d178b | 2012-10-28 21:37:00 +0100 | [diff] [blame] | 17 | obj-$(CONFIG_I2C_STUB) += i2c-stub.o |
Wolfram Sang | 389be32 | 2014-11-18 17:04:54 +0100 | [diff] [blame] | 18 | obj-$(CONFIG_I2C_SLAVE_EEPROM) += i2c-slave-eeprom.o |
Wolfram Sang | a8335c6 | 2020-09-11 09:16:58 +0200 | [diff] [blame] | 19 | obj-$(CONFIG_I2C_SLAVE_TESTUNIT) += i2c-slave-testunit.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
matt mooney | ef9d9b8 | 2010-10-24 18:16:58 +0200 | [diff] [blame] | 21 | ccflags-$(CONFIG_I2C_DEBUG_CORE) := -DDEBUG |