summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-19 22:45:37 +0000
commit6d403070f28cd44860fdb3a53be5da0275c65cf4 (patch)
tree0d0e7fe7b5fb7568d19e11d7d862b77a866ce081 /drivers/i2c
parentecf1bf5f6c2e668d03b0a9fb026db7aa41e292e1 (diff)
Merge with 2.4.0-test1-ac21 + pile of MIPS cleanups to make merging
possible. Chainsawed RM200 kernel to compile again. Jazz machine status unknown.
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/Makefile100
1 files changed, 15 insertions, 85 deletions
diff --git a/drivers/i2c/Makefile b/drivers/i2c/Makefile
index 7c0abfc24..0d4c186a9 100644
--- a/drivers/i2c/Makefile
+++ b/drivers/i2c/Makefile
@@ -2,97 +2,27 @@
# Makefile for the kernel i2c bus driver.
#
-SUB_DIRS :=
-MOD_SUB_DIRS := $(SUB_DIRS)
-ALL_SUB_DIRS := $(SUB_DIRS)
MOD_LIST_NAME := I2C_MODULES
+O_TARGET := i2c.o
-L_TARGET := i2c.a
-MX_OBJS :=
-M_OBJS :=
-LX_OBJS :=
-L_OBJS :=
+export-objs := i2c-core.o i2c-algo-bit.o i2c-algo-pcf.o
-# -----
-# i2c core components
-# -----
-
-ifeq ($(CONFIG_I2C),y)
- LX_OBJS += i2c-core.o
-else
- ifeq ($(CONFIG_I2C),m)
- MX_OBJS += i2c-core.o
- endif
-endif
-
-ifeq ($(CONFIG_I2C_CHARDEV),y)
- L_OBJS += i2c-dev.o
-else
- ifeq ($(CONFIG_I2C_CHARDEV),m)
- M_OBJS += i2c-dev.o
- endif
-endif
-
-# -----
-# Bit banging adapters...
-# -----
-
-ifeq ($(CONFIG_I2C_ALGOBIT),y)
- LX_OBJS += i2c-algo-bit.o
-else
- ifeq ($(CONFIG_I2C_ALGOBIT),m)
- MX_OBJS += i2c-algo-bit.o
- endif
-endif
-
-ifeq ($(CONFIG_I2C_PHILIPSPAR),y)
- L_OBJS += i2c-philips-par.o
-else
- ifeq ($(CONFIG_I2C_PHILIPSPAR),m)
- M_OBJS += i2c-philips-par.o
- endif
-endif
-
-ifeq ($(CONFIG_I2C_ELV),y)
- L_OBJS += i2c-elv.o
-else
- ifeq ($(CONFIG_I2C_ELV),m)
- M_OBJS += i2c-elv.o
- endif
-endif
-
-ifeq ($(CONFIG_I2C_VELLEMAN),y)
- L_OBJS += i2c-velleman.o
-else
- ifeq ($(CONFIG_I2C_VELLEMAN),m)
- M_OBJS += i2c-velleman.o
- endif
-endif
-
-
-
-# -----
-# PCF components
-# -----
-
-ifeq ($(CONFIG_I2C_ALGOPCF),y)
- LX_OBJS += i2c-algo-pcf.o
-else
- ifeq ($(CONFIG_I2C_ALGOPCF),m)
- MX_OBJS += i2c-algo-pcf.o
- endif
-endif
-
-ifeq ($(CONFIG_I2C_ELEKTOR),y)
- L_OBJS += i2c-elektor.o
-else
- ifeq ($(CONFIG_I2C_ELEKTOR),m)
- M_OBJS += i2c-elektor.o
- endif
-endif
+obj-$(CONFIG_I2C) += i2c-core.o
+obj-$(CONFIG_I2C_CHARDEV) += i2c-dev.o
+obj-$(CONFIG_I2C_ALGOBIT) += i2c-algo-bit.o
+obj-$(CONFIG_I2C_PHILIPSPAR) += i2c-philips-par.o
+obj-$(CONFIG_I2C_ELV) += i2c-elv.o
+obj-$(CONFIG_I2C_VELLEMAN) += i2c-velleman.o
+obj-$(CONFIG_I2C_ALGOPCF) += i2c-algo-pcf.o
+obj-$(CONFIG_I2C_ELEKTOR) += i2c-elektor.o
# This is needed for automatic patch generation: sensors code starts here
# This is needed for automatic patch generation: sensors code ends here
+O_OBJS := $(filter-out $(export-objs), $(obj-y))
+OX_OBJS := $(filter $(export-objs), $(obj-y))
+M_OBJS := $(sort $(filter-out $(export-objs), $(obj-m)))
+MX_OBJS := $(sort $(filter $(export-objs), $(obj-m)))
+
include $(TOPDIR)/Rules.make