1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
#
# Makefile for the kernel i2c bus driver.
#
SUB_DIRS :=
MOD_SUB_DIRS := $(SUB_DIRS)
ALL_SUB_DIRS := $(SUB_DIRS)
MOD_LIST_NAME := I2C_MODULES
L_TARGET := i2c.a
MX_OBJS :=
M_OBJS :=
LX_OBJS :=
L_OBJS :=
# -----
# 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
# This is needed for automatic patch generation: sensors code starts here
# This is needed for automatic patch generation: sensors code ends here
include $(TOPDIR)/Rules.make
|