netsupport.mk 26 KB

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