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
,SCHED
,sched
,\
29 $(MODULES_DIR
)/kernel
/net
/sched
/*.o \
32 $(eval
$(call KMOD_template
,TUN
,tun
,\
33 $(MODULES_DIR
)/kernel
/drivers
/net
/tun.o \
38 $(eval
$(call KMOD_template
,LOOP
,loop
,\
39 $(MODULES_DIR
)/kernel
/drivers
/block
/loop.o \
40 ,CONFIG_BLK_DEV_LOOP
,,20,loop
))
42 $(eval
$(call KMOD_template
,NBD
,nbd
,\
43 $(MODULES_DIR
)/kernel
/drivers
/block
/nbd.o \
44 ,CONFIG_BLK_DEV_NBD
,,20,nbd
))
49 $(eval
$(call KMOD_template
,FS_CIFS
,fs-cifs
,\
50 $(MODULES_DIR
)/kernel
/fs
/cifs
/cifs.o \
51 ,CONFIG_CIFS
,,30,cifs
))
53 $(eval
$(call KMOD_template
,FS_MINIX
,fs-minix
,\
54 $(MODULES_DIR
)/kernel
/fs
/minix
/*.o \
55 ,CONFIG_MINIX_FS
,,30,minix
))
57 $(eval
$(call KMOD_template
,FS_EXT2
,fs-ext2
,\
58 $(MODULES_DIR
)/kernel
/fs
/ext2
/*.o \
59 ,CONFIG_EXT2_FS
,,30,ext2
))
61 $(eval
$(call KMOD_template
,FS_EXT3
,fs-ext3
,\
62 $(MODULES_DIR
)/kernel
/fs
/ext3
/*.o \
63 $(MODULES_DIR
)/kernel
/fs
/jbd
/*.o \
64 ,CONFIG_EXT3_FS
,,30,jbd ext3
))
66 $(eval
$(call KMOD_template
,FS_HFSPLUS
,fs-hfsplus
,\
67 $(MODULES_DIR
)/kernel
/fs
/hfsplus
/*.o \
68 ,CONFIG_HFSPLUS_FS
,,30,hfsplus
))
70 $(eval
$(call KMOD_template
,FS_NFS
,fs-nfs
,\
71 $(MODULES_DIR
)/kernel
/fs
/lockd
/*.o \
72 $(MODULES_DIR
)/kernel
/fs
/nfs
/*.o \
73 $(MODULES_DIR
)/kernel
/net
/sunrpc
/*.o \
74 ,CONFIG_NFS_FS
,,30,sunrpc lockd nfs
))
76 $(eval
$(call KMOD_template
,FS_VFAT
,fs-vfat
,\
77 $(MODULES_DIR
)/kernel
/fs
/vfat
/vfat.o \
78 $(MODULES_DIR
)/kernel
/fs
/fat
/fat.o \
79 ,CONFIG_VFAT_FS
,,30,fat vfat
))
81 $(eval
$(call KMOD_template
,FS_XFS
,fs-xfs
,\
82 $(MODULES_DIR
)/kernel
/fs
/xfs
/*.o \
83 ,CONFIG_XFS_FS
,,30,xfs
))
88 $(eval
$(call KMOD_template
,PWC
,pwc
,\
89 $(MODULES_DIR
)/kernel
/drivers
/usb
/pwc.o \
90 ,CONFIG_USB_PWC
,kmod-videodev
,63,pwc
))
92 $(eval
$(call KMOD_template
,SOUNDCORE
,soundcore
,\
93 $(MODULES_DIR
)/kernel
/drivers
/sound
/soundcore.o \
94 ,CONFIG_SOUND
,,30,soundcore
))
96 $(eval
$(call KMOD_template
,VIDEODEV
,videodev
,\
97 $(MODULES_DIR
)/kernel
/drivers
/media
/video
/videodev.o \
98 ,CONFIG_VIDEO_DEV
,,62,videodev
))
103 $(eval
$(call KMOD_template
,NET_3C59X
,net-3c59x
,\
104 $(MODULES_DIR
)/kernel
/drivers
/net
/3c59x.o \
105 ,CONFIG_VORTEX
,,10,3c59x
))
107 $(eval
$(call KMOD_template
,NET_8139TOO
,net-8139too
,\
108 $(MODULES_DIR
)/kernel
/drivers
/net
/8139too.o \
109 $(MODULES_DIR
)/kernel
/drivers
/net
/mii.o \
110 ,CONFIG_8139TOO
,,10,mii
8139too
))
112 $(eval
$(call KMOD_template
,NET_AIRO
,net-airo
,\
113 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/airo.o \
114 ,CONFIG_AIRO
,,10,airo
))
116 $(eval
$(call KMOD_template
,NET_E100
,net-e100
,\
117 $(MODULES_DIR
)/kernel
/drivers
/net
/e100.o \
118 ,CONFIG_E100
,,10,e100
))
120 $(eval
$(call KMOD_template
,NET_HERMES
,net-hermes
,\
121 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/hermes.o \
122 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco.o \
123 ,CONFIG_HERMES
,,10,hermes orinoco
))
125 $(eval
$(call KMOD_template
,NET_HERMES_PCI
,net-hermes-pci
,\
126 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco_pci.o \
127 ,CONFIG_PCI_HERMES
,kmod-net-hermes
,11,orinoco_pci
))
129 $(eval
$(call KMOD_template
,NET_HERMES_PCI
,net-hermes-plx
,\
130 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco_plx.o \
131 ,CONFIG_PLX_HERMES
,kmod-net-hermes
,11,orinoco_plx
))
133 $(eval
$(call KMOD_template
,NET_NATSEMI
,net-natsemi
,\
134 $(MODULES_DIR
)/kernel
/drivers
/net
/natsemi.o \
135 ,CONFIG_NATSEMI
,,10,natsemi
))
137 $(eval
$(call KMOD_template
,NET_PRISM54
,net-prism54
,\
138 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/prism54
/prism54.o \
139 ,CONFIG_PRISM54
,,10,prism54
))
144 $(eval
$(call KMOD_template
,PCMCIA_CORE
,pcmcia-core
,\
145 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/pcmcia_core.o \
146 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/yenta_socket.o \
147 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/ds.o \
148 ,CONFIG_PCMCIA
,,50,pcmcia_core yenta_socket ds
))
150 $(eval
$(call KMOD_template
,PCMCIA_SERIAL
,pcmcia-serial
,\
151 $(MODULES_DIR
)/kernel
/drivers
/char
/pcmcia
/serial_cs.o \
152 ,CONFIG_PCMCIA_SERIAL_CS
,kmod-pcmcia-core
,51,serial_cs
))
157 $(eval
$(call KMOD_template
,USB
,usb-core
,\
158 $(MODULES_DIR
)/kernel
/drivers
/usb
/usbcore.o \
159 ,CONFIG_USB
,,50,usbcore
))
161 $(eval
$(call KMOD_template
,USB_OHCI
,usb-ohci
,\
162 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/usb-ohci.o \
163 ,CONFIG_USB_OHCI
,kmod-usb-core
,60,usb-ohci
))
165 $(eval
$(call KMOD_template
,USB_UHCI
,usb-uhci
,\
166 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/uhci.o \
167 ,CONFIG_USB_UHCI_ALT
,kmod-usb-core
,60,uhci
))
169 $(eval
$(call KMOD_template
,USB2
,usb2
,\
170 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/ehci-hcd.o \
171 ,CONFIG_USB_EHCI_HCD
,kmod-usb-core
,60,ehci-hcd
))
173 $(eval
$(call KMOD_template
,USB_ACM
,usb-acm
,\
174 $(MODULES_DIR
)/kernel
/drivers
/usb
/acm.o \
177 $(eval
$(call KMOD_template
,USB_AUDIO
,usb-audio
,\
178 $(MODULES_DIR
)/kernel
/drivers
/usb
/audio.o \
179 ,CONFIG_USB_AUDIO
,kmod-soundcore kmod-usb-core
,61,audio
))
181 $(eval
$(call KMOD_template
,USB_PRINTER
,usb-printer
,\
182 $(MODULES_DIR
)/kernel
/drivers
/usb
/printer.o \
183 ,CONFIG_USB_PRINTER
,kmod-usb-core
,60,printer
))
185 $(eval
$(call KMOD_template
,USB_SERIAL
,usb-serial
,\
186 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/usbserial.o \
187 ,CONFIG_USB_SERIAL
,kmod-usb-core
,60,usbserial
))
189 $(eval
$(call KMOD_template
,USB_SERIAL_BELKIN
,usb-serial-belkin
,\
190 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/belkin_sa.o \
191 ,CONFIG_USB_SERIAL_BELKIN
,kmod-usb-serial
,61,belkin_sa
))
193 $(eval
$(call KMOD_template
,USB_SERIAL_FTDI
,usb-serial-ftdi
,\
194 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/ftdi_sio.o \
195 ,CONFIG_USB_SERIAL_FTDI_SIO
,kmod-usb-serial
,61,ftdi_sio
))
197 $(eval
$(call KMOD_template
,USB_SERIAL_MCT_U232
,usb-serial-mct-u232
,\
198 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/mct_u232.o \
199 ,CONFIG_USB_SERIAL_MCT_U232
,kmod-usb-serial
,61,mct_u232
))
201 $(eval
$(call KMOD_template
,USB_SERIAL_PL2303
,usb-serial-pl2303
,\
202 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/pl2303.o \
203 ,CONFIG_USB_SERIAL_PL2303
,kmod-usb-serial
,61,pl2303
))
205 $(eval
$(call KMOD_template
,USB_SERIAL_VISOR
,usb-serial-visor
,\
206 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/visor.o \
207 ,CONFIG_USB_SERIAL_VISOR
,kmod-usb-serial
,61,visor
))
209 $(eval
$(call KMOD_template
,USB_STORAGE
,usb-storage
,\
210 $(MODULES_DIR
)/kernel
/drivers
/scsi
/*.o \
211 $(MODULES_DIR
)/kernel
/drivers
/usb
/storage
/*.o \
212 ,CONFIG_USB_STORAGE
,kmod-usb-core
,60,scsi_mod sd_mod usb-storage
))
217 $(eval
$(call KMOD_template
,AX25
,ax25
,\
218 $(MODULES_DIR
)/kernel
/net
/ax25
/ax25.o \
219 $(MODULES_DIR
)/kernel
/drivers
/net
/hamradio
/mkiss.o \
220 ,CONFIG_AX25
,,90,ax25 mkiss
))
222 $(eval
$(call KMOD_template
,BLUETOOTH
,bluetooth
,\
223 $(MODULES_DIR
)/kernel
/net
/bluetooth
/*.o \
224 $(MODULES_DIR
)/kernel
/net
/bluetooth
/rfcomm
/*.o \
225 $(MODULES_DIR
)/kernel
/drivers
/bluetooth
/*.o \
228 $(eval
$(call KMOD_template
,SOFTDOG
,softdog
,\
229 $(MODULES_DIR
)/kernel
/drivers
/char
/softdog.o \
230 ,CONFIG_SOFT_WATCHDOG
,,95,softdog
))