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.
7 include $(INCLUDE_DIR
)/netfilter.mk
11 $(eval
$(call KMOD_template
,ATM
,atm
,\
12 $(MODULES_DIR
)/kernel
/net
/atm
/atm.o \
13 $(MODULES_DIR
)/kernel
/net
/atm
/br2684.o \
16 $(eval
$(call KMOD_template
,GRE
,gre
,\
17 $(MODULES_DIR
)/kernel
/net
/ipv4
/ip_gre.o \
20 $(eval
$(call KMOD_template
,IPIP
,ipip
,\
21 $(MODULES_DIR
)/kernel
/net
/ipv4
/ipip.o \
22 ,CONFIG_NET_IPIP
,,60,ipip
))
24 $(eval
$(call KMOD_template
,IPV6
,ipv6
,\
25 $(MODULES_DIR
)/kernel
/net
/ipv6
/ipv6.o \
26 ,CONFIG_IPV6
,,20,ipv6
))
28 $(eval
$(call KMOD_template
,PPP
,ppp
,\
29 $(MODULES_DIR
)/kernel
/drivers
/net
/ppp_async.o \
30 $(MODULES_DIR
)/kernel
/drivers
/net
/ppp_generic.o \
31 $(MODULES_DIR
)/kernel
/drivers
/net
/slhc.o \
32 $(MODULES_DIR
)/kernel
/drivers
/net
/pppox.o \
35 $(eval
$(call KMOD_template
,MPPE
,mppe
,\
36 $(MODULES_DIR
)/kernel
/drivers
/net
/ppp_mppe_mppc.o \
37 ,CONFIG_PPP_MPPE_MPPC
))
39 $(eval
$(call KMOD_template
,PPPOATM
,pppoatm
,\
40 $(MODULES_DIR
)/kernel
/net
/atm
/pppoatm.o \
43 $(eval
$(call KMOD_template
,PPPOE
,pppoe
,\
44 $(MODULES_DIR
)/kernel
/drivers
/net
/pppoe.o \
47 $(eval
$(call KMOD_template
,SCHED
,sched
,\
48 $(MODULES_DIR
)/kernel
/net
/sched
/*.o \
51 $(eval
$(call KMOD_template
,TUN
,tun
,\
52 $(MODULES_DIR
)/kernel
/drivers
/net
/tun.o \
57 $(eval
$(call KMOD_template
,LOOP
,loop
,\
58 $(MODULES_DIR
)/kernel
/drivers
/block
/loop.o \
59 ,CONFIG_BLK_DEV_LOOP
,,20,loop
))
61 $(eval
$(call KMOD_template
,NBD
,nbd
,\
62 $(MODULES_DIR
)/kernel
/drivers
/block
/nbd.o \
63 ,CONFIG_BLK_DEV_NBD
,,20,nbd
))
68 $(eval
$(call KMOD_template
,FS_CIFS
,fs-cifs
,\
69 $(MODULES_DIR
)/kernel
/fs
/cifs
/cifs.o \
70 ,CONFIG_CIFS
,,30,cifs
))
72 $(eval
$(call KMOD_template
,FS_MINIX
,fs-minix
,\
73 $(MODULES_DIR
)/kernel
/fs
/minix
/*.o \
74 ,CONFIG_MINIX_FS
,,30,minix
))
76 $(eval
$(call KMOD_template
,FS_EXT2
,fs-ext2
,\
77 $(MODULES_DIR
)/kernel
/fs
/ext2
/*.o \
78 ,CONFIG_EXT2_FS
,,30,ext2
))
80 $(eval
$(call KMOD_template
,FS_EXT3
,fs-ext3
,\
81 $(MODULES_DIR
)/kernel
/fs
/ext3
/*.o \
82 $(MODULES_DIR
)/kernel
/fs
/jbd
/*.o \
83 ,CONFIG_EXT3_FS
,,30,jbd ext3
))
85 $(eval
$(call KMOD_template
,FS_HFSPLUS
,fs-hfsplus
,\
86 $(MODULES_DIR
)/kernel
/fs
/hfsplus
/*.o \
87 ,CONFIG_HFSPLUS_FS
,,30,hfsplus
))
89 $(eval
$(call KMOD_template
,FS_NFS
,fs-nfs
,\
90 $(MODULES_DIR
)/kernel
/fs
/lockd
/*.o \
91 $(MODULES_DIR
)/kernel
/fs
/nfs
/*.o \
92 $(MODULES_DIR
)/kernel
/net
/sunrpc
/*.o \
93 ,CONFIG_NFS_FS
,,30,sunrpc lockd nfs
))
95 $(eval
$(call KMOD_template
,FS_VFAT
,fs-vfat
,\
96 $(MODULES_DIR
)/kernel
/fs
/vfat
/vfat.o \
97 $(MODULES_DIR
)/kernel
/fs
/fat
/fat.o \
98 ,CONFIG_VFAT_FS
,,30,fat vfat
))
100 $(eval
$(call KMOD_template
,FS_XFS
,fs-xfs
,\
101 $(MODULES_DIR
)/kernel
/fs
/xfs
/*.o \
102 ,CONFIG_XFS_FS
,,30,xfs
))
107 $(eval
$(call KMOD_template
,PWC
,pwc
,\
108 $(MODULES_DIR
)/kernel
/drivers
/usb
/pwc.o \
109 ,CONFIG_USB_PWC
,kmod-videodev
,63,pwc
))
111 $(eval
$(call KMOD_template
,SOUNDCORE
,soundcore
,\
112 $(MODULES_DIR
)/kernel
/drivers
/sound
/soundcore.o \
113 ,CONFIG_SOUND
,,30,soundcore
))
115 $(eval
$(call KMOD_template
,VIDEODEV
,videodev
,\
116 $(MODULES_DIR
)/kernel
/drivers
/media
/video
/videodev.o \
117 ,CONFIG_VIDEO_DEV
,,62,videodev
))
122 $(eval
$(call KMOD_template
,NET_3C59X
,net-3c59x
,\
123 $(MODULES_DIR
)/kernel
/drivers
/net
/3c59x.o \
124 ,CONFIG_VORTEX
,,10,3c59x
))
126 $(eval
$(call KMOD_template
,NET_8139TOO
,net-8139too
,\
127 $(MODULES_DIR
)/kernel
/drivers
/net
/8139too.o \
128 $(MODULES_DIR
)/kernel
/drivers
/net
/mii.o \
129 ,CONFIG_8139TOO
,,10,mii
8139too
))
131 $(eval
$(call KMOD_template
,NET_AIRO
,net-airo
,\
132 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/airo.o \
133 ,CONFIG_AIRO
,,10,airo
))
135 $(eval
$(call KMOD_template
,NET_E100
,net-e100
,\
136 $(MODULES_DIR
)/kernel
/drivers
/net
/e100.o \
137 ,CONFIG_E100
,,10,e100
))
139 $(eval
$(call KMOD_template
,NET_HERMES
,net-hermes
,\
140 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/hermes.o \
141 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco.o \
142 ,CONFIG_HERMES
,,10,hermes orinoco
))
144 $(eval
$(call KMOD_template
,NET_HERMES_PCI
,net-hermes-pci
,\
145 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco_pci.o \
146 ,CONFIG_PCI_HERMES
,kmod-net-hermes
,11,orinoco_pci
))
148 $(eval
$(call KMOD_template
,NET_HERMES_PCI
,net-hermes-plx
,\
149 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco_plx.o \
150 ,CONFIG_PLX_HERMES
,kmod-net-hermes
,11,orinoco_plx
))
152 $(eval
$(call KMOD_template
,NET_NATSEMI
,net-natsemi
,\
153 $(MODULES_DIR
)/kernel
/drivers
/net
/natsemi.o \
154 ,CONFIG_NATSEMI
,,10,natsemi
))
156 $(eval
$(call KMOD_template
,NET_PRISM54
,net-prism54
,\
157 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/prism54
/prism54.o \
158 ,CONFIG_PRISM54
,,10,prism54
))
163 $(eval
$(call KMOD_template
,PCMCIA_CORE
,pcmcia-core
,\
164 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/pcmcia_core.o \
165 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/yenta_socket.o \
166 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/ds.o \
167 ,CONFIG_PCMCIA
,,50,pcmcia_core yenta_socket ds
))
169 $(eval
$(call KMOD_template
,PCMCIA_SERIAL
,pcmcia-serial
,\
170 $(MODULES_DIR
)/kernel
/drivers
/char
/pcmcia
/serial_cs.o \
171 ,CONFIG_PCMCIA_SERIAL_CS
,kmod-pcmcia-core
,51,serial_cs
))
176 $(eval
$(call KMOD_template
,USB
,usb-core
,\
177 $(MODULES_DIR
)/kernel
/drivers
/usb
/usbcore.o \
178 ,CONFIG_USB
,,50,usbcore
))
180 $(eval
$(call KMOD_template
,USB_OHCI
,usb-ohci
,\
181 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/usb-ohci.o \
182 ,CONFIG_USB_OHCI
,kmod-usb-core
,60,usb-ohci
))
184 $(eval
$(call KMOD_template
,USB_UHCI
,usb-uhci
,\
185 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/uhci.o \
186 ,CONFIG_USB_UHCI_ALT
,kmod-usb-core
,60,uhci
))
188 $(eval
$(call KMOD_template
,USB2
,usb2
,\
189 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/ehci-hcd.o \
190 ,CONFIG_USB_EHCI_HCD
,kmod-usb-core
,60,ehci-hcd
))
192 $(eval
$(call KMOD_template
,USB_ACM
,usb-acm
,\
193 $(MODULES_DIR
)/kernel
/drivers
/usb
/acm.o \
196 $(eval
$(call KMOD_template
,USB_AUDIO
,usb-audio
,\
197 $(MODULES_DIR
)/kernel
/drivers
/usb
/audio.o \
198 ,CONFIG_USB_AUDIO
,kmod-soundcore kmod-usb-core
,61,audio
))
200 $(eval
$(call KMOD_template
,USB_PRINTER
,usb-printer
,\
201 $(MODULES_DIR
)/kernel
/drivers
/usb
/printer.o \
202 ,CONFIG_USB_PRINTER
,kmod-usb-core
,60,printer
))
204 $(eval
$(call KMOD_template
,USB_SERIAL
,usb-serial
,\
205 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/usbserial.o \
206 ,CONFIG_USB_SERIAL
,kmod-usb-core
,60,usbserial
))
208 $(eval
$(call KMOD_template
,USB_SERIAL_BELKIN
,usb-serial-belkin
,\
209 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/belkin_sa.o \
210 ,CONFIG_USB_SERIAL_BELKIN
,kmod-usb-serial
,61,belkin_sa
))
212 $(eval
$(call KMOD_template
,USB_SERIAL_FTDI
,usb-serial-ftdi
,\
213 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/ftdi_sio.o \
214 ,CONFIG_USB_SERIAL_FTDI_SIO
,kmod-usb-serial
,61,ftdi_sio
))
216 $(eval
$(call KMOD_template
,USB_SERIAL_MCT_U232
,usb-serial-mct-u232
,\
217 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/mct_u232.o \
218 ,CONFIG_USB_SERIAL_MCT_U232
,kmod-usb-serial
,61,mct_u232
))
220 $(eval
$(call KMOD_template
,USB_SERIAL_PL2303
,usb-serial-pl2303
,\
221 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/pl2303.o \
222 ,CONFIG_USB_SERIAL_PL2303
,kmod-usb-serial
,61,pl2303
))
224 $(eval
$(call KMOD_template
,USB_SERIAL_VISOR
,usb-serial-visor
,\
225 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/visor.o \
226 ,CONFIG_USB_SERIAL_VISOR
,kmod-usb-serial
,61,visor
))
228 $(eval
$(call KMOD_template
,USB_STORAGE
,usb-storage
,\
229 $(MODULES_DIR
)/kernel
/drivers
/scsi
/*.o \
230 $(MODULES_DIR
)/kernel
/drivers
/usb
/storage
/*.o \
231 ,CONFIG_USB_STORAGE
,kmod-usb-core
,60,scsi_mod sd_mod usb-storage
))
236 $(eval
$(call KMOD_template
,AX25
,ax25
,\
237 $(MODULES_DIR
)/kernel
/net
/ax25
/ax25.o \
238 $(MODULES_DIR
)/kernel
/drivers
/net
/hamradio
/mkiss.o \
239 ,CONFIG_AX25
,,90,ax25 mkiss
))
241 $(eval
$(call KMOD_template
,BLUETOOTH
,bluetooth
,\
242 $(MODULES_DIR
)/kernel
/net
/bluetooth
/*.o \
243 $(MODULES_DIR
)/kernel
/net
/bluetooth
/rfcomm
/*.o \
244 $(MODULES_DIR
)/kernel
/drivers
/bluetooth
/*.o \
247 $(eval
$(call KMOD_template
,SOFTDOG
,softdog
,\
248 $(MODULES_DIR
)/kernel
/drivers
/char
/softdog.o \
249 ,CONFIG_SOFT_WATCHDOG
,,95,softdog
))