root/i2c/trunk/mkpatch/Makefile @ 3369

Revision 3369, 1.6 KB (checked in by frodo, 14 years ago)

Fixed module lists and ali15x3 module inclusion

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#
2# Makefile for the kernel i2c bus driver.
3#
4
5SUB_DIRS     :=
6MOD_SUB_DIRS := $(SUB_DIRS)
7ALL_SUB_DIRS := $(SUB_DIRS)
8MOD_LIST_NAME := I2C_MODULES
9
10L_TARGET := i2c.a
11MX_OBJS := 
12M_OBJS  := 
13LX_OBJS :=
14L_OBJS  := 
15
16# -----
17# i2c core components
18# -----
19
20ifeq ($(CONFIG_I2C),y)
21  LX_OBJS += i2c-core.o
22else
23  ifeq ($(CONFIG_I2C),m)
24    MX_OBJS += i2c-core.o
25  endif
26endif
27
28ifeq ($(CONFIG_I2C_CHARDEV),y)
29  L_OBJS += i2c-dev.o
30else
31  ifeq ($(CONFIG_I2C_CHARDEV),m)
32    M_OBJS += i2c-dev.o
33  endif
34endif
35
36# -----
37# Bit banging adapters...
38# -----
39
40ifeq ($(CONFIG_I2C_ALGOBIT),y)
41  LX_OBJS += i2c-algo-bit.o
42else
43  ifeq ($(CONFIG_I2C_ALGOBIT),m)
44    MX_OBJS += i2c-algo-bit.o
45  endif
46endif
47
48ifeq ($(CONFIG-I2C-PHILIPSPAR),y)
49  L_OBJS += i2c-philips-par.o
50else
51  ifeq ($(CONFIG_I2C_PHILIPSPAR),m)
52    M_OBJS += i2c-philips-par.o
53  endif
54endif
55
56ifeq ($(CONFIG_I2C_ELV),y)
57  L_OBJS += i2c-elv.o
58else
59  ifeq ($(CONFIG_I2C_ELV),m)
60    M_OBJS += i2c-elv.o
61  endif
62endif
63
64ifeq ($(CONFIG_I2C_VELLEMAN),y)
65  L_OBJS += i2c-velleman.o
66else
67  ifeq ($(CONFIG_I2C_VELLEMAN),m)
68    M_OBJS += i2c-velleman.o
69  endif
70endif
71
72
73
74# -----
75# PCF components
76# -----
77
78ifeq ($(CONFIG_I2C_ALGOPCF),y)
79  LX_OBJS += i2c-algo-pcf.o
80else
81  ifeq ($(CONFIG_I2C_ALGOPCF),m)
82    MX_OBJS += i2c-algo-pcf.o
83  endif
84endif
85
86ifeq ($(CONFIG_I2C_ELEKTOR),y)
87  L_OBJS += i2c-elektor.o
88else
89  ifeq ($(CONFIG_I2C_ELEKTOR),m)
90    M_OBJS += i2c-elektor.o
91  endif
92endif
93
94# This is needed for automatic patch generation: sensors code starts here
95# This is needed for automatic patch generation: sensors code ends here
96
97include $(TOPDIR)/Rules.make
98
Note: See TracBrowser for help on using the browser.