netsupport.mk 25 KB

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