1 include ..
/netfilter.mk
5 $(eval
$(call KMOD_template
,ATM
,atm
,\
6 $(MODULES_DIR
)/kernel
/net
/atm
/atm.o \
7 $(MODULES_DIR
)/kernel
/net
/atm
/br2684.o \
10 $(eval
$(call KMOD_template
,GRE
,gre
,\
11 $(MODULES_DIR
)/kernel
/net
/ipv4
/ip_gre.o \
14 $(eval
$(call KMOD_template
,IMQ
,imq
,\
15 $(MODULES_DIR
)/kernel
/net
/*/netfilter
/*IMQ
*.o \
16 $(MODULES_DIR
)/kernel
/drivers
/net
/imq.o \
19 $(eval
$(call KMOD_template
,IPV6
,ipv6
,\
20 $(MODULES_DIR
)/kernel
/net
/ipv6
/ipv6.o \
21 ,CONFIG_IPV6
,,20,ipv6
))
23 $(eval
$(call KMOD_template
,PPP
,ppp
,\
24 $(MODULES_DIR
)/kernel
/drivers
/net
/ppp_async.o \
25 $(MODULES_DIR
)/kernel
/drivers
/net
/ppp_generic.o \
26 $(MODULES_DIR
)/kernel
/drivers
/net
/slhc.o \
27 $(MODULES_DIR
)/kernel
/drivers
/net
/pppox.o \
30 $(eval
$(call KMOD_template
,MPPE
,mppe
,\
31 $(MODULES_DIR
)/kernel
/drivers
/net
/ppp_mppe_mppc.o \
32 ,CONFIG_PPP_MPPE_MPPC
))
34 $(eval
$(call KMOD_template
,PPPOATM
,pppoatm
,\
35 $(MODULES_DIR
)/kernel
/net
/atm
/pppoatm.o \
38 $(eval
$(call KMOD_template
,PPPOE
,pppoe
,\
39 $(MODULES_DIR
)/kernel
/drivers
/net
/pppoe.o \
42 ifneq ($(wildcard $(MODULES_DIR
)/kernel
/net
/sched
/*.o
),)
45 $(eval
$(call KMOD_template
,SCHED
,sched
,\
46 $(MODULES_DIR
)/kernel
/net
/sched
/*.o \
49 $(eval
$(call KMOD_template
,TUN
,tun
,\
50 $(MODULES_DIR
)/kernel
/drivers
/net
/tun.o \
53 # Filtering / Firewalling
55 $(eval
$(call KMOD_template
,ARPTABLES
,arptables
,\
56 $(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/arp
*.o \
57 ,CONFIG_IP_NF_ARPTABLES
))
59 $(eval
$(call KMOD_template
,EBTABLES
,ebtables
,\
60 $(MODULES_DIR
)/kernel
/net
/bridge
/netfilter
/*.o \
61 ,CONFIG_BRIDGE_NF_EBTABLES
))
63 # metapackage for compatibility ...
64 $(eval
$(call KMOD_template
,IPTABLES_EXTRA
,iptables-extra
,\
65 ,,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 $(eval
$(call KMOD_template
,IPT_CONNTRACK
,ipt-conntrack
,\
68 $(foreach mod
,$(IPT_CONNTRACK-m
),$(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/$(mod
).o
) \
71 $(eval
$(call KMOD_template
,IPT_EXTRA
,ipt-extra
,\
72 $(foreach mod
,$(IPT_EXTRA-m
),$(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/$(mod
).o
) \
75 $(eval
$(call KMOD_template
,IPT_FILTER
,ipt-filter
,\
76 $(foreach mod
,$(IPT_FILTER-m
),$(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/$(mod
).o
) \
79 $(eval
$(call KMOD_template
,IPT_IPOPT
,ipt-ipopt
,\
80 $(foreach mod
,$(IPT_IPOPT-m
),$(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/$(mod
).o
) \
83 $(eval
$(call KMOD_template
,IPT_IPSEC
,ipt-ipsec
,\
84 $(foreach mod
,$(IPT_IPSEC-m
),$(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/$(mod
).o
) \
87 $(eval
$(call KMOD_template
,IPT_NAT
,ipt-nat
,\
88 $(foreach mod
,$(IPT_NAT-m
),$(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/$(mod
).o
) \
91 $(eval
$(call KMOD_template
,IPT_NAT_EXTRA
,ipt-nat-extra
,\
92 $(foreach mod
,$(IPT_NAT_EXTRA-m
),$(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/$(mod
).o
) \
93 ,,,40,$(IPT_NAT_EXTRA-m
)))
95 $(eval
$(call KMOD_template
,IPT_QUEUE
,ipt-queue
,\
96 $(foreach mod
,$(IPT_QUEUE-m
),$(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/$(mod
).o
) \
99 $(eval
$(call KMOD_template
,IPT_ULOG
,ipt-ulog
,\
100 $(foreach mod
,$(IPT_ULOG-m
),$(MODULES_DIR
)/kernel
/net
/ipv4
/netfilter
/$(mod
).o
) \
103 $(eval
$(call KMOD_template
,IP6TABLES
,ip6tables
,\
104 $(MODULES_DIR
)/kernel
/net
/ipv6
/netfilter
/ip
*.o \
105 ,CONFIG_IP6_NF_IPTABLES
,kmod-ipv6
))
110 $(eval
$(call KMOD_template
,IDE
,ide
,\
111 $(MODULES_DIR
)/kernel
/drivers
/ide
/*.o \
112 $(MODULES_DIR
)/kernel
/drivers
/ide
/*/*.o \
113 ,CONFIG_IDE
,,20,pdc202xx_old ide-core ide-detect ide-disk
))
115 $(eval
$(call KMOD_template
,LOOP
,loop
,\
116 $(MODULES_DIR
)/kernel
/drivers
/block
/loop.o \
117 ,CONFIG_BLK_DEV_LOOP
,,20,loop
))
119 $(eval
$(call KMOD_template
,NBD
,nbd
,\
120 $(MODULES_DIR
)/kernel
/drivers
/block
/nbd.o \
121 ,CONFIG_BLK_DEV_NBD
,,20,nbd
))
126 ifneq ($(wildcard $(MODULES_DIR
)/kernel
/crypto
/*.o
),)
129 $(eval
$(call KMOD_template
,CRYPTO
,crypto
,\
130 $(MODULES_DIR
)/kernel
/crypto
/*.o \
136 $(eval
$(call KMOD_template
,FS_CIFS
,fs-cifs
,\
137 $(MODULES_DIR
)/kernel
/fs
/cifs
/cifs.o \
138 ,CONFIG_CIFS
,,30,cifs
))
140 $(eval
$(call KMOD_template
,FS_MINIX
,fs-minix
,\
141 $(MODULES_DIR
)/kernel
/fs
/minix
/*.o \
142 ,CONFIG_MINIX_FS
,,30,minix
))
144 $(eval
$(call KMOD_template
,FS_EXT2
,fs-ext2
,\
145 $(MODULES_DIR
)/kernel
/fs
/ext2
/*.o \
146 ,CONFIG_EXT2_FS
,,30,ext2
))
148 $(eval
$(call KMOD_template
,FS_EXT3
,fs-ext3
,\
149 $(MODULES_DIR
)/kernel
/fs
/ext3
/*.o \
150 $(MODULES_DIR
)/kernel
/fs
/jbd
/*.o \
151 ,CONFIG_EXT3_FS
,,30,jbd ext3
))
153 $(eval
$(call KMOD_template
,FS_HFSPLUS
,fs-hfsplus
,\
154 $(MODULES_DIR
)/kernel
/fs
/hfsplus
/*.o \
155 ,CONFIG_HFSPLUS_FS
,,30,hfsplus
))
157 $(eval
$(call KMOD_template
,FS_NFS
,fs-nfs
,\
158 $(MODULES_DIR
)/kernel
/fs
/lockd
/*.o \
159 $(MODULES_DIR
)/kernel
/fs
/nfs
/*.o \
160 $(MODULES_DIR
)/kernel
/net
/sunrpc
/*.o \
161 ,CONFIG_NFS_FS
,,30,sunrpc lockd nfs
))
163 $(eval
$(call KMOD_template
,FS_VFAT
,fs-vfat
,\
164 $(MODULES_DIR
)/kernel
/fs
/vfat
/vfat.o \
165 $(MODULES_DIR
)/kernel
/fs
/fat
/fat.o \
166 ,CONFIG_VFAT_FS
,,30,fat vfat
))
168 $(eval
$(call KMOD_template
,FS_XFS
,fs-xfs
,\
169 $(MODULES_DIR
)/kernel
/fs
/xfs
/*.o \
170 ,CONFIG_XFS_FS
,,30,xfs
))
175 $(eval
$(call KMOD_template
,PWC
,pwc
,\
176 $(MODULES_DIR
)/kernel
/drivers
/usb
/pwc.o \
177 ,CONFIG_USB_PWC
,kmod-videodev
,63,pwc
))
179 $(eval
$(call KMOD_template
,SOUNDCORE
,soundcore
,\
180 $(MODULES_DIR
)/kernel
/drivers
/sound
/soundcore.o \
181 ,CONFIG_SOUND
,,30,soundcore
))
183 $(eval
$(call KMOD_template
,VIDEODEV
,videodev
,\
184 $(MODULES_DIR
)/kernel
/drivers
/media
/video
/videodev.o \
185 ,CONFIG_VIDEO_DEV
,,62,videodev
))
190 $(eval
$(call KMOD_template
,NET_3C59X
,net-3c59x
,\
191 $(MODULES_DIR
)/kernel
/drivers
/net
/3c59x.o \
192 ,CONFIG_VORTEX
,,10,3c59x
))
194 $(eval
$(call KMOD_template
,NET_8139TOO
,net-8139too
,\
195 $(MODULES_DIR
)/kernel
/drivers
/net
/8139too.o \
196 $(MODULES_DIR
)/kernel
/drivers
/net
/mii.o \
197 ,CONFIG_8139TOO
,,10,mii
8139too
))
199 $(eval
$(call KMOD_template
,NET_AIRO
,net-airo
,\
200 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/airo.o \
201 ,CONFIG_AIRO
,,10,airo
))
203 $(eval
$(call KMOD_template
,NET_E100
,net-e100
,\
204 $(MODULES_DIR
)/kernel
/drivers
/net
/e100.o \
205 ,CONFIG_E100
,,10,e100
))
207 $(eval
$(call KMOD_template
,NET_HERMES
,net-hermes
,\
208 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/hermes.o \
209 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco.o \
210 ,CONFIG_HERMES
,,10,hermes orinoco
))
212 $(eval
$(call KMOD_template
,NET_HERMES_PCI
,net-hermes-pci
,\
213 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco_pci.o \
214 ,CONFIG_PCI_HERMES
,kmod-net-hermes
,11,orinoco_pci
))
216 $(eval
$(call KMOD_template
,NET_HERMES_PCI
,net-hermes-plx
,\
217 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/orinoco_plx.o \
218 ,CONFIG_PLX_HERMES
,kmod-net-hermes
,11,orinoco_plx
))
220 $(eval
$(call KMOD_template
,NET_NATSEMI
,net-natsemi
,\
221 $(MODULES_DIR
)/kernel
/drivers
/net
/natsemi.o \
222 ,CONFIG_NATSEMI
,,10,natsemi
))
224 $(eval
$(call KMOD_template
,NET_PRISM54
,net-prism54
,\
225 $(MODULES_DIR
)/kernel
/drivers
/net
/wireless
/prism54
/prism54.o \
226 ,CONFIG_PRISM54
,,10,prism54
))
231 $(eval
$(call KMOD_template
,PCMCIA_CORE
,pcmcia-core
,\
232 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/pcmcia_core.o \
233 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/yenta_socket.o \
234 $(MODULES_DIR
)/kernel
/drivers
/pcmcia
/ds.o \
235 ,CONFIG_PCMCIA
,,50,pcmcia_core yenta_socket ds
))
237 $(eval
$(call KMOD_template
,PCMCIA_SERIAL
,pcmcia-serial
,\
238 $(MODULES_DIR
)/kernel
/drivers
/char
/pcmcia
/serial_cs.o \
239 ,CONFIG_PCMCIA_SERIAL_CS
,kmod-pcmcia-core
,51,serial_cs
))
244 $(eval
$(call KMOD_template
,USB
,usb-core
,\
245 $(MODULES_DIR
)/kernel
/drivers
/usb
/usbcore.o \
246 ,CONFIG_USB
,,50,usbcore
))
248 $(eval
$(call KMOD_template
,USB_OHCI
,usb-ohci
,\
249 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/usb-ohci.o \
250 ,CONFIG_USB_OHCI
,kmod-usb-core
,60,usb-ohci
))
252 $(eval
$(call KMOD_template
,USB_UHCI
,usb-uhci
,\
253 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/uhci.o \
254 ,CONFIG_USB_UHCI_ALT
,kmod-usb-core
,60,uhci
))
256 $(eval
$(call KMOD_template
,USB2
,usb2
,\
257 $(MODULES_DIR
)/kernel
/drivers
/usb
/host
/ehci-hcd.o \
258 ,CONFIG_USB_EHCI_HCD
,kmod-usb-core
,60,ehci-hcd
))
260 $(eval
$(call KMOD_template
,USB_ACM
,usb-acm
,\
261 $(MODULES_DIR
)/kernel
/drivers
/usb
/acm.o \
264 $(eval
$(call KMOD_template
,USB_AUDIO
,usb-audio
,\
265 $(MODULES_DIR
)/kernel
/drivers
/usb
/audio.o \
266 ,CONFIG_USB_AUDIO
,kmod-soundcore kmod-usb-core
,61,audio
))
268 $(eval
$(call KMOD_template
,USB_PRINTER
,usb-printer
,\
269 $(MODULES_DIR
)/kernel
/drivers
/usb
/printer.o \
270 ,CONFIG_USB_PRINTER
,kmod-usb-core
,60,printer
))
272 $(eval
$(call KMOD_template
,USB_SERIAL
,usb-serial
,\
273 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/usbserial.o \
274 ,CONFIG_USB_SERIAL
,kmod-usb-core
,60,usbserial
))
276 $(eval
$(call KMOD_template
,USB_SERIAL_BELKIN
,usb-serial-belkin
,\
277 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/belkin_sa.o \
278 ,CONFIG_USB_SERIAL_BELKIN
,kmod-usb-serial
,61,belkin_sa
))
280 $(eval
$(call KMOD_template
,USB_SERIAL_FTDI
,usb-serial-ftdi
,\
281 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/ftdi_sio.o \
282 ,CONFIG_USB_SERIAL_FTDI_SIO
,kmod-usb-serial
,61,ftdi_sio
))
284 $(eval
$(call KMOD_template
,USB_SERIAL_MCT_U232
,usb-serial-mct-u232
,\
285 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/mct_u232.o \
286 ,CONFIG_USB_SERIAL_MCT_U232
,kmod-usb-serial
,61,mct_u232
))
288 $(eval
$(call KMOD_template
,USB_SERIAL_PL2303
,usb-serial-pl2303
,\
289 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/pl2303.o \
290 ,CONFIG_USB_SERIAL_PL2303
,kmod-usb-serial
,61,pl2303
))
292 $(eval
$(call KMOD_template
,USB_SERIAL_VISOR
,usb-serial-visor
,\
293 $(MODULES_DIR
)/kernel
/drivers
/usb
/serial
/visor.o \
294 ,CONFIG_USB_SERIAL_VISOR
,kmod-usb-serial
,61,visor
))
296 $(eval
$(call KMOD_template
,USB_STORAGE
,usb-storage
,\
297 $(MODULES_DIR
)/kernel
/drivers
/scsi
/*.o \
298 $(MODULES_DIR
)/kernel
/drivers
/usb
/storage
/*.o \
299 ,CONFIG_USB_STORAGE
,kmod-usb-core
,60,scsi_mod sd_mod usb-storage
))
304 $(eval
$(call KMOD_template
,AX25
,ax25
,\
305 $(MODULES_DIR
)/kernel
/net
/ax25
/ax25.o \
306 $(MODULES_DIR
)/kernel
/drivers
/net
/hamradio
/mkiss.o \
307 ,CONFIG_AX25
,,90,ax25 mkiss
))
309 $(eval
$(call KMOD_template
,BLUETOOTH
,bluetooth
,\
310 $(MODULES_DIR
)/kernel
/net
/bluetooth
/*.o \
311 $(MODULES_DIR
)/kernel
/net
/bluetooth
/rfcomm
/*.o \
312 $(MODULES_DIR
)/kernel
/drivers
/bluetooth
/*.o \
315 $(eval
$(call KMOD_template
,SOFTDOG
,softdog
,\
316 $(MODULES_DIR
)/kernel
/drivers
/char
/softdog.o \
317 ,CONFIG_SOFT_WATCHDOG
,,95,softdog
))