netsupport.mk 25 KB

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