netsupport.mk 24 KB

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