kernel: update kmod-* packaging and dependencies for linux 4.9
[openwrt/openwrt.git] / package / kernel / linux / modules / netsupport.mk
1 #
2 # Copyright (C) 2006-2011 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 NETWORK_SUPPORT_MENU:=Network Support
9
10 define KernelPackage/atm
11 SUBMENU:=$(NETWORK_SUPPORT_MENU)
12 TITLE:=ATM support
13 KCONFIG:= \
14 CONFIG_ATM \
15 CONFIG_ATM_BR2684
16 FILES:= \
17 $(LINUX_DIR)/net/atm/atm.ko \
18 $(LINUX_DIR)/net/atm/br2684.ko
19 AUTOLOAD:=$(call AutoLoad,30,atm br2684)
20 endef
21
22 define KernelPackage/atm/description
23 Kernel modules for ATM support
24 endef
25
26 $(eval $(call KernelPackage,atm))
27
28
29 define KernelPackage/atmtcp
30 SUBMENU:=$(NETWORK_SUPPORT_MENU)
31 TITLE:=ATM over TCP
32 DEPENDS:=kmod-atm
33 KCONFIG:=CONFIG_ATM_TCP CONFIG_ATM_DRIVERS=y
34 FILES:=$(LINUX_DIR)/drivers/atm/atmtcp.ko
35 AUTOLOAD:=$(call AutoLoad,40,atmtcp)
36 endef
37
38 define KernelPackage/atmtcp/description
39 Kernel module for ATM over TCP support
40 endef
41
42 $(eval $(call KernelPackage,atmtcp))
43
44
45 define KernelPackage/appletalk
46 SUBMENU:=$(NETWORK_SUPPORT_MENU)
47 TITLE:=Appletalk protocol support
48 DEPENDS:=+PACKAGE_kmod-llc:kmod-llc
49 KCONFIG:= \
50 CONFIG_ATALK \
51 CONFIG_DEV_APPLETALK \
52 CONFIG_IPDDP \
53 CONFIG_IPDDP_ENCAP=y \
54 CONFIG_IPDDP_DECAP=y
55 FILES:= \
56 $(LINUX_DIR)/net/appletalk/appletalk.ko \
57 $(LINUX_DIR)/drivers/net/appletalk/ipddp.ko
58 AUTOLOAD:=$(call AutoLoad,40,appletalk ipddp)
59 endef
60
61 define KernelPackage/appletalk/description
62 Kernel module for AppleTalk protocol.
63 endef
64
65 $(eval $(call KernelPackage,appletalk))
66
67
68 define KernelPackage/bonding
69 SUBMENU:=$(NETWORK_SUPPORT_MENU)
70 TITLE:=Ethernet bonding driver
71 KCONFIG:=CONFIG_BONDING
72 FILES:=$(LINUX_DIR)/drivers/net/bonding/bonding.ko
73 AUTOLOAD:=$(call AutoLoad,40,bonding)
74 endef
75
76 define KernelPackage/bonding/description
77 Kernel module for NIC bonding.
78 endef
79
80 $(eval $(call KernelPackage,bonding))
81
82
83 define KernelPackage/bridge
84 SUBMENU:=$(NETWORK_SUPPORT_MENU)
85 TITLE:=Ethernet bridging support
86 DEPENDS:=+kmod-stp
87 KCONFIG:= \
88 CONFIG_BRIDGE \
89 CONFIG_BRIDGE_IGMP_SNOOPING=y
90 FILES:=$(LINUX_DIR)/net/bridge/bridge.ko
91 AUTOLOAD:=$(call AutoLoad,11,bridge)
92 endef
93
94 define KernelPackage/bridge/description
95 Kernel module for Ethernet bridging.
96 endef
97
98 $(eval $(call KernelPackage,bridge))
99
100 define KernelPackage/llc
101 SUBMENU:=$(NETWORK_SUPPORT_MENU)
102 TITLE:=ANSI/IEEE 802.2 LLC support
103 KCONFIG:=CONFIG_LLC
104 FILES:= \
105 $(LINUX_DIR)/net/llc/llc.ko \
106 $(LINUX_DIR)/net/802/p8022.ko \
107 $(LINUX_DIR)/net/802/psnap.ko
108 AUTOLOAD:=$(call AutoLoad,09,llc p8022 psnap)
109 endef
110
111 define KernelPackage/llc/description
112 Kernel module for ANSI/IEEE 802.2 LLC support.
113 endef
114
115 $(eval $(call KernelPackage,llc))
116
117 define KernelPackage/stp
118 SUBMENU:=$(NETWORK_SUPPORT_MENU)
119 TITLE:=Ethernet Spanning Tree Protocol support
120 DEPENDS:=+kmod-llc
121 KCONFIG:=CONFIG_STP
122 FILES:=$(LINUX_DIR)/net/802/stp.ko
123 AUTOLOAD:=$(call AutoLoad,10,stp)
124 endef
125
126 define KernelPackage/stp/description
127 Kernel module for Ethernet Spanning Tree Protocol support.
128 endef
129
130 $(eval $(call KernelPackage,stp))
131
132 define KernelPackage/8021q
133 SUBMENU:=$(NETWORK_SUPPORT_MENU)
134 TITLE:=802.1Q VLAN support
135 KCONFIG:=CONFIG_VLAN_8021Q \
136 CONFIG_VLAN_8021Q_GVRP=n
137 FILES:=$(LINUX_DIR)/net/8021q/8021q.ko
138 AUTOLOAD:=$(call AutoLoad,12,8021q)
139 endef
140
141 define KernelPackage/8021q/description
142 Kernel module for 802.1Q VLAN support
143 endef
144
145 $(eval $(call KernelPackage,8021q))
146
147
148 define KernelPackage/udptunnel4
149 SUBMENU:=$(NETWORK_SUPPORT_MENU)
150 TITLE:=IPv4 UDP tunneling support
151 KCONFIG:= \
152 CONFIG_NET_UDP_TUNNEL \
153 CONFIG_VXLAN=m
154 HIDDEN:=1
155 FILES:=$(LINUX_DIR)/net/ipv4/udp_tunnel.ko
156 AUTOLOAD:=$(call AutoLoad,32,udp_tunnel)
157 endef
158
159
160 $(eval $(call KernelPackage,udptunnel4))
161
162 define KernelPackage/udptunnel6
163 SUBMENU:=$(NETWORK_SUPPORT_MENU)
164 TITLE:=IPv6 UDP tunneling support
165 DEPENDS:=@IPV6
166 KCONFIG:= \
167 CONFIG_NET_UDP_TUNNEL \
168 CONFIG_VXLAN=m
169 HIDDEN:=1
170 FILES:=$(LINUX_DIR)/net/ipv6/ip6_udp_tunnel.ko
171 AUTOLOAD:=$(call AutoLoad,32,ip6_udp_tunnel)
172 endef
173
174 $(eval $(call KernelPackage,udptunnel6))
175
176
177 define KernelPackage/vxlan
178 SUBMENU:=$(NETWORK_SUPPORT_MENU)
179 TITLE:=Native VXLAN Kernel support
180 DEPENDS:= \
181 +kmod-iptunnel \
182 +kmod-udptunnel4 \
183 +IPV6:kmod-udptunnel6
184 KCONFIG:=CONFIG_VXLAN
185 FILES:=$(LINUX_DIR)/drivers/net/vxlan.ko
186 AUTOLOAD:=$(call AutoLoad,13,vxlan)
187 endef
188
189 define KernelPackage/vxlan/description
190 Kernel module for supporting VXLAN in the Kernel.
191 Requires Kernel 3.12 or newer.
192 endef
193
194 $(eval $(call KernelPackage,vxlan))
195
196 define KernelPackage/capi
197 SUBMENU:=$(NETWORK_SUPPORT_MENU)
198 TITLE:=CAPI (ISDN) Support
199 KCONFIG:= \
200 CONFIG_ISDN_CAPI \
201 CONFIG_ISDN_CAPI_CAPI20 \
202 CONFIG_ISDN_CAPIFS \
203 CONFIG_ISDN_CAPI_CAPIFS
204 FILES:= \
205 $(LINUX_DIR)/drivers/isdn/capi/kernelcapi.ko \
206 $(LINUX_DIR)/drivers/isdn/capi/capi.ko
207 AUTOLOAD:=$(call AutoLoad,30,kernelcapi capi)
208 endef
209
210 define KernelPackage/capi/description
211 Kernel module for basic CAPI (ISDN) support
212 endef
213
214 $(eval $(call KernelPackage,capi))
215
216 define KernelPackage/misdn
217 SUBMENU:=$(NETWORK_SUPPORT_MENU)
218 TITLE:=mISDN (ISDN) Support
219 KCONFIG:= \
220 CONFIG_ISDN=y \
221 CONFIG_MISDN \
222 CONFIG_MISDN_DSP \
223 CONFIG_MISDN_L1OIP
224 FILES:= \
225 $(LINUX_DIR)/drivers/isdn/mISDN/mISDN_core.ko \
226 $(LINUX_DIR)/drivers/isdn/mISDN/mISDN_dsp.ko \
227 $(LINUX_DIR)/drivers/isdn/mISDN/l1oip.ko
228 AUTOLOAD:=$(call AutoLoad,30,mISDN_core mISDN_dsp l1oip)
229 endef
230
231 define KernelPackage/misdn/description
232 Modular ISDN driver support
233 endef
234
235 $(eval $(call KernelPackage,misdn))
236
237
238 define KernelPackage/isdn4linux
239 SUBMENU:=$(NETWORK_SUPPORT_MENU)
240 TITLE:=Old ISDN4Linux (deprecated)
241 DEPENDS:=+kmod-ppp
242 KCONFIG:= \
243 CONFIG_ISDN=y \
244 CONFIG_ISDN_I4L \
245 CONFIG_ISDN_PPP=y \
246 CONFIG_ISDN_PPP_VJ=y \
247 CONFIG_ISDN_MPP=y \
248 CONFIG_IPPP_FILTER=y \
249 CONFIG_ISDN_PPP_BSDCOMP \
250 CONFIG_ISDN_CAPI_MIDDLEWARE=y \
251 CONFIG_ISDN_CAPI_CAPIFS_BOOL=y \
252 CONFIG_ISDN_AUDIO=y \
253 CONFIG_ISDN_TTY_FAX=y \
254 CONFIG_ISDN_X25=y \
255 CONFIG_ISDN_DIVERSION
256 FILES:= \
257 $(LINUX_DIR)/drivers/isdn/divert/dss1_divert.ko \
258 $(LINUX_DIR)/drivers/isdn/i4l/isdn.ko \
259 $(LINUX_DIR)/drivers/isdn/i4l/isdn_bsdcomp.ko
260 AUTOLOAD:=$(call AutoLoad,40,isdn isdn_bsdcomp dss1_divert)
261 endef
262
263 define KernelPackage/isdn4linux/description
264 This driver allows you to use an ISDN adapter for networking
265 endef
266
267 $(eval $(call KernelPackage,isdn4linux))
268
269
270 define KernelPackage/ipip
271 SUBMENU:=$(NETWORK_SUPPORT_MENU)
272 TITLE:=IP-in-IP encapsulation
273 DEPENDS:=+kmod-iptunnel +kmod-iptunnel4
274 KCONFIG:=CONFIG_NET_IPIP
275 FILES:=$(LINUX_DIR)/net/ipv4/ipip.ko
276 AUTOLOAD:=$(call AutoLoad,32,ipip)
277 endef
278
279 define KernelPackage/ipip/description
280 Kernel modules for IP-in-IP encapsulation
281 endef
282
283 $(eval $(call KernelPackage,ipip))
284
285
286 IPSEC-m:= \
287 xfrm/xfrm_algo \
288 xfrm/xfrm_ipcomp \
289 xfrm/xfrm_user \
290 key/af_key \
291
292 define KernelPackage/ipsec
293 SUBMENU:=$(NETWORK_SUPPORT_MENU)
294 TITLE:=IPsec related modules (IPv4 and IPv6)
295 DEPENDS:= \
296 +kmod-crypto-authenc +kmod-crypto-cbc +kmod-crypto-deflate \
297 +kmod-crypto-des +kmod-crypto-echainiv +kmod-crypto-hmac \
298 +kmod-crypto-iv +kmod-crypto-md5 +kmod-crypto-sha1
299 KCONFIG:= \
300 CONFIG_NET_KEY \
301 CONFIG_XFRM_USER \
302 CONFIG_INET_IPCOMP \
303 CONFIG_XFRM_IPCOMP
304 FILES:=$(foreach mod,$(IPSEC-m),$(LINUX_DIR)/net/$(mod).ko)
305 AUTOLOAD:=$(call AutoLoad,30,$(notdir $(IPSEC-m)))
306 endef
307
308 define KernelPackage/ipsec/description
309 Kernel modules for IPsec support in both IPv4 and IPv6.
310 Includes:
311 - af_key
312 - xfrm_algo
313 - xfrm_ipcomp
314 - xfrm_user
315 endef
316
317 $(eval $(call KernelPackage,ipsec))
318
319
320 IPSEC4-m:= \
321 ipv4/ah4 \
322 ipv4/esp4 \
323 ipv4/xfrm4_mode_beet \
324 ipv4/xfrm4_mode_transport \
325 ipv4/xfrm4_mode_tunnel \
326 ipv4/xfrm4_tunnel \
327 ipv4/ipcomp \
328
329 define KernelPackage/ipsec4
330 SUBMENU:=$(NETWORK_SUPPORT_MENU)
331 TITLE:=IPsec related modules (IPv4)
332 DEPENDS:=kmod-ipsec +kmod-iptunnel4
333 KCONFIG:= \
334 CONFIG_INET_AH \
335 CONFIG_INET_ESP \
336 CONFIG_INET_IPCOMP \
337 CONFIG_INET_XFRM_MODE_BEET \
338 CONFIG_INET_XFRM_MODE_TRANSPORT \
339 CONFIG_INET_XFRM_MODE_TUNNEL \
340 CONFIG_INET_XFRM_TUNNEL
341 FILES:=$(foreach mod,$(IPSEC4-m),$(LINUX_DIR)/net/$(mod).ko)
342 AUTOLOAD:=$(call AutoLoad,32,$(notdir $(IPSEC4-m)))
343 endef
344
345 define KernelPackage/ipsec4/description
346 Kernel modules for IPsec support in IPv4.
347 Includes:
348 - ah4
349 - esp4
350 - ipcomp4
351 - xfrm4_mode_beet
352 - xfrm4_mode_transport
353 - xfrm4_mode_tunnel
354 - xfrm4_tunnel
355 endef
356
357 $(eval $(call KernelPackage,ipsec4))
358
359
360 IPSEC6-m:= \
361 ipv6/ah6 \
362 ipv6/esp6 \
363 ipv6/xfrm6_mode_beet \
364 ipv6/xfrm6_mode_transport \
365 ipv6/xfrm6_mode_tunnel \
366 ipv6/xfrm6_tunnel \
367 ipv6/ipcomp6 \
368
369 define KernelPackage/ipsec6
370 SUBMENU:=$(NETWORK_SUPPORT_MENU)
371 TITLE:=IPsec related modules (IPv6)
372 DEPENDS:=kmod-ipsec +kmod-iptunnel6
373 KCONFIG:= \
374 CONFIG_INET6_AH \
375 CONFIG_INET6_ESP \
376 CONFIG_INET6_IPCOMP \
377 CONFIG_INET6_XFRM_MODE_BEET \
378 CONFIG_INET6_XFRM_MODE_TRANSPORT \
379 CONFIG_INET6_XFRM_MODE_TUNNEL \
380 CONFIG_INET6_XFRM_TUNNEL
381 FILES:=$(foreach mod,$(IPSEC6-m),$(LINUX_DIR)/net/$(mod).ko)
382 AUTOLOAD:=$(call AutoLoad,32,$(notdir $(IPSEC6-m)))
383 endef
384
385 define KernelPackage/ipsec6/description
386 Kernel modules for IPsec support in IPv6.
387 Includes:
388 - ah6
389 - esp6
390 - ipcomp6
391 - xfrm6_mode_beet
392 - xfrm6_mode_transport
393 - xfrm6_mode_tunnel
394 - xfrm6_tunnel
395 endef
396
397 $(eval $(call KernelPackage,ipsec6))
398
399
400 define KernelPackage/iptunnel
401 SUBMENU:=$(NETWORK_SUPPORT_MENU)
402 TITLE:=IP tunnel support
403 HIDDEN:=1
404 KCONFIG:= \
405 CONFIG_NET_IP_TUNNEL
406 FILES:=$(LINUX_DIR)/net/ipv4/ip_tunnel.ko
407 AUTOLOAD:=$(call AutoLoad,31,ip_tunnel)
408 endef
409
410 define KernelPackage/iptunnel/description
411 Kernel module for generic IP tunnel support
412 endef
413
414 $(eval $(call KernelPackage,iptunnel))
415
416
417 define KernelPackage/ip-vti
418 SUBMENU:=$(NETWORK_SUPPORT_MENU)
419 TITLE:=IP VTI (Virtual Tunnel Interface)
420 DEPENDS:=+kmod-iptunnel +kmod-iptunnel4 +kmod-ipsec4
421 KCONFIG:=CONFIG_NET_IPVTI
422 FILES:=$(LINUX_DIR)/net/ipv4/ip_vti.ko
423 AUTOLOAD:=$(call AutoLoad,33,ip_vti)
424 endef
425
426 define KernelPackage/ip-vti/description
427 Kernel modules for IP VTI (Virtual Tunnel Interface)
428 endef
429
430 $(eval $(call KernelPackage,ip-vti))
431
432
433 define KernelPackage/ip6-vti
434 SUBMENU:=$(NETWORK_SUPPORT_MENU)
435 TITLE:=IPv6 VTI (Virtual Tunnel Interface)
436 DEPENDS:=+kmod-iptunnel +kmod-ip6-tunnel +kmod-ipsec6
437 KCONFIG:=CONFIG_IPV6_VTI
438 FILES:=$(LINUX_DIR)/net/ipv6/ip6_vti.ko
439 AUTOLOAD:=$(call AutoLoad,33,ip6_vti)
440 endef
441
442 define KernelPackage/ip6-vti/description
443 Kernel modules for IPv6 VTI (Virtual Tunnel Interface)
444 endef
445
446 $(eval $(call KernelPackage,ip6-vti))
447
448
449 define KernelPackage/iptunnel4
450 SUBMENU:=$(NETWORK_SUPPORT_MENU)
451 TITLE:=IPv4 tunneling
452 HIDDEN:=1
453 KCONFIG:= \
454 CONFIG_INET_TUNNEL \
455 CONFIG_NET_IPIP=m
456 FILES:=$(LINUX_DIR)/net/ipv4/tunnel4.ko
457 AUTOLOAD:=$(call AutoLoad,31,tunnel4)
458 endef
459
460 define KernelPackage/iptunnel4/description
461 Kernel modules for IPv4 tunneling
462 endef
463
464 $(eval $(call KernelPackage,iptunnel4))
465
466
467 define KernelPackage/iptunnel6
468 SUBMENU:=$(NETWORK_SUPPORT_MENU)
469 TITLE:=IPv6 tunneling
470 DEPENDS:=@IPV6
471 KCONFIG:= \
472 CONFIG_INET6_TUNNEL
473 FILES:=$(LINUX_DIR)/net/ipv6/tunnel6.ko
474 AUTOLOAD:=$(call AutoLoad,31,tunnel6)
475 endef
476
477 define KernelPackage/iptunnel6/description
478 Kernel modules for IPv6 tunneling
479 endef
480
481 $(eval $(call KernelPackage,iptunnel6))
482
483
484 define KernelPackage/sit
485 SUBMENU:=$(NETWORK_SUPPORT_MENU)
486 DEPENDS:=@IPV6 +kmod-iptunnel +kmod-iptunnel4
487 TITLE:=IPv6-in-IPv4 tunnel
488 KCONFIG:=CONFIG_IPV6_SIT \
489 CONFIG_IPV6_SIT_6RD=y
490 FILES:=$(LINUX_DIR)/net/ipv6/sit.ko
491 AUTOLOAD:=$(call AutoLoad,32,sit)
492 endef
493
494 define KernelPackage/sit/description
495 Kernel modules for IPv6-in-IPv4 tunnelling
496 endef
497
498 $(eval $(call KernelPackage,sit))
499
500
501 define KernelPackage/ip6-tunnel
502 SUBMENU:=$(NETWORK_SUPPORT_MENU)
503 TITLE:=IP-in-IPv6 tunnelling
504 DEPENDS:=@IPV6 +kmod-iptunnel6
505 KCONFIG:= CONFIG_IPV6_TUNNEL
506 FILES:=$(LINUX_DIR)/net/ipv6/ip6_tunnel.ko
507 AUTOLOAD:=$(call AutoLoad,32,ip6_tunnel)
508 endef
509
510 define KernelPackage/ip6-tunnel/description
511 Kernel modules for IPv6-in-IPv6 and IPv4-in-IPv6 tunnelling
512 endef
513
514 $(eval $(call KernelPackage,ip6-tunnel))
515
516
517 define KernelPackage/gre
518 SUBMENU:=$(NETWORK_SUPPORT_MENU)
519 TITLE:=GRE support
520 DEPENDS:=+kmod-iptunnel
521 KCONFIG:=CONFIG_NET_IPGRE CONFIG_NET_IPGRE_DEMUX
522 FILES:=$(LINUX_DIR)/net/ipv4/ip_gre.ko $(LINUX_DIR)/net/ipv4/gre.ko
523 AUTOLOAD:=$(call AutoLoad,39,gre ip_gre)
524 endef
525
526 define KernelPackage/gre/description
527 Generic Routing Encapsulation support
528 endef
529
530 $(eval $(call KernelPackage,gre))
531
532
533 define KernelPackage/gre6
534 SUBMENU:=$(NETWORK_SUPPORT_MENU)
535 TITLE:=GRE support over IPV6
536 DEPENDS:=@IPV6 +kmod-iptunnel +kmod-ip6-tunnel +kmod-gre
537 KCONFIG:=CONFIG_IPV6_GRE
538 FILES:=$(LINUX_DIR)/net/ipv6/ip6_gre.ko
539 AUTOLOAD:=$(call AutoLoad,39,ip6_gre)
540 endef
541
542 define KernelPackage/gre6/description
543 Generic Routing Encapsulation support over IPv6
544 endef
545
546 $(eval $(call KernelPackage,gre6))
547
548
549 define KernelPackage/tun
550 SUBMENU:=$(NETWORK_SUPPORT_MENU)
551 TITLE:=Universal TUN/TAP driver
552 KCONFIG:=CONFIG_TUN
553 FILES:=$(LINUX_DIR)/drivers/net/tun.ko
554 AUTOLOAD:=$(call AutoLoad,30,tun)
555 endef
556
557 define KernelPackage/tun/description
558 Kernel support for the TUN/TAP tunneling device
559 endef
560
561 $(eval $(call KernelPackage,tun))
562
563
564 define KernelPackage/veth
565 SUBMENU:=$(NETWORK_SUPPORT_MENU)
566 TITLE:=Virtual ethernet pair device
567 KCONFIG:=CONFIG_VETH
568 FILES:=$(LINUX_DIR)/drivers/net/veth.ko
569 AUTOLOAD:=$(call AutoLoad,30,veth)
570 endef
571
572 define KernelPackage/veth/description
573 This device is a local ethernet tunnel. Devices are created in pairs.
574 When one end receives the packet it appears on its pair and vice
575 versa.
576 endef
577
578 $(eval $(call KernelPackage,veth))
579
580
581 define KernelPackage/slhc
582 SUBMENU:=$(NETWORK_SUPPORT_MENU)
583 HIDDEN:=1
584 TITLE:=Serial Line Header Compression
585 DEPENDS:=+kmod-lib-crc-ccitt
586 KCONFIG:=CONFIG_SLHC
587 FILES:=$(LINUX_DIR)/drivers/net/slip/slhc.ko
588 endef
589
590 $(eval $(call KernelPackage,slhc))
591
592
593 define KernelPackage/ppp
594 SUBMENU:=$(NETWORK_SUPPORT_MENU)
595 TITLE:=PPP modules
596 DEPENDS:=+kmod-lib-crc-ccitt +kmod-slhc
597 KCONFIG:= \
598 CONFIG_PPP \
599 CONFIG_PPP_ASYNC
600 FILES:= \
601 $(LINUX_DIR)/drivers/net/ppp/ppp_async.ko \
602 $(LINUX_DIR)/drivers/net/ppp/ppp_generic.ko
603 AUTOLOAD:=$(call AutoProbe,ppp_async)
604 endef
605
606 define KernelPackage/ppp/description
607 Kernel modules for PPP support
608 endef
609
610 $(eval $(call KernelPackage,ppp))
611
612
613 define KernelPackage/ppp-synctty
614 SUBMENU:=$(NETWORK_SUPPORT_MENU)
615 TITLE:=PPP sync tty support
616 DEPENDS:=kmod-ppp
617 KCONFIG:=CONFIG_PPP_SYNC_TTY
618 FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_synctty.ko
619 AUTOLOAD:=$(call AutoProbe,ppp_synctty)
620 endef
621
622 define KernelPackage/ppp-synctty/description
623 Kernel modules for PPP sync tty support
624 endef
625
626 $(eval $(call KernelPackage,ppp-synctty))
627
628
629 define KernelPackage/pppox
630 SUBMENU:=$(NETWORK_SUPPORT_MENU)
631 TITLE:=PPPoX helper
632 DEPENDS:=kmod-ppp
633 KCONFIG:=CONFIG_PPPOE
634 FILES:=$(LINUX_DIR)/drivers/net/ppp/pppox.ko
635 endef
636
637 define KernelPackage/pppox/description
638 Kernel helper module for PPPoE and PPTP support
639 endef
640
641 $(eval $(call KernelPackage,pppox))
642
643
644 define KernelPackage/pppoe
645 SUBMENU:=$(NETWORK_SUPPORT_MENU)
646 TITLE:=PPPoE support
647 DEPENDS:=kmod-ppp +kmod-pppox
648 KCONFIG:=CONFIG_PPPOE
649 FILES:=$(LINUX_DIR)/drivers/net/ppp/pppoe.ko
650 AUTOLOAD:=$(call AutoProbe,pppoe)
651 endef
652
653 define KernelPackage/pppoe/description
654 Kernel module for PPPoE (PPP over Ethernet) support
655 endef
656
657 $(eval $(call KernelPackage,pppoe))
658
659
660 define KernelPackage/pppoa
661 SUBMENU:=$(NETWORK_SUPPORT_MENU)
662 TITLE:=PPPoA support
663 DEPENDS:=kmod-ppp +kmod-atm
664 KCONFIG:=CONFIG_PPPOATM CONFIG_ATM_DRIVERS=y
665 FILES:=$(LINUX_DIR)/net/atm/pppoatm.ko
666 AUTOLOAD:=$(call AutoLoad,40,pppoatm)
667 endef
668
669 define KernelPackage/pppoa/description
670 Kernel modules for PPPoA (PPP over ATM) support
671 endef
672
673 $(eval $(call KernelPackage,pppoa))
674
675
676 define KernelPackage/pptp
677 SUBMENU:=$(NETWORK_SUPPORT_MENU)
678 TITLE:=PPtP support
679 DEPENDS:=kmod-ppp +kmod-gre +kmod-pppox
680 KCONFIG:=CONFIG_PPTP
681 FILES:=$(LINUX_DIR)/drivers/net/ppp/pptp.ko
682 AUTOLOAD:=$(call AutoProbe,pptp)
683 endef
684
685 $(eval $(call KernelPackage,pptp))
686
687
688 define KernelPackage/pppol2tp
689 SUBMENU:=$(NETWORK_SUPPORT_MENU)
690 TITLE:=PPPoL2TP support
691 DEPENDS:=kmod-ppp +kmod-pppox +kmod-l2tp
692 KCONFIG:=CONFIG_PPPOL2TP
693 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ppp.ko
694 AUTOLOAD:=$(call AutoProbe,l2tp_ppp)
695 endef
696
697 define KernelPackage/pppol2tp/description
698 Kernel modules for PPPoL2TP (PPP over L2TP) support
699 endef
700
701 $(eval $(call KernelPackage,pppol2tp))
702
703
704 define KernelPackage/ipoa
705 SUBMENU:=$(NETWORK_SUPPORT_MENU)
706 TITLE:=IPoA support
707 DEPENDS:=kmod-atm
708 KCONFIG:=CONFIG_ATM_CLIP
709 FILES:=$(LINUX_DIR)/net/atm/clip.ko
710 AUTOLOAD:=$(call AutoProbe,clip)
711 endef
712
713 define KernelPackage/ipoa/description
714 Kernel modules for IPoA (IP over ATM) support
715 endef
716
717 $(eval $(call KernelPackage,ipoa))
718
719
720 define KernelPackage/mppe
721 SUBMENU:=$(NETWORK_SUPPORT_MENU)
722 TITLE:=Microsoft PPP compression/encryption
723 DEPENDS:=kmod-ppp +kmod-crypto-sha1 +kmod-crypto-ecb
724 KCONFIG:= \
725 CONFIG_PPP_MPPE_MPPC \
726 CONFIG_PPP_MPPE
727 FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_mppe.ko
728 AUTOLOAD:=$(call AutoProbe,ppp_mppe)
729 endef
730
731 define KernelPackage/mppe/description
732 Kernel modules for Microsoft PPP compression/encryption
733 endef
734
735 $(eval $(call KernelPackage,mppe))
736
737
738 SCHED_MODULES = $(patsubst $(LINUX_DIR)/net/sched/%.ko,%,$(wildcard $(LINUX_DIR)/net/sched/*.ko))
739 SCHED_MODULES_CORE = sch_ingress sch_fq_codel sch_hfsc sch_htb sch_tbf cls_fw cls_route cls_flow cls_tcindex cls_u32 em_u32 act_mirred act_skbedit
740 SCHED_MODULES_FILTER = $(SCHED_MODULES_CORE) act_connmark sch_netem
741 SCHED_MODULES_EXTRA = $(filter-out $(SCHED_MODULES_FILTER),$(SCHED_MODULES))
742 SCHED_FILES = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(filter $(SCHED_MODULES_CORE),$(SCHED_MODULES)))
743 SCHED_FILES_EXTRA = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(SCHED_MODULES_EXTRA))
744
745 define KernelPackage/sched-core
746 SUBMENU:=$(NETWORK_SUPPORT_MENU)
747 TITLE:=Traffic schedulers
748 KCONFIG:= \
749 CONFIG_NET_SCHED=y \
750 CONFIG_NET_SCH_HFSC \
751 CONFIG_NET_SCH_HTB \
752 CONFIG_NET_SCH_TBF \
753 CONFIG_NET_SCH_INGRESS \
754 CONFIG_NET_SCH_FQ_CODEL \
755 CONFIG_NET_CLS=y \
756 CONFIG_NET_CLS_ACT=y \
757 CONFIG_NET_CLS_FLOW \
758 CONFIG_NET_CLS_FW \
759 CONFIG_NET_CLS_ROUTE4 \
760 CONFIG_NET_CLS_TCINDEX \
761 CONFIG_NET_CLS_U32 \
762 CONFIG_NET_ACT_MIRRED \
763 CONFIG_NET_ACT_SKBEDIT \
764 CONFIG_NET_EMATCH=y \
765 CONFIG_NET_EMATCH_U32
766 FILES:=$(SCHED_FILES)
767 AUTOLOAD:=$(call AutoLoad,70, $(SCHED_MODULES_CORE))
768 endef
769
770 define KernelPackage/sched-core/description
771 Core kernel scheduler support for IP traffic
772 endef
773
774 $(eval $(call KernelPackage,sched-core))
775
776
777 define KernelPackage/sched-connmark
778 SUBMENU:=$(NETWORK_SUPPORT_MENU)
779 TITLE:=Traffic shaper conntrack mark support
780 DEPENDS:=+kmod-sched-core +kmod-ipt-core +kmod-ipt-conntrack-extra
781 KCONFIG:=CONFIG_NET_ACT_CONNMARK
782 FILES:=$(LINUX_DIR)/net/sched/act_connmark.ko
783 AUTOLOAD:=$(call AutoLoad,71, act_connmark)
784 endef
785 $(eval $(call KernelPackage,sched-connmark))
786
787 define KernelPackage/sched
788 SUBMENU:=$(NETWORK_SUPPORT_MENU)
789 TITLE:=Extra traffic schedulers
790 DEPENDS:=+kmod-sched-core +kmod-ipt-core
791 KCONFIG:= \
792 CONFIG_NET_SCH_CODEL \
793 CONFIG_NET_SCH_DSMARK \
794 CONFIG_NET_SCH_FIFO \
795 CONFIG_NET_SCH_GRED \
796 CONFIG_NET_SCH_PRIO \
797 CONFIG_NET_SCH_RED \
798 CONFIG_NET_SCH_SFQ \
799 CONFIG_NET_SCH_TEQL \
800 CONFIG_NET_SCH_FQ \
801 CONFIG_NET_SCH_PIE \
802 CONFIG_NET_CLS_BASIC \
803 CONFIG_NET_ACT_POLICE \
804 CONFIG_NET_ACT_IPT \
805 CONFIG_NET_EMATCH_CMP \
806 CONFIG_NET_EMATCH_NBYTE \
807 CONFIG_NET_EMATCH_META \
808 CONFIG_NET_EMATCH_TEXT
809 FILES:=$(SCHED_FILES_EXTRA)
810 AUTOLOAD:=$(call AutoLoad,73, $(SCHED_MODULES_EXTRA))
811 endef
812
813 define KernelPackage/sched/description
814 Extra kernel schedulers modules for IP traffic
815 endef
816
817 $(eval $(call KernelPackage,sched))
818
819
820 define KernelPackage/ax25
821 SUBMENU:=$(NETWORK_SUPPORT_MENU)
822 TITLE:=AX25 support
823 DEPENDS:=+kmod-lib-crc16
824 KCONFIG:= \
825 CONFIG_HAMRADIO=y \
826 CONFIG_AX25 \
827 CONFIG_MKISS
828 FILES:= \
829 $(LINUX_DIR)/net/ax25/ax25.ko \
830 $(LINUX_DIR)/drivers/net/hamradio/mkiss.ko
831 AUTOLOAD:=$(call AutoLoad,80,ax25 mkiss)
832 endef
833
834 define KernelPackage/ax25/description
835 Kernel modules for AX25 support
836 endef
837
838 $(eval $(call KernelPackage,ax25))
839
840
841 define KernelPackage/pktgen
842 SUBMENU:=$(NETWORK_SUPPORT_MENU)
843 DEPENDS:=@!TARGET_uml
844 TITLE:=Network packet generator
845 KCONFIG:=CONFIG_NET_PKTGEN
846 FILES:=$(LINUX_DIR)/net/core/pktgen.ko
847 AUTOLOAD:=$(call AutoLoad,99,pktgen)
848 endef
849
850 define KernelPackage/pktgen/description
851 Kernel modules for the Network Packet Generator
852 endef
853
854 $(eval $(call KernelPackage,pktgen))
855
856 define KernelPackage/l2tp
857 SUBMENU:=$(NETWORK_SUPPORT_MENU)
858 TITLE:=Layer Two Tunneling Protocol (L2TP)
859 DEPENDS:= \
860 +kmod-udptunnel4 \
861 +IPV6:kmod-udptunnel6
862 KCONFIG:=CONFIG_L2TP \
863 CONFIG_L2TP_V3=y \
864 CONFIG_L2TP_DEBUGFS=n
865 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_core.ko \
866 $(LINUX_DIR)/net/l2tp/l2tp_netlink.ko
867 AUTOLOAD:=$(call AutoLoad,32,l2tp_core l2tp_netlink)
868 endef
869
870 define KernelPackage/l2tp/description
871 Kernel modules for L2TP V3 Support
872 endef
873
874 $(eval $(call KernelPackage,l2tp))
875
876
877 define KernelPackage/l2tp-eth
878 SUBMENU:=$(NETWORK_SUPPORT_MENU)
879 TITLE:=L2TP ethernet pseudowire support for L2TPv3
880 DEPENDS:=+kmod-l2tp
881 KCONFIG:=CONFIG_L2TP_ETH
882 FILES:=$(LINUX_DIR)/net/l2tp/l2tp_eth.ko
883 AUTOLOAD:=$(call AutoLoad,33,l2tp_eth)
884 endef
885
886 define KernelPackage/l2tp-eth/description
887 Kernel modules for L2TP ethernet pseudowire support for L2TPv3
888 endef
889
890 $(eval $(call KernelPackage,l2tp-eth))
891
892 define KernelPackage/l2tp-ip
893 SUBMENU:=$(NETWORK_SUPPORT_MENU)
894 TITLE:=L2TP IP encapsulation for L2TPv3
895 DEPENDS:=+kmod-l2tp
896 KCONFIG:=CONFIG_L2TP_IP
897 FILES:= \
898 $(LINUX_DIR)/net/l2tp/l2tp_ip.ko \
899 $(if $(CONFIG_IPV6),$(LINUX_DIR)/net/l2tp/l2tp_ip6.ko)
900 AUTOLOAD:=$(call AutoLoad,33,l2tp_ip $(if $(CONFIG_IPV6),l2tp_ip6))
901 endef
902
903 define KernelPackage/l2tp-ip/description
904 Kernel modules for L2TP IP encapsulation for L2TPv3
905 endef
906
907 $(eval $(call KernelPackage,l2tp-ip))
908
909
910 define KernelPackage/sctp
911 SUBMENU:=$(NETWORK_SUPPORT_MENU)
912 TITLE:=SCTP protocol kernel support
913 KCONFIG:=\
914 CONFIG_IP_SCTP \
915 CONFIG_SCTP_DBG_MSG=n \
916 CONFIG_SCTP_DBG_OBJCNT=n \
917 CONFIG_SCTP_HMAC_NONE=n \
918 CONFIG_SCTP_HMAC_SHA1=n \
919 CONFIG_SCTP_HMAC_MD5=y \
920 CONFIG_SCTP_COOKIE_HMAC_SHA1=n \
921 CONFIG_SCTP_COOKIE_HMAC_MD5=y \
922 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE=n \
923 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=n \
924 CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
925 FILES:= $(LINUX_DIR)/net/sctp/sctp.ko
926 AUTOLOAD:= $(call AutoLoad,32,sctp)
927 DEPENDS:=+kmod-lib-crc32c +kmod-crypto-md5 +kmod-crypto-hmac
928 endef
929
930 define KernelPackage/sctp/description
931 Kernel modules for SCTP protocol support
932 endef
933
934 $(eval $(call KernelPackage,sctp))
935
936
937 define KernelPackage/netem
938 SUBMENU:=$(NETWORK_SUPPORT_MENU)
939 TITLE:=Network emulation functionality
940 DEPENDS:=+kmod-sched
941 KCONFIG:=CONFIG_NET_SCH_NETEM
942 FILES:=$(LINUX_DIR)/net/sched/sch_netem.ko
943 AUTOLOAD:=$(call AutoLoad,99,netem)
944 endef
945
946 define KernelPackage/netem/description
947 Kernel modules for emulating the properties of wide area networks
948 endef
949
950 $(eval $(call KernelPackage,netem))
951
952 define KernelPackage/slip
953 SUBMENU:=$(NETWORK_SUPPORT_MENU)
954 DEPENDS:=+kmod-slhc
955 TITLE:=SLIP modules
956 KCONFIG:= \
957 CONFIG_SLIP \
958 CONFIG_SLIP_COMPRESSED=y \
959 CONFIG_SLIP_SMART=y \
960 CONFIG_SLIP_MODE_SLIP6=y
961
962 FILES:= \
963 $(LINUX_DIR)/drivers/net/slip/slip.ko
964 AUTOLOAD:=$(call AutoLoad,30,slip)
965 endef
966
967 define KernelPackage/slip/description
968 Kernel modules for SLIP support
969 endef
970
971 $(eval $(call KernelPackage,slip))
972
973 define KernelPackage/dnsresolver
974 SUBMENU:=$(NETWORK_SUPPORT_MENU)
975 TITLE:=In-kernel DNS Resolver
976 KCONFIG:= CONFIG_DNS_RESOLVER
977 FILES:=$(LINUX_DIR)/net/dns_resolver/dns_resolver.ko
978 AUTOLOAD:=$(call AutoLoad,30,dns_resolver)
979 endef
980
981 $(eval $(call KernelPackage,dnsresolver))
982
983 define KernelPackage/rxrpc
984 SUBMENU:=$(NETWORK_SUPPORT_MENU)
985 TITLE:=AF_RXRPC support
986 HIDDEN:=1
987 KCONFIG:= \
988 CONFIG_AF_RXRPC \
989 CONFIG_RXKAD=m \
990 CONFIG_AF_RXRPC_DEBUG=n
991 FILES:= \
992 $(LINUX_DIR)/net/rxrpc/af-rxrpc.ko \
993 $(LINUX_DIR)/net/rxrpc/rxkad.ko
994 AUTOLOAD:=$(call AutoLoad,30,rxkad af-rxrpc)
995 DEPENDS:= +kmod-crypto-manager +kmod-crypto-pcbc +kmod-crypto-fcrypt
996 endef
997
998 define KernelPackage/rxrpc/description
999 Kernel support for AF_RXRPC; required for AFS client
1000 endef
1001
1002 $(eval $(call KernelPackage,rxrpc))
1003
1004 define KernelPackage/mpls
1005 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1006 TITLE:=MPLS support
1007 DEPENDS:=@!(LINUX_3_18||LINUX_4_1)
1008 KCONFIG:= \
1009 CONFIG_MPLS=y \
1010 CONFIG_LWTUNNEL=y \
1011 CONFIG_NET_MPLS_GSO=m \
1012 CONFIG_MPLS_ROUTING=m \
1013 CONFIG_MPLS_IPTUNNEL=m
1014 FILES:= \
1015 $(LINUX_DIR)/net/mpls/mpls_gso.ko \
1016 $(LINUX_DIR)/net/mpls/mpls_iptunnel.ko \
1017 $(LINUX_DIR)/net/mpls/mpls_router.ko
1018 AUTOLOAD:=$(call AutoLoad,30,mpls_router mpls_iptunnel mpls_gso)
1019 endef
1020
1021 define KernelPackage/mpls/description
1022 Kernel support for MPLS
1023 endef
1024
1025 $(eval $(call KernelPackage,mpls))
1026
1027 define KernelPackage/9pnet
1028 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1029 TITLE:=Plan 9 Resource Sharing Support (9P2000)
1030 DEPENDS:=@VIRTIO_SUPPORT
1031 KCONFIG:= \
1032 CONFIG_NET_9P \
1033 CONFIG_NET_9P_DEBUG=n \
1034 CONFIG_NET_9P_VIRTIO
1035 FILES:= \
1036 $(LINUX_DIR)/net/9p/9pnet.ko \
1037 $(LINUX_DIR)/net/9p/9pnet_virtio.ko
1038 AUTOLOAD:=$(call AutoLoad,29,9pnet 9pnet_virtio)
1039 endef
1040
1041 define KernelPackage/9pnet/description
1042 Kernel support support for
1043 Plan 9 resource sharing via the 9P2000 protocol.
1044 endef
1045
1046 $(eval $(call KernelPackage,9pnet))
1047
1048
1049 define KernelPackage/nlmon
1050 SUBMENU:=$(NETWORK_SUPPORT_MENU)
1051 TITLE:=Virtual netlink monitoring device
1052 KCONFIG:=CONFIG_NLMON
1053 FILES:=$(LINUX_DIR)/drivers/net/nlmon.ko
1054 AUTOLOAD:=$(call AutoProbe,nlmon)
1055 endef
1056
1057 define KernelPackage/nlmon/description
1058 Kernel module which adds a monitoring device for netlink.
1059 endef
1060
1061 $(eval $(call KernelPackage,nlmon))