5244276c6353beaceaa56f6462dc75ad965e8843
[openwrt.git] / openwrt / target / linux / generic-2.4 / modules.mk
1 include ../netfilter.mk
2
3 # Networking
4
5 $(eval $(call KMOD_template,ATM,atm,\
6 $(MODULES_DIR)/kernel/net/atm/atm.o \
7 $(MODULES_DIR)/kernel/net/atm/br2684.o \
8 ,CONFIG_ATM,,50,atm))
9
10 $(eval $(call KMOD_template,GRE,gre,\
11 $(MODULES_DIR)/kernel/net/ipv4/ip_gre.o \
12 ,CONFIG_NET_IPGRE))
13
14 $(eval $(call KMOD_template,IMQ,imq,\
15 $(MODULES_DIR)/kernel/net/*/netfilter/*IMQ*.o \
16 $(MODULES_DIR)/kernel/drivers/net/imq.o \
17 ))
18
19 $(eval $(call KMOD_template,IPV6,ipv6,\
20 $(MODULES_DIR)/kernel/net/ipv6/ipv6.o \
21 ,CONFIG_IPV6,,20,ipv6))
22
23 $(eval $(call KMOD_template,PPP,ppp,\
24 $(MODULES_DIR)/kernel/drivers/net/ppp_async.o \
25 $(MODULES_DIR)/kernel/drivers/net/ppp_generic.o \
26 $(MODULES_DIR)/kernel/drivers/net/slhc.o \
27 $(MODULES_DIR)/kernel/drivers/net/pppox.o \
28 ,CONFIG_PPP))
29
30 $(eval $(call KMOD_template,MPPE,mppe,\
31 $(MODULES_DIR)/kernel/drivers/net/ppp_mppe_mppc.o \
32 ,CONFIG_PPP_MPPE_MPPC))
33
34 $(eval $(call KMOD_template,PPPOATM,pppoatm,\
35 $(MODULES_DIR)/kernel/net/atm/pppoatm.o \
36 ,CONFIG_PPPOATM))
37
38 $(eval $(call KMOD_template,PPPOE,pppoe,\
39 $(MODULES_DIR)/kernel/drivers/net/pppoe.o \
40 ,CONFIG_PPPOE))
41
42 $(eval $(call KMOD_template,SCHED,sched,\
43 $(MODULES_DIR)/kernel/net/sched/*.o \
44 ))
45
46 $(eval $(call KMOD_template,TUN,tun,\
47 $(MODULES_DIR)/kernel/drivers/net/tun.o \
48 ,CONFIG_TUN,,20,tun))
49
50 # Filtering / Firewalling
51
52 $(eval $(call KMOD_template,ARPTABLES,arptables,\
53 $(MODULES_DIR)/kernel/net/ipv4/netfilter/arp*.o \
54 ,CONFIG_IP_NF_ARPTABLES))
55
56 $(eval $(call KMOD_template,EBTABLES,ebtables,\
57 $(MODULES_DIR)/kernel/net/bridge/netfilter/*.o \
58 ,CONFIG_BRIDGE_NF_EBTABLES))
59
60 # metapackage for compatibility ...
61 $(eval $(call KMOD_template,IPTABLES_EXTRA,iptables-extra,\
62 ,,kmod-ipt-conntrack kmod-ipt-extra kmod-ipt-filter kmod-ipt-ipopt kmod-ipt-ipsec kmod-ipt-nat kmod-ipt-nat-extra kmod-ipt-queue kmod-ipt-ulogd))
63
64 $(eval $(call KMOD_template,IPT_CONNTRACK,ipt-conntrack,\
65 $(foreach mod,$(IPT_CONNTRACK-m),$(MODULES_DIR)/kernel/net/ipv4/netfilter/$(mod).o) \
66 ))
67
68 $(eval $(call KMOD_template,IPT_EXTRA,ipt-extra,\
69 $(foreach mod,$(IPT_EXTRA-m),$(MODULES_DIR)/kernel/net/ipv4/netfilter/$(mod).o) \
70 ))
71
72 $(eval $(call KMOD_template,IPT_FILTER,ipt-filter,\
73 $(foreach mod,$(IPT_FILTER-m),$(MODULES_DIR)/kernel/net/ipv4/netfilter/$(mod).o) \
74 ))
75
76 $(eval $(call KMOD_template,IPT_IPOPT,ipt-ipopt,\
77 $(foreach mod,$(IPT_IPOPT-m),$(MODULES_DIR)/kernel/net/ipv4/netfilter/$(mod).o) \
78 ))
79
80 $(eval $(call KMOD_template,IPT_IPSEC,ipt-ipsec,\
81 $(foreach mod,$(IPT_IPSEC-m),$(MODULES_DIR)/kernel/net/ipv4/netfilter/$(mod).o) \
82 ))
83
84 $(eval $(call KMOD_template,IPT_NAT,ipt-nat,\
85 $(foreach mod,$(IPT_NAT-m),$(MODULES_DIR)/kernel/net/ipv4/netfilter/$(mod).o) \
86 ))
87
88 $(eval $(call KMOD_template,IPT_NAT_EXTRA,ipt-nat-extra,\
89 $(foreach mod,$(IPT_NAT_EXTRA-m),$(MODULES_DIR)/kernel/net/ipv4/netfilter/$(mod).o) \
90 ,,,40,$(IPT_NAT_EXTRA-m)))
91
92 $(eval $(call KMOD_template,IPT_QUEUE,ipt-queue,\
93 $(foreach mod,$(IPT_QUEUE-m),$(MODULES_DIR)/kernel/net/ipv4/netfilter/$(mod).o) \
94 ))
95
96 $(eval $(call KMOD_template,IPT_ULOG,ipt-ulog,\
97 $(foreach mod,$(IPT_ULOG-m),$(MODULES_DIR)/kernel/net/ipv4/netfilter/$(mod).o) \
98 ))
99
100 $(eval $(call KMOD_template,IP6TABLES,ip6tables,\
101 $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip*.o \
102 ,CONFIG_IP6_NF_IPTABLES,kmod-ipv6))
103
104
105 # Block devices
106
107 $(eval $(call KMOD_template,IDE,ide,\
108 $(MODULES_DIR)/kernel/drivers/ide/*.o \
109 $(MODULES_DIR)/kernel/drivers/ide/*/*.o \
110 ,CONFIG_IDE,,20,pdc202xx_old ide-core ide-detect ide-disk))
111
112 $(eval $(call KMOD_template,LOOP,loop,\
113 $(MODULES_DIR)/kernel/drivers/block/loop.o \
114 ,CONFIG_BLK_DEV_LOOP,,20,loop))
115
116 $(eval $(call KMOD_template,NBD,nbd,\
117 $(MODULES_DIR)/kernel/drivers/block/nbd.o \
118 ,CONFIG_BLK_DEV_NBD,,20,nbd))
119
120
121 # Crypto
122
123 ifneq ($(wildcard $(MODULES_DIR)/kernel/crypto/*.o),)
124 CONFIG_CRYPTO:=m
125 endif
126 $(eval $(call KMOD_template,CRYPTO,crypto,\
127 $(MODULES_DIR)/kernel/crypto/*.o \
128 ,CONFIG_CRYPTO))
129
130
131 # Filesystems
132
133 $(eval $(call KMOD_template,FS_CIFS,fs-cifs,\
134 $(MODULES_DIR)/kernel/fs/cifs/cifs.o \
135 ,CONFIG_CIFS,,30,cifs))
136
137 $(eval $(call KMOD_template,FS_MINIX,fs-minix,\
138 $(MODULES_DIR)/kernel/fs/minix/*.o \
139 ,CONFIG_MINIX_FS,,30,minix))
140
141 $(eval $(call KMOD_template,FS_EXT2,fs-ext2,\
142 $(MODULES_DIR)/kernel/fs/ext2/*.o \
143 ,CONFIG_EXT2_FS,,30,ext2))
144
145 $(eval $(call KMOD_template,FS_EXT3,fs-ext3,\
146 $(MODULES_DIR)/kernel/fs/ext3/*.o \
147 $(MODULES_DIR)/kernel/fs/jbd/*.o \
148 ,CONFIG_EXT3_FS,,30,jbd ext3))
149
150 $(eval $(call KMOD_template,FS_HFSPLUS,fs-hfsplus,\
151 $(MODULES_DIR)/kernel/fs/hfsplus/*.o \
152 ,CONFIG_HFSPLUS_FS,,30,hfsplus))
153
154 $(eval $(call KMOD_template,FS_NFS,fs-nfs,\
155 $(MODULES_DIR)/kernel/fs/lockd/*.o \
156 $(MODULES_DIR)/kernel/fs/nfs/*.o \
157 $(MODULES_DIR)/kernel/net/sunrpc/*.o \
158 ,CONFIG_NFS_FS,,30,sunrpc lockd nfs))
159
160 $(eval $(call KMOD_template,FS_VFAT,fs-vfat,\
161 $(MODULES_DIR)/kernel/fs/vfat/vfat.o \
162 $(MODULES_DIR)/kernel/fs/fat/fat.o \
163 ,CONFIG_VFAT_FS,,30,fat vfat))
164
165 $(eval $(call KMOD_template,FS_XFS,fs-xfs,\
166 $(MODULES_DIR)/kernel/fs/xfs/*.o \
167 ,CONFIG_XFS_FS,,30,xfs))
168
169
170 # Multimedia
171
172 $(eval $(call KMOD_template,PWC,pwc,\
173 $(MODULES_DIR)/kernel/drivers/usb/pwc.o \
174 ,CONFIG_USB_PWC,kmod-videodev,63,pwc))
175
176 $(eval $(call KMOD_template,SOUNDCORE,soundcore,\
177 $(MODULES_DIR)/kernel/drivers/sound/soundcore.o \
178 ,CONFIG_SOUND,,30,soundcore))
179
180 $(eval $(call KMOD_template,VIDEODEV,videodev,\
181 $(MODULES_DIR)/kernel/drivers/media/video/videodev.o \
182 ,CONFIG_VIDEO_DEV,,62,videodev))
183
184
185 # Network devices
186
187 $(eval $(call KMOD_template,NET_3C59X,net-3c59x,\
188 $(MODULES_DIR)/kernel/drivers/net/3c59x.o \
189 ,CONFIG_VORTEX,,10,3c59x))
190
191 $(eval $(call KMOD_template,NET_8139TOO,net-8139too,\
192 $(MODULES_DIR)/kernel/drivers/net/8139too.o \
193 $(MODULES_DIR)/kernel/drivers/net/mii.o \
194 ,CONFIG_8139TOO,,10,mii 8139too))
195
196 $(eval $(call KMOD_template,NET_AIRO,net-airo,\
197 $(MODULES_DIR)/kernel/drivers/net/wireless/airo.o \
198 ,CONFIG_AIRO,,10,airo))
199
200 $(eval $(call KMOD_template,NET_E100,net-e100,\
201 $(MODULES_DIR)/kernel/drivers/net/e100.o \
202 ,CONFIG_E100,,10,e100))
203
204 $(eval $(call KMOD_template,NET_HERMES,net-hermes,\
205 $(MODULES_DIR)/kernel/drivers/net/wireless/hermes.o \
206 $(MODULES_DIR)/kernel/drivers/net/wireless/orinoco.o \
207 ,CONFIG_HERMES,,10,hermes orinoco))
208
209 $(eval $(call KMOD_template,NET_HERMES_PCI,net-hermes-pci,\
210 $(MODULES_DIR)/kernel/drivers/net/wireless/orinoco_pci.o \
211 ,CONFIG_PCI_HERMES,kmod-net-hermes,11,orinoco_pci))
212
213 $(eval $(call KMOD_template,NET_HERMES_PCI,net-hermes-plx,\
214 $(MODULES_DIR)/kernel/drivers/net/wireless/orinoco_plx.o \
215 ,CONFIG_PLX_HERMES,kmod-net-hermes,11,orinoco_plx))
216
217 $(eval $(call KMOD_template,NET_NATSEMI,net-natsemi,\
218 $(MODULES_DIR)/kernel/drivers/net/natsemi.o \
219 ,CONFIG_NATSEMI,,10,natsemi))
220
221 $(eval $(call KMOD_template,NET_PRISM54,net-prism54,\
222 $(MODULES_DIR)/kernel/drivers/net/wireless/prism54/prism54.o \
223 ,CONFIG_PRISM54,,10,prism54))
224
225
226 # PCMCIA/CardBus
227
228 $(eval $(call KMOD_template,PCMCIA_CORE,pcmcia-core,\
229 $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_core.o \
230 $(MODULES_DIR)/kernel/drivers/pcmcia/yenta_socket.o \
231 $(MODULES_DIR)/kernel/drivers/pcmcia/ds.o \
232 ,CONFIG_PCMCIA,,50,pcmcia_core yenta_socket ds))
233
234 $(eval $(call KMOD_template,PCMCIA_SERIAL,pcmcia-serial,\
235 $(MODULES_DIR)/kernel/drivers/char/pcmcia/serial_cs.o \
236 ,CONFIG_PCMCIA_SERIAL_CS,kmod-pcmcia-core,51,serial_cs))
237
238
239 # USB
240
241 $(eval $(call KMOD_template,USB,usb-core,\
242 $(MODULES_DIR)/kernel/drivers/usb/usbcore.o \
243 ,CONFIG_USB,,50,usbcore))
244
245 $(eval $(call KMOD_template,USB_OHCI,usb-ohci,\
246 $(MODULES_DIR)/kernel/drivers/usb/host/usb-ohci.o \
247 ,CONFIG_USB_OHCI,kmod-usb-core,60,usb-ohci))
248
249 $(eval $(call KMOD_template,USB_UHCI,usb-uhci,\
250 $(MODULES_DIR)/kernel/drivers/usb/host/uhci.o \
251 ,CONFIG_USB_UHCI_ALT,kmod-usb-core,60,uhci))
252
253 $(eval $(call KMOD_template,USB2,usb2,\
254 $(MODULES_DIR)/kernel/drivers/usb/host/ehci-hcd.o \
255 ,CONFIG_USB_EHCI_HCD,kmod-usb-core,60,ehci-hcd))
256
257 $(eval $(call KMOD_template,USB_ACM,usb-acm,\
258 $(MODULES_DIR)/kernel/drivers/usb/acm.o \
259 ,CONFIG_USB_ACM))
260
261 $(eval $(call KMOD_template,USB_AUDIO,usb-audio,\
262 $(MODULES_DIR)/kernel/drivers/usb/audio.o \
263 ,CONFIG_USB_AUDIO,kmod-soundcore kmod-usb-core,61,audio))
264
265 $(eval $(call KMOD_template,USB_PRINTER,usb-printer,\
266 $(MODULES_DIR)/kernel/drivers/usb/printer.o \
267 ,CONFIG_USB_PRINTER,kmod-usb-core,60,printer))
268
269 $(eval $(call KMOD_template,USB_SERIAL,usb-serial,\
270 $(MODULES_DIR)/kernel/drivers/usb/serial/usbserial.o \
271 ,CONFIG_USB_SERIAL,kmod-usb-core,60,usbserial))
272
273 $(eval $(call KMOD_template,USB_SERIAL_BELKIN,usb-serial-belkin,\
274 $(MODULES_DIR)/kernel/drivers/usb/serial/belkin_sa.o \
275 ,CONFIG_USB_SERIAL_BELKIN,kmod-usb-serial,61,belkin_sa))
276
277 $(eval $(call KMOD_template,USB_SERIAL_FTDI,usb-serial-ftdi,\
278 $(MODULES_DIR)/kernel/drivers/usb/serial/ftdi_sio.o \
279 ,CONFIG_USB_SERIAL_FTDI_SIO,kmod-usb-serial,61,ftdi_sio))
280
281 $(eval $(call KMOD_template,USB_SERIAL_MCT_U232,usb-serial-mct-u232,\
282 $(MODULES_DIR)/kernel/drivers/usb/serial/mct_u232.o \
283 ,CONFIG_USB_SERIAL_MCT_U232,kmod-usb-serial,61,mct_u232))
284
285 $(eval $(call KMOD_template,USB_SERIAL_PL2303,usb-serial-pl2303,\
286 $(MODULES_DIR)/kernel/drivers/usb/serial/pl2303.o \
287 ,CONFIG_USB_SERIAL_PL2303,kmod-usb-serial,61,pl2303))
288
289 $(eval $(call KMOD_template,USB_SERIAL_VISOR,usb-serial-visor,\
290 $(MODULES_DIR)/kernel/drivers/usb/serial/visor.o \
291 ,CONFIG_USB_SERIAL_VISOR,kmod-usb-serial,61,visor))
292
293 $(eval $(call KMOD_template,USB_STORAGE,usb-storage,\
294 $(MODULES_DIR)/kernel/drivers/scsi/*.o \
295 $(MODULES_DIR)/kernel/drivers/usb/storage/*.o \
296 ,CONFIG_USB_STORAGE,kmod-usb-core,60,scsi_mod sd_mod usb-storage))
297
298
299 # Misc. devices
300
301 $(eval $(call KMOD_template,AX25,ax25,\
302 $(MODULES_DIR)/kernel/net/ax25/ax25.o \
303 $(MODULES_DIR)/kernel/drivers/net/hamradio/mkiss.o \
304 ,CONFIG_AX25,,90,ax25 mkiss))
305
306 $(eval $(call KMOD_template,BLUETOOTH,bluetooth,\
307 $(MODULES_DIR)/kernel/net/bluetooth/*.o \
308 $(MODULES_DIR)/kernel/net/bluetooth/rfcomm/*.o \
309 $(MODULES_DIR)/kernel/drivers/bluetooth/*.o \
310 ,CONFIG_BLUEZ))
311
312 $(eval $(call KMOD_template,SOFTDOG,softdog,\
313 $(MODULES_DIR)/kernel/drivers/char/softdog.o \
314 ,CONFIG_SOFT_WATCHDOG,,95,softdog))
315
316
317
This page took 0.052899 seconds and 3 git commands to generate.