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