2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(INCLUDE_DIR
)/netfilter.mk
12 $(eval
$(call KMOD_template
,ATM
,atm
,\
13 $(MODULES_DIR
)/kernel
/net
/atm
/atm.ko \
14 $(MODULES_DIR
)/kernel
/net
/atm
/br2684.ko \
15 $(MODULES_DIR
)/kernel
/drivers
/atm
/atmtcp.ko \
18 $(eval
$(call KMOD_template
,GRE
,gre
,\
19 $(MODULES_DIR
)/kernel
/net
/ipv4
/ip_gre.ko \
22 $(eval
$(call KMOD_template
,IMQ
,imq
,\
23 $(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/*IMQ
*.ko \
24 $(MODULES_DIR
)/kernel
/drivers
/net
/imq.ko \
27 $(eval
$(call KMOD_template
,IPIP
,ipip
,\
28 $(MODULES_DIR
)/kernel
/net
/ipv4
/ipip.ko \
29 ,CONFIG_NET_IPIP
,,60,ipip
))
31 $(eval
$(call KMOD_template
,IPV6
,ipv6
,\
32 $(MODULES_DIR
)/kernel
/net
/ipv6
/ipv6.ko \
33 ,CONFIG_IPV6
,,20,ipv6
))
35 $(eval
$(call KMOD_template
,PPP
,ppp
,\
36 $(MODULES_DIR
)/kernel
/drivers
/net
/ppp_async.ko \
37 $(MODULES_DIR
)/kernel
/drivers
/net
/ppp_generic.ko \
38 $(MODULES_DIR
)/kernel
/drivers
/net
/slhc.ko \
39 $(MODULES_DIR
)/kernel
/lib
/crc-ccitt.ko \
42 #$(eval $(call KMOD_template,MPPE,mppe,\
43 # $(MODULES_DIR)/kernel/drivers/net/ppp_mppe_mppc.ko \
44 #,CONFIG_PPP_MPPE_MPPC))
46 $(eval
$(call KMOD_template
,PPPOATM
,pppoatm
,\
47 $(MODULES_DIR
)/kernel
/net
/atm
/pppoatm.ko \
50 $(eval
$(call KMOD_template
,PPPOE
,pppoe
,\
51 $(MODULES_DIR
)/kernel
/drivers
/net
/pppoe.ko \
52 $(MODULES_DIR
)/kernel
/drivers
/net
/pppox.ko \
55 $(eval
$(call KMOD_template
,SCHED
,sched
,\
56 $(MODULES_DIR
)/kernel
/net
/sched
/*.ko \
59 $(eval
$(call KMOD_template
,TUN
,tun
,\
60 $(MODULES_DIR
)/kernel
/drivers
/net
/tun.ko \
64 # Filtering / Firewalling
66 $(eval
$(call KMOD_template
,ARPTABLES
,arptables
,\
67 $(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/arp
*.ko \
68 ,CONFIG_IP_NF_ARPTABLES
))
70 $(eval
$(call KMOD_template
,EBTABLES
,ebtables
,\
71 $(MODULES_DIR
)/kernel
/net
/bridge
/netfilter
/*.ko \
72 ,CONFIG_BRIDGE_NF_EBTABLES
))
74 # metapackage for compatibility ...
75 $(eval
$(call KMOD_template
,IPTABLES_EXTRA
,iptables-extra
,\
76 ,,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
))
78 $(eval
$(call KMOD_template
,IPT_CONNTRACK
,ipt-conntrack
,\
79 $(foreach mod
,$(IPT_CONNTRACK-m
),$(MODULES_DIR
)/kernel
/net
/$(mod
).ko
) \
82 $(eval
$(call KMOD_template
,IPT_EXTRA
,ipt-extra
,\
83 $(foreach mod
,$(IPT_EXTRA-m
),$(MODULES_DIR
)/kernel
/net
/$(mod
).ko
) \
86 $(eval
$(call KMOD_template
,IPT_FILTER
,ipt-filter
,\
87 $(foreach mod
,$(IPT_FILTER-m
),$(MODULES_DIR
)/kernel
/net
/$(mod
).ko
) \
90 $(eval
$(call KMOD_template
,IPT_IPOPT
,ipt-ipopt
,\
91 $(foreach mod
,$(IPT_IPOPT-m
),$(MODULES_DIR
)/kernel
/net
/$(mod
).ko
) \
94 $(eval
$(call KMOD_template
,IPT_IPSEC
,ipt-ipsec
,\
95 $(foreach mod
,$(IPT_IPSEC-m
),$(MODULES_DIR
)/kernel
/net
/$(mod
).ko
) \
98 $(eval
$(call KMOD_template
,IPT_NAT
,ipt-nat
,\
99 $(foreach mod
,$(IPT_NAT-m
),$(MODULES_DIR
)/kernel
/net
/$(mod
).ko
) \
102 $(eval
$(call KMOD_template
,IPT_NAT_EXTRA
,ipt-nat-extra
,\
103 $(foreach mod
,$(IPT_NAT_EXTRA-m
),$(MODULES_DIR
)/kernel
/net
/$(mod
).ko
) \
104 ,,,40,$(IPT_NAT_EXTRA-m
)))
106 $(eval
$(call KMOD_template
,IPT_QUEUE
,ipt-queue
,\
107 $(foreach mod
,$(IPT_QUEUE-m
),$(MODULES_DIR
)/kernel
/net
/$(mod
).ko
) \
110 $(eval
$(call KMOD_template
,IPT_ULOG
,ipt-ulog
,\
111 $(foreach mod
,$(IPT_ULOG-m
),$(MODULES_DIR
)/kernel
/net
/$(mod
).ko
) \
114 $(eval
$(call KMOD_template
,IP6TABLES
,ip6tables
,\
115 $(MODULES_DIR
)/kernel
/net
/ipv6
/netfilter
/ip
*.ko \
116 ,CONFIG_IP6_NF_IPTABLES
,kmod-ipv6
))
121 $(eval
$(call KMOD_template
,LOOP
,loop
,\
122 $(MODULES_DIR
)/kernel
/drivers
/block
/loop.ko \
123 ,CONFIG_BLK_DEV_LOOP
,,20,loop
))
125 $(eval
$(call KMOD_template
,NBD
,nbd
,\
126 $(MODULES_DIR
)/kernel
/drivers
/block
/nbd.ko \
127 ,CONFIG_BLK_DEV_NBD
,,20,nbd
))
131 $(eval
$(call KMOD_template
,FS_CIFS
,fs-cifs
,\
132 $(MODULES_DIR
)/kernel
/fs
/cifs
/cifs.ko \
133 ,CONFIG_CIFS
,kmod-nls-base
,30,cifs
))
135 $(eval
$(call KMOD_template
,FS_MINIX
,fs-minix
,\
136 $(MODULES_DIR
)/kernel
/fs
/minix
/minix.ko \
137 ,CONFIG_MINIX_FS
,,30,minix
))
139 $(eval
$(call KMOD_template
,FS_EXT2
,fs-ext2
,\
140 $(MODULES_DIR
)/kernel
/fs
/ext2
/ext2.ko \
141 ,CONFIG_EXT2_FS
,,30,ext2
))
143 $(eval
$(call KMOD_template
,FS_EXT3
,fs-ext3
,\
144 $(MODULES_DIR
)/kernel
/fs
/ext3
/ext3.ko \
145 $(MODULES_DIR
)/kernel
/fs
/jbd
/jbd.ko \
146 ,CONFIG_EXT3_FS
,,30,jbd ext3
))
148 $(eval
$(call KMOD_template
,FS_HFSPLUS
,fs-hfsplus
,\
149 $(MODULES_DIR
)/kernel
/fs
/hfsplus
/hfsplus.ko \
150 ,CONFIG_HFSPLUS_FS
,kmod-nls-base
,30,hfsplus
))
152 $(eval
$(call KMOD_template
,FS_NFS
,fs-nfs
,\
153 $(MODULES_DIR
)/kernel
/fs
/lockd
/lockd.ko \
154 $(MODULES_DIR
)/kernel
/fs
/nfs
/nfs.ko \
155 $(MODULES_DIR
)/kernel
/net
/sunrpc
/sunrpc.ko \
156 ,CONFIG_NFS_FS
,,30,sunrpc lockd nfs
))
158 $(eval
$(call KMOD_template
,FS_VFAT
,fs-vfat
,\
159 $(MODULES_DIR
)/kernel
/fs
/fat
/fat.ko \
160 $(MODULES_DIR
)/kernel
/fs
/vfat
/vfat.ko \
161 ,CONFIG_VFAT_FS
,kmod-nls-base
,30,fat vfat
))
163 $(eval
$(call KMOD_template
,FS_XFS
,fs-xfs
,\
164 $(MODULES_DIR
)/kernel
/fs
/xfs
/xfs.ko \
165 ,CONFIG_XFS_FS
,,30,xfs
))
170 $(eval
$(call KMOD_template
,PWC
,pwc
,\
171 $(MODULES_DIR
)/kernel
/drivers
/usb
/media
/pwc
/pwc.ko \
172 ,CONFIG_USB_PWC
,kmod-videodev
,63,pwc
))
174 $(eval
$(call KMOD_template
,SOUNDCORE
,soundcore
,\
175 $(MODULES_DIR
)/kernel
/sound
/soundcore.ko \
176 ,CONFIG_SOUND
,,30,soundcore
))
178 $(eval
$(call KMOD_template
,VIDEODEV
,videodev
,\
179 $(MODULES_DIR
)/kernel
/drivers
/media
/video
/v4l1-compat.ko \
180 $(MODULES_DIR
)/kernel
/drivers
/media
/video
/v4l2-common.ko \
181 $(MODULES_DIR
)/kernel
/drivers
/media
/video
/videodev.ko \
182 ,CONFIG_VIDEO_DEV
,,62,videodev
))
187 $(eval
$(call KMOD_template
,NLS_BASE
,nls-base
,\
188 $(MODULES_DIR
)/kernel
/fs
/nls
/nls_base.ko \
189 ,CONFIG_NLS
,,20,nls_base
))
191 $(eval
$(call KMOD_template
,NLS_CP437
,nls-cp437
,\
192 $(MODULES_DIR
)/kernel
/fs
/nls
/nls_cp437.ko \
193 ,CONFIG_NLS_CODEPAGE_437
,,20,nls_cp437
))
195 $(eval
$(call KMOD_template
,NLS_CP850
,nls-cp850
,\
196 $(MODULES_DIR
)/kernel
/fs
/nls
/nls_cp850.ko \
197 ,CONFIG_NLS_CODEPAGE_850
,,20,nls_cp850
))
199 $(eval
$(call KMOD_template
,NLS_ISO8859_1
,nls-iso8859-1
,\
200 $(MODULES_DIR
)/kernel
/fs
/nls
/nls_iso8859-1.ko \
201 ,CONFIG_NLS_ISO8859_1
,,20,nls_iso8859-1
))
203 $(eval
$(call KMOD_template
,NLS_ISO8859_15
,nls-iso8859-15
,\
204 $(MODULES_DIR
)/kernel
/fs
/nls
/nls_iso8859-15.ko \
205 ,CONFIG_NLS_ISO8859_15
,,20,nls_iso8859-15
))
207 $(eval
$(call KMOD_template
,NLS_UTF8
,nls-utf8
,\
208 $(MODULES_DIR
)/kernel
/fs
/nls
/nls_utf8.ko \
209 ,CONFIG_NLS_UTF8
,,20,nls_utf8
))
214 $(eval
$(call KMOD_template
,NET_3C59X
,net-3c59x
,\
215 $(MODULES_DIR
)/kernel
/drivers
/net
/3c59x.ko \
216 ,CONFIG_VORTEX
,,10,3c59x
))
218 $(eval
$(call KMOD_template
,NET_8139TOO
,net-8139too
,\
219 $(MODULES_DIR
)/kernel
/drivers
/net
/8139too.ko \
220 ,CONFIG_8139TOO
,,10,8139too
))
222 $(eval
$(call KMOD_template
,NET_AIRO
,net-airo
,\
223 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/airo.ko \
224 ,CONFIG_AIRO
,,10,airo
))
226 $(eval
$(call KMOD_template
,NET_E100
,net-e100
,\
227 $(MODULES_DIR
)/kernel
/drivers
/net
/e100.ko \
228 ,CONFIG_E100
,,10,e100
))
230 $(eval
$(call KMOD_template
,NET_HERMES
,net-hermes
,\
231 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/hermes.ko \
232 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco.ko \
233 ,CONFIG_HERMES
,,10,hermes orinoco
))
235 $(eval
$(call KMOD_template
,NET_HERMES_PCI
,net-hermes-pci
,\
236 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco_pci.ko \
237 ,CONFIG_PCI_HERMES
,kmod-net-hermes
,11,orinoco_pci
))
239 $(eval
$(call KMOD_template
,NET_HERMES_PCI
,net-hermes-plx
,\
240 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco_plx.ko \
241 ,CONFIG_PLX_HERMES
,kmod-net-hermes
,11,orinoco_plx
))
243 $(eval
$(call KMOD_template
,NET_NATSEMI
,net-natsemi
,\
244 $(MODULES_DIR
)/kernel
/drivers
/net
/natsemi.ko \
245 ,CONFIG_NATSEMI
,,10,natsemi
))
247 $(eval
$(call KMOD_template
,NET_PRISM54
,net-prism54
,\
248 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/prism54
/prism54.ko \
249 ,CONFIG_PRISM54
,,10,prism54
))
254 $(eval
$(call KMOD_template
,PCMCIA_CORE
,pcmcia-core
,\
255 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/pcmcia.ko \
256 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/pcmcia_core.ko \
257 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/yenta_socket.ko \
258 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/rsrc_nonstatic.ko \
259 ,CONFIG_PCMCIA
,,50,pcmcia_core pcmcia yenta_socket rsrc_nonstatic
))
261 $(eval
$(call KMOD_template
,PCMCIA_SERIAL
,pcmcia-serial
,\
262 $(MODULES_DIR
)/kernel
/drivers
/serial
/serial_cs.ko \
263 ,CONFIG_SERIAL_8250_CS
))
268 $(eval
$(call KMOD_template
,USB
,usb-core
,\
269 $(MODULES_DIR
)/kernel
/drivers
/usb
/core
/usbcore.ko \
270 ,CONFIG_USB
,,50,usbcore
))
272 $(eval
$(call KMOD_template
,USB_OHCI
,usb-ohci
,\
273 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/ohci-hcd.ko \
274 ,CONFIG_USB_OHCI_HCD
,kmod-usb-core
,60,ohci-hcd
))
276 $(eval
$(call KMOD_template
,USB_UHCI
,usb-uhci
,\
277 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/uhci-hcd.ko \
278 ,CONFIG_USB_UHCI_HCD
,kmod-usb-core
,60,uhci-hcd
))
280 $(eval
$(call KMOD_template
,USB2
,usb2
,\
281 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/ehci-hcd.ko \
282 ,CONFIG_USB_EHCI_HCD
,kmod-usb-core
,60,ehci-hcd
))
284 $(eval
$(call KMOD_template
,USB_ACM
,usb-acm
,\
285 $(MODULES_DIR
)/kernel
/drivers
/usb
/class
/cdc-acm.ko \
288 $(eval
$(call KMOD_template
,USB_AUDIO
,usb-audio
,\
289 $(MODULES_DIR
)/kernel
/drivers
/usb
/class
/audio.ko \
290 ,CONFIG_USB_AUDIO
,kmod-soundcore kmod-usb-core
,61,audio
))
292 $(eval
$(call KMOD_template
,USB_PRINTER
,usb-printer
,\
293 $(MODULES_DIR
)/kernel
/drivers
/usb
/class
/usblp.ko \
294 ,CONFIG_USB_PRINTER
,kmod-usb-core
,60,usblp
))
296 $(eval
$(call KMOD_template
,USB_SERIAL
,usb-serial
,\
297 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/usbserial.ko \
298 ,CONFIG_USB_SERIAL
,kmod-usb-core
,60,usbserial
))
300 $(eval
$(call KMOD_template
,USB_SERIAL_BELKIN
,usb-serial-belkin
,\
301 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/belkin_sa.ko \
302 ,CONFIG_USB_SERIAL_BELKIN
,kmod-usb-serial
,61,belkin_sa
))
304 $(eval
$(call KMOD_template
,USB_SERIAL_FTDI
,usb-serial-ftdi
,\
305 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/ftdi_sio.ko \
306 ,CONFIG_USB_SERIAL_FTDI_SIO
,kmod-usb-serial
,61,ftdi_sio
))
308 $(eval
$(call KMOD_template
,USB_SERIAL_MCT_U232
,usb-serial-mct-u232
,\
309 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/mct_u232.ko \
310 ,CONFIG_USB_SERIAL_MCT_U232
,kmod-usb-serial
,61,mct_u232
))
312 $(eval
$(call KMOD_template
,USB_SERIAL_PL2303
,usb-serial-pl2303
,\
313 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/pl2303.ko \
314 ,CONFIG_USB_SERIAL_PL2303
,kmod-usb-serial
,61,pl2303
))
316 $(eval
$(call KMOD_template
,USB_SERIAL_VISOR
,usb-serial-visor
,\
317 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/visor.ko \
318 ,CONFIG_USB_SERIAL_VISOR
,kmod-usb-serial
,61,visor
))
320 $(eval
$(call KMOD_template
,USB_STORAGE
,usb-storage
,\
321 $(MODULES_DIR
)/kernel
/drivers
/scsi
/scsi_mod.ko \
322 $(MODULES_DIR
)/kernel
/drivers
/scsi
/sd_mod.ko \
323 $(MODULES_DIR
)/kernel
/drivers
/usb
/storage
/usb-storage.ko \
324 ,CONFIG_USB_STORAGE
,kmod-usb-core
,60,scsi_mod sd_mod usb-storage
))
326 $(eval
$(call KMOD_template
,USB_ATM
,usb-atm
,\
327 $(MODULES_DIR
)/kernel
/drivers
/usb
/atm
/usbatm.ko \
328 ,CONFIG_USB_ATM
,kmod-usb-atm
,50,usbatm
))
330 $(eval
$(call KMOD_template
,USB_ATM_SPEEDTOUCH
,usb-atm-speedtouch
,\
331 $(MODULES_DIR
)/kernel
/drivers
/usb
/atm
/speedtch.ko \
332 ,CONFIG_USB_SPEEDTOUCH
,kmod-usb-atm-speedtouch
,50,speedtch
))
336 $(eval
$(call KMOD_template
,AX25
,ax25
,\
337 $(MODULES_DIR
)/kernel
/net
/ax25
/ax25.ko \
338 $(MODULES_DIR
)/kernel
/drivers
/net
/hamradio
/mkiss.ko \
339 ,CONFIG_AX25
,,90,ax25 mkiss
))
341 $(eval
$(call KMOD_template
,BLUETOOTH
,bluetooth
,\
342 $(MODULES_DIR
)/kernel
/net
/bluetooth
/bluetooth.ko \
343 $(MODULES_DIR
)/kernel
/net
/bluetooth
/l2cap.ko \
344 $(MODULES_DIR
)/kernel
/net
/bluetooth
/sco.ko \
345 $(MODULES_DIR
)/kernel
/net
/bluetooth
/rfcomm
/rfcomm.ko \
346 $(MODULES_DIR
)/kernel
/drivers
/bluetooth
/hci_uart.ko \
347 $(MODULES_DIR
)/kernel
/drivers
/bluetooth
/hci_usb.ko \