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