netsupport.mk 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870
  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. KCONFIG:= \
  39. CONFIG_ATALK \
  40. CONFIG_DEV_APPLETALK \
  41. CONFIG_IPDDP \
  42. CONFIG_IPDDP_ENCAP=y \
  43. CONFIG_IPDDP_DECAP=y
  44. FILES:= \
  45. $(LINUX_DIR)/net/appletalk/appletalk.ko \
  46. $(LINUX_DIR)/drivers/net/appletalk/ipddp.ko
  47. AUTOLOAD:=$(call AutoLoad,40,appletalk ipddp)
  48. endef
  49. define KernelPackage/appletalk/description
  50. Kernel module for AppleTalk protocol.
  51. endef
  52. $(eval $(call KernelPackage,appletalk))
  53. define KernelPackage/bonding
  54. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  55. TITLE:=Ethernet bonding driver
  56. KCONFIG:=CONFIG_BONDING
  57. FILES:=$(LINUX_DIR)/drivers/net/bonding/bonding.ko
  58. AUTOLOAD:=$(call AutoLoad,40,bonding)
  59. endef
  60. define KernelPackage/bonding/description
  61. Kernel module for NIC bonding.
  62. endef
  63. $(eval $(call KernelPackage,bonding))
  64. define KernelPackage/bridge
  65. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  66. TITLE:=Ethernet bridging support
  67. DEPENDS:=+kmod-stp
  68. KCONFIG:= \
  69. CONFIG_BRIDGE \
  70. CONFIG_BRIDGE_IGMP_SNOOPING=y
  71. FILES:=$(LINUX_DIR)/net/bridge/bridge.ko
  72. AUTOLOAD:=$(call AutoLoad,11,bridge)
  73. endef
  74. define KernelPackage/bridge/description
  75. Kernel module for Ethernet bridging.
  76. endef
  77. $(eval $(call KernelPackage,bridge))
  78. define KernelPackage/llc
  79. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  80. TITLE:=ANSI/IEEE 802.2 LLC support
  81. KCONFIG:=CONFIG_LLC
  82. FILES:=$(LINUX_DIR)/net/llc/llc.ko
  83. AUTOLOAD:=$(call AutoLoad,09,llc)
  84. endef
  85. define KernelPackage/llc/description
  86. Kernel module for ANSI/IEEE 802.2 LLC support.
  87. endef
  88. $(eval $(call KernelPackage,llc))
  89. define KernelPackage/stp
  90. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  91. TITLE:=Ethernet Spanning Tree Protocol support
  92. DEPENDS:=+kmod-llc
  93. KCONFIG:=CONFIG_STP
  94. FILES:=$(LINUX_DIR)/net/802/stp.ko
  95. AUTOLOAD:=$(call AutoLoad,10,stp)
  96. endef
  97. define KernelPackage/stp/description
  98. Kernel module for Ethernet Spanning Tree Protocol support.
  99. endef
  100. $(eval $(call KernelPackage,stp))
  101. define KernelPackage/8021q
  102. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  103. TITLE:=802.1Q VLAN support
  104. KCONFIG:=CONFIG_VLAN_8021Q \
  105. CONFIG_VLAN_8021Q_GVRP=n
  106. FILES:=$(LINUX_DIR)/net/8021q/8021q.ko
  107. AUTOLOAD:=$(call AutoLoad,12,8021q)
  108. endef
  109. define KernelPackage/8021q/description
  110. Kernel module for 802.1Q VLAN support
  111. endef
  112. $(eval $(call KernelPackage,8021q))
  113. define KernelPackage/capi
  114. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  115. TITLE:=CAPI (ISDN) Support
  116. KCONFIG:= \
  117. CONFIG_ISDN_CAPI \
  118. CONFIG_ISDN_CAPI_CAPI20 \
  119. CONFIG_ISDN_CAPIFS \
  120. CONFIG_ISDN_CAPI_CAPIFS
  121. FILES:= \
  122. $(LINUX_DIR)/drivers/isdn/capi/kernelcapi.ko \
  123. $(LINUX_DIR)/drivers/isdn/capi/capi.ko
  124. AUTOLOAD:=$(call AutoLoad,30,kernelcapi capi)
  125. endef
  126. define KernelPackage/capi/description
  127. Kernel module for basic CAPI (ISDN) support
  128. endef
  129. $(eval $(call KernelPackage,capi))
  130. define KernelPackage/misdn
  131. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  132. TITLE:=mISDN (ISDN) Support
  133. KCONFIG:= \
  134. CONFIG_ISDN=y \
  135. CONFIG_MISDN \
  136. CONFIG_MISDN_DSP \
  137. CONFIG_MISDN_L1OIP
  138. FILES:= \
  139. $(LINUX_DIR)/drivers/isdn/mISDN/mISDN_core.ko \
  140. $(LINUX_DIR)/drivers/isdn/mISDN/mISDN_dsp.ko \
  141. $(LINUX_DIR)/drivers/isdn/mISDN/l1oip.ko
  142. AUTOLOAD:=$(call AutoLoad,30,mISDN_core mISDN_dsp l1oip)
  143. endef
  144. define KernelPackage/misdn/description
  145. Modular ISDN driver support
  146. endef
  147. $(eval $(call KernelPackage,misdn))
  148. define KernelPackage/isdn4linux
  149. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  150. TITLE:=Old ISDN4Linux (deprecated)
  151. KCONFIG:= \
  152. CONFIG_ISDN=y \
  153. CONFIG_ISDN_I4L \
  154. CONFIG_ISDN_PPP=y \
  155. CONFIG_ISDN_PPP_VJ=y \
  156. CONFIG_ISDN_MPP=y \
  157. CONFIG_IPPP_FILTER=y \
  158. CONFIG_ISDN_PPP_BSDCOMP \
  159. CONFIG_ISDN_CAPI_MIDDLEWARE=y \
  160. CONFIG_ISDN_CAPI_CAPIFS_BOOL=y \
  161. CONFIG_ISDN_AUDIO=y \
  162. CONFIG_ISDN_TTY_FAX=y \
  163. CONFIG_ISDN_X25=y \
  164. CONFIG_ISDN_DIVERSION
  165. FILES:= \
  166. $(LINUX_DIR)/drivers/isdn/divert/dss1_divert.ko \
  167. $(LINUX_DIR)/drivers/isdn/i4l/isdn.ko \
  168. $(LINUX_DIR)/drivers/isdn/i4l/isdn_bsdcomp.ko
  169. AUTOLOAD:=$(call AutoLoad,40,isdn isdn_bsdcomp dss1_divert)
  170. endef
  171. define KernelPackage/isdn4linux/description
  172. This driver allows you to use an ISDN adapter for networking
  173. endef
  174. $(eval $(call KernelPackage,isdn4linux))
  175. define KernelPackage/ipip
  176. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  177. TITLE:=IP-in-IP encapsulation
  178. DEPENDS:=+kmod-iptunnel4
  179. KCONFIG:=CONFIG_NET_IPIP
  180. FILES:=$(LINUX_DIR)/net/ipv4/ipip.ko
  181. AUTOLOAD:=$(call AutoLoad,32,ipip)
  182. endef
  183. define KernelPackage/ipip/description
  184. Kernel modules for IP-in-IP encapsulation
  185. endef
  186. $(eval $(call KernelPackage,ipip))
  187. IPSEC-m:= \
  188. key/af_key \
  189. xfrm/xfrm_ipcomp \
  190. $(if $(CONFIG_LINUX_3_3),,xfrm/xfrm_algo) \
  191. xfrm/xfrm_user \
  192. define KernelPackage/ipsec
  193. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  194. TITLE:=IPsec related modules (IPv4 and IPv6)
  195. 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
  196. KCONFIG:= \
  197. CONFIG_NET_KEY \
  198. CONFIG_XFRM_USER \
  199. CONFIG_INET_IPCOMP \
  200. CONFIG_XFRM_IPCOMP
  201. FILES:=$(foreach mod,$(IPSEC-m),$(LINUX_DIR)/net/$(mod).ko)
  202. AUTOLOAD:=$(call AutoLoad,30,$(notdir $(IPSEC-m)))
  203. endef
  204. define KernelPackage/ipsec/description
  205. Kernel modules for IPsec support in both IPv4 and IPv6.
  206. Includes:
  207. - af_key
  208. - xfrm_ipcomp
  209. - xfrm_user
  210. endef
  211. $(eval $(call KernelPackage,ipsec))
  212. IPSEC4-m:= \
  213. ipv4/ah4 \
  214. ipv4/esp4 \
  215. ipv4/xfrm4_mode_beet \
  216. ipv4/xfrm4_mode_transport \
  217. ipv4/xfrm4_mode_tunnel \
  218. ipv4/xfrm4_tunnel \
  219. ipv4/ipcomp \
  220. define KernelPackage/ipsec4
  221. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  222. TITLE:=IPsec related modules (IPv4)
  223. DEPENDS:=kmod-ipsec +kmod-iptunnel4
  224. KCONFIG:= \
  225. CONFIG_INET_AH \
  226. CONFIG_INET_ESP \
  227. CONFIG_INET_IPCOMP \
  228. CONFIG_INET_XFRM_MODE_BEET \
  229. CONFIG_INET_XFRM_MODE_TRANSPORT \
  230. CONFIG_INET_XFRM_MODE_TUNNEL \
  231. CONFIG_INET_XFRM_TUNNEL
  232. FILES:=$(foreach mod,$(IPSEC4-m),$(LINUX_DIR)/net/$(mod).ko)
  233. AUTOLOAD:=$(call AutoLoad,32,$(notdir $(IPSEC4-m)))
  234. endef
  235. define KernelPackage/ipsec4/description
  236. Kernel modules for IPsec support in IPv4.
  237. Includes:
  238. - ah4
  239. - esp4
  240. - ipcomp4
  241. - xfrm4_mode_beet
  242. - xfrm4_mode_transport
  243. - xfrm4_mode_tunnel
  244. - xfrm4_tunnel
  245. endef
  246. $(eval $(call KernelPackage,ipsec4))
  247. IPSEC6-m:= \
  248. ipv6/ah6 \
  249. ipv6/esp6 \
  250. ipv6/xfrm6_mode_beet \
  251. ipv6/xfrm6_mode_transport \
  252. ipv6/xfrm6_mode_tunnel \
  253. ipv6/xfrm6_tunnel \
  254. ipv6/ipcomp6 \
  255. define KernelPackage/ipsec6
  256. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  257. TITLE:=IPsec related modules (IPv6)
  258. DEPENDS:=kmod-ipsec +kmod-iptunnel6
  259. KCONFIG:= \
  260. CONFIG_INET6_AH \
  261. CONFIG_INET6_ESP \
  262. CONFIG_INET6_IPCOMP \
  263. CONFIG_INET6_XFRM_MODE_BEET \
  264. CONFIG_INET6_XFRM_MODE_TRANSPORT \
  265. CONFIG_INET6_XFRM_MODE_TUNNEL \
  266. CONFIG_INET6_XFRM_TUNNEL
  267. FILES:=$(foreach mod,$(IPSEC6-m),$(LINUX_DIR)/net/$(mod).ko)
  268. AUTOLOAD:=$(call AutoLoad,32,$(notdir $(IPSEC6-m)))
  269. endef
  270. define KernelPackage/ipsec6/description
  271. Kernel modules for IPsec support in IPv6.
  272. Includes:
  273. - ah6
  274. - esp6
  275. - ipcomp6
  276. - xfrm6_mode_beet
  277. - xfrm6_mode_transport
  278. - xfrm6_mode_tunnel
  279. - xfrm6_tunnel
  280. endef
  281. $(eval $(call KernelPackage,ipsec6))
  282. # NOTE: tunnel4 is not selectable by itself, so enable ipip for that
  283. define KernelPackage/iptunnel4
  284. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  285. TITLE:=IPv4 tunneling
  286. KCONFIG:= \
  287. CONFIG_NET_IPIP \
  288. CONFIG_INET_TUNNEL
  289. FILES:=$(LINUX_DIR)/net/ipv4/tunnel4.ko
  290. AUTOLOAD:=$(call AutoLoad,31,tunnel4)
  291. endef
  292. define KernelPackage/iptunnel4/description
  293. Kernel modules for IPv4 tunneling
  294. endef
  295. $(eval $(call KernelPackage,iptunnel4))
  296. define KernelPackage/iptunnel6
  297. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  298. TITLE:=IPv6 tunneling
  299. DEPENDS:= +kmod-ipv6
  300. KCONFIG:= \
  301. CONFIG_INET6_TUNNEL
  302. FILES:=$(LINUX_DIR)/net/ipv6/tunnel6.ko
  303. AUTOLOAD:=$(call AutoLoad,31,tunnel6)
  304. endef
  305. define KernelPackage/iptunnel6/description
  306. Kernel modules for IPv6 tunneling
  307. endef
  308. $(eval $(call KernelPackage,iptunnel6))
  309. define KernelPackage/ipv6
  310. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  311. TITLE:=IPv6 support
  312. KCONFIG:= \
  313. CONFIG_IPV6 \
  314. CONFIG_IPV6_PRIVACY=y \
  315. CONFIG_IPV6_MULTIPLE_TABLES=y \
  316. CONFIG_IPV6_MROUTE=y \
  317. CONFIG_IPV6_PIMSM_V2=n \
  318. CONFIG_IPV6_SUBTREES=y
  319. FILES:=$(LINUX_DIR)/net/ipv6/ipv6.ko
  320. AUTOLOAD:=$(call AutoLoad,20,ipv6)
  321. endef
  322. define KernelPackage/ipv6/description
  323. Kernel modules for IPv6 support
  324. endef
  325. $(eval $(call KernelPackage,ipv6))
  326. define KernelPackage/sit
  327. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  328. DEPENDS:=+kmod-ipv6 +kmod-iptunnel4
  329. TITLE:=IPv6-in-IPv4 tunnel
  330. KCONFIG:=CONFIG_IPV6_SIT \
  331. CONFIG_IPV6_SIT_6RD=y
  332. FILES:=$(LINUX_DIR)/net/ipv6/sit.ko
  333. AUTOLOAD:=$(call AutoLoad,32,sit)
  334. endef
  335. define KernelPackage/sit/description
  336. Kernel modules for IPv6-in-IPv4 tunnelling
  337. endef
  338. $(eval $(call KernelPackage,sit))
  339. define KernelPackage/ip6-tunnel
  340. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  341. TITLE:=IP-in-IPv6 tunnelling
  342. DEPENDS:= +kmod-ipv6 +kmod-iptunnel6
  343. KCONFIG:= CONFIG_IPV6_TUNNEL
  344. FILES:=$(LINUX_DIR)/net/ipv6/ip6_tunnel.ko
  345. AUTOLOAD:=$(call AutoLoad,32,ip6_tunnel)
  346. endef
  347. define KernelPackage/ip6-tunnel/description
  348. Kernel modules for IPv6-in-IPv6 and IPv4-in-IPv6 tunnelling
  349. endef
  350. $(eval $(call KernelPackage,ip6-tunnel))
  351. define KernelPackage/gre
  352. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  353. TITLE:=GRE support
  354. DEPENDS:=+PACKAGE_kmod-ipv6:kmod-ipv6
  355. KCONFIG:=CONFIG_NET_IPGRE CONFIG_NET_IPGRE_DEMUX
  356. FILES:=$(LINUX_DIR)/net/ipv4/ip_gre.ko $(LINUX_DIR)/net/ipv4/gre.ko
  357. AUTOLOAD:=$(call AutoLoad,39,gre ip_gre)
  358. endef
  359. define KernelPackage/gre/description
  360. Generic Routing Encapsulation support
  361. endef
  362. $(eval $(call KernelPackage,gre))
  363. define KernelPackage/tun
  364. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  365. TITLE:=Universal TUN/TAP driver
  366. KCONFIG:=CONFIG_TUN
  367. FILES:=$(LINUX_DIR)/drivers/net/tun.ko
  368. AUTOLOAD:=$(call AutoLoad,30,tun)
  369. endef
  370. define KernelPackage/tun/description
  371. Kernel support for the TUN/TAP tunneling device
  372. endef
  373. $(eval $(call KernelPackage,tun))
  374. define KernelPackage/ppp
  375. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  376. TITLE:=PPP modules
  377. DEPENDS:=+kmod-lib-crc-ccitt
  378. KCONFIG:= \
  379. CONFIG_PPP \
  380. CONFIG_PPP_ASYNC \
  381. CONFIG_SLHC
  382. FILES:= \
  383. $(LINUX_DIR)/drivers/net/ppp/ppp_async.ko \
  384. $(LINUX_DIR)/drivers/net/ppp/ppp_generic.ko \
  385. $(LINUX_DIR)/drivers/net/slip/slhc.ko
  386. AUTOLOAD:=$(call AutoLoad,30,slhc ppp_generic ppp_async)
  387. endef
  388. define KernelPackage/ppp/description
  389. Kernel modules for PPP support
  390. endef
  391. $(eval $(call KernelPackage,ppp))
  392. define KernelPackage/ppp-synctty
  393. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  394. TITLE:=PPP sync tty support
  395. DEPENDS:=kmod-ppp
  396. KCONFIG:=CONFIG_PPP_SYNC_TTY
  397. FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_synctty.ko
  398. AUTOLOAD:=$(call AutoLoad,40,ppp_synctty)
  399. endef
  400. define KernelPackage/ppp-synctty/description
  401. Kernel modules for PPP sync tty support
  402. endef
  403. $(eval $(call KernelPackage,ppp-synctty))
  404. define KernelPackage/pppox
  405. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  406. TITLE:=PPPoX helper
  407. DEPENDS:=kmod-ppp
  408. KCONFIG:=CONFIG_PPPOE
  409. FILES:=$(LINUX_DIR)/drivers/net/ppp/pppox.ko
  410. AUTOLOAD:=$(call AutoLoad,40,pppox)
  411. endef
  412. define KernelPackage/pppox/description
  413. Kernel helper module for PPPoE and PPTP support
  414. endef
  415. $(eval $(call KernelPackage,pppox))
  416. define KernelPackage/pppoe
  417. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  418. TITLE:=PPPoE support
  419. DEPENDS:=kmod-ppp +kmod-pppox
  420. KCONFIG:=CONFIG_PPPOE
  421. FILES:=$(LINUX_DIR)/drivers/net/ppp/pppoe.ko
  422. AUTOLOAD:=$(call AutoLoad,41,pppoe)
  423. endef
  424. define KernelPackage/pppoe/description
  425. Kernel module for PPPoE (PPP over Ethernet) support
  426. endef
  427. $(eval $(call KernelPackage,pppoe))
  428. define KernelPackage/pppoa
  429. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  430. TITLE:=PPPoA support
  431. DEPENDS:=kmod-ppp +kmod-atm
  432. KCONFIG:=CONFIG_PPPOATM CONFIG_ATM_DRIVERS=y
  433. FILES:=$(LINUX_DIR)/net/atm/pppoatm.ko
  434. AUTOLOAD:=$(call AutoLoad,40,pppoatm)
  435. endef
  436. define KernelPackage/pppoa/description
  437. Kernel modules for PPPoA (PPP over ATM) support
  438. endef
  439. $(eval $(call KernelPackage,pppoa))
  440. define KernelPackage/pptp
  441. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  442. TITLE:=PPtP support
  443. DEPENDS:=kmod-ppp +kmod-gre +kmod-pppox
  444. KCONFIG:=CONFIG_PPTP
  445. FILES:=$(LINUX_DIR)/drivers/net/ppp/pptp.ko
  446. AUTOLOAD:=$(call AutoLoad,41,pptp)
  447. endef
  448. $(eval $(call KernelPackage,pptp))
  449. define KernelPackage/pppol2tp
  450. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  451. TITLE:=PPPoL2TP support
  452. DEPENDS:=kmod-ppp +kmod-pppox +kmod-l2tp
  453. KCONFIG:=CONFIG_PPPOL2TP
  454. FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ppp.ko
  455. AUTOLOAD:=$(call AutoLoad,41,l2tp_ppp)
  456. endef
  457. define KernelPackage/pppol2tp/description
  458. Kernel modules for PPPoL2TP (PPP over L2TP) support
  459. endef
  460. $(eval $(call KernelPackage,pppol2tp))
  461. define KernelPackage/ipoa
  462. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  463. TITLE:=IPoA support
  464. DEPENDS:=kmod-atm
  465. KCONFIG:=CONFIG_ATM_CLIP
  466. FILES:=$(LINUX_DIR)/net/atm/clip.ko
  467. AUTOLOAD:=$(call AutoLoad,40,clip)
  468. endef
  469. define KernelPackage/ipoa/description
  470. Kernel modules for IPoA (IP over ATM) support
  471. endef
  472. $(eval $(call KernelPackage,ipoa))
  473. define KernelPackage/mppe
  474. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  475. TITLE:=Microsoft PPP compression/encryption
  476. DEPENDS:=kmod-ppp +kmod-crypto-core +kmod-crypto-arc4 +kmod-crypto-sha1 +kmod-crypto-ecb
  477. KCONFIG:= \
  478. CONFIG_PPP_MPPE_MPPC \
  479. CONFIG_PPP_MPPE
  480. FILES:=$(LINUX_DIR)/drivers/net/ppp/ppp_mppe.ko
  481. AUTOLOAD:=$(call AutoLoad,31,ppp_mppe)
  482. endef
  483. define KernelPackage/mppe/description
  484. Kernel modules for Microsoft PPP compression/encryption
  485. endef
  486. $(eval $(call KernelPackage,mppe))
  487. SCHED_MODULES = $(patsubst $(LINUX_DIR)/net/sched/%.ko,%,$(wildcard $(LINUX_DIR)/net/sched/*.ko))
  488. SCHED_MODULES_CORE = sch_ingress sch_codel sch_fq_codel sch_hfsc cls_fw cls_route cls_flow cls_tcindex cls_u32 em_u32 act_mirred act_skbedit
  489. SCHED_MODULES_FILTER = $(SCHED_MODULES_CORE) act_connmark sch_esfq
  490. SCHED_MODULES_EXTRA = $(filter-out $(SCHED_MODULES_FILTER),$(SCHED_MODULES))
  491. SCHED_FILES = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(filter $(SCHED_MODULES_CORE),$(SCHED_MODULES)))
  492. SCHED_FILES_EXTRA = $(patsubst %,$(LINUX_DIR)/net/sched/%.ko,$(SCHED_MODULES_EXTRA))
  493. define KernelPackage/sched-core
  494. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  495. TITLE:=Traffic schedulers
  496. KCONFIG:= \
  497. CONFIG_NET_SCHED=y \
  498. CONFIG_NET_SCH_HFSC \
  499. CONFIG_NET_SCH_INGRESS \
  500. CONFIG_NET_SCH_CODEL \
  501. CONFIG_NET_SCH_FQ_CODEL \
  502. CONFIG_NET_CLS=y \
  503. CONFIG_NET_CLS_ACT=y \
  504. CONFIG_NET_CLS_FLOW \
  505. CONFIG_NET_CLS_FW \
  506. CONFIG_NET_CLS_ROUTE4 \
  507. CONFIG_NET_CLS_TCINDEX \
  508. CONFIG_NET_CLS_U32 \
  509. CONFIG_NET_ACT_MIRRED \
  510. CONFIG_NET_ACT_SKBEDIT \
  511. CONFIG_NET_EMATCH=y \
  512. CONFIG_NET_EMATCH_U32
  513. FILES:=$(SCHED_FILES)
  514. AUTOLOAD:=$(call AutoLoad,70, $(SCHED_MODULES_CORE))
  515. endef
  516. define KernelPackage/sched-core/description
  517. Core kernel scheduler support for IP traffic
  518. endef
  519. $(eval $(call KernelPackage,sched-core))
  520. define KernelPackage/sched-connmark
  521. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  522. TITLE:=Traffic shaper conntrack mark support
  523. DEPENDS:=+kmod-sched-core +kmod-ipt-core +kmod-ipt-conntrack-extra
  524. KCONFIG:=CONFIG_NET_ACT_CONNMARK
  525. FILES:=$(LINUX_DIR)/net/sched/act_connmark.ko
  526. AUTOLOAD:=$(call AutoLoad,71, act_connmark)
  527. endef
  528. $(eval $(call KernelPackage,sched-connmark))
  529. define KernelPackage/sched-esfq
  530. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  531. TITLE:=Traffic shaper ESFQ support
  532. DEPENDS:=+kmod-sched-core +kmod-ipt-core
  533. KCONFIG:= \
  534. CONFIG_NET_SCH_ESFQ \
  535. CONFIG_NET_SCH_ESFQ_NFCT=y
  536. FILES:=$(LINUX_DIR)/net/sched/sch_esfq.ko
  537. AUTOLOAD:=$(call AutoLoad,72, sch_esfq)
  538. endef
  539. $(eval $(call KernelPackage,sched-esfq))
  540. define KernelPackage/sched
  541. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  542. TITLE:=Extra traffic schedulers
  543. DEPENDS:=+kmod-sched-core
  544. KCONFIG:= \
  545. CONFIG_NET_SCH_DSMARK \
  546. CONFIG_NET_SCH_HTB \
  547. CONFIG_NET_SCH_FIFO \
  548. CONFIG_NET_SCH_GRED \
  549. CONFIG_NET_SCH_PRIO \
  550. CONFIG_NET_SCH_RED \
  551. CONFIG_NET_SCH_TBF \
  552. CONFIG_NET_SCH_SFQ \
  553. CONFIG_NET_SCH_TEQL \
  554. CONFIG_NET_CLS_BASIC \
  555. CONFIG_NET_ACT_POLICE \
  556. CONFIG_NET_ACT_IPT \
  557. CONFIG_NET_EMATCH_CMP \
  558. CONFIG_NET_EMATCH_NBYTE \
  559. CONFIG_NET_EMATCH_META \
  560. CONFIG_NET_EMATCH_TEXT
  561. FILES:=$(SCHED_FILES_EXTRA)
  562. AUTOLOAD:=$(call AutoLoad,73, $(SCHED_MODULES_EXTRA))
  563. endef
  564. define KernelPackage/sched/description
  565. Extra kernel schedulers modules for IP traffic
  566. endef
  567. $(eval $(call KernelPackage,sched))
  568. define KernelPackage/ax25
  569. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  570. TITLE:=AX25 support
  571. KCONFIG:= \
  572. CONFIG_AX25 \
  573. CONFIG_MKISS
  574. FILES:= \
  575. $(LINUX_DIR)/net/ax25/ax25.ko \
  576. $(LINUX_DIR)/drivers/net/hamradio/mkiss.ko
  577. AUTOLOAD:=$(call AutoLoad,80,ax25 mkiss)
  578. $(call AddDepends/crc16)
  579. endef
  580. define KernelPackage/ax25/description
  581. Kernel modules for AX25 support
  582. endef
  583. $(eval $(call KernelPackage,ax25))
  584. define KernelPackage/mp-alg
  585. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  586. TITLE:=ECMP caching algorithms
  587. KCONFIG:= \
  588. CONFIG_IP_ROUTE_MULTIPATH_RR \
  589. CONFIG_IP_ROUTE_MULTIPATH_RANDOM \
  590. CONFIG_IP_ROUTE_MULTIPATH_WRANDOM \
  591. CONFIG_IP_ROUTE_MULTIPATH_DRR
  592. FILES:= \
  593. $(LINUX_DIR)/net/ipv4/multipath_rr.ko \
  594. $(LINUX_DIR)/net/ipv4/multipath_random.ko \
  595. $(LINUX_DIR)/net/ipv4/multipath_wrandom.ko \
  596. $(LINUX_DIR)/net/ipv4/multipath_drr.ko
  597. AUTOLOAD:=$(call AutoLoad,35,multipath_rr multipath_random multipath_wrandom multipath_drr)
  598. endef
  599. define KernelPackage/mp-alg/description
  600. Kernel modules that provide several different algorithms for multipath
  601. route selection from the route cache. The iproute "mpath" argument allows
  602. specifying which algorithm to use for routes.
  603. quagga (at least <=0.99.6) requires a multipath patch to support this
  604. cached mp route feature.
  605. endef
  606. $(eval $(call KernelPackage,mp-alg))
  607. define KernelPackage/pktgen
  608. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  609. DEPENDS:=@!TARGET_uml
  610. TITLE:=Network packet generator
  611. KCONFIG:=CONFIG_NET_PKTGEN
  612. FILES:=$(LINUX_DIR)/net/core/pktgen.ko
  613. AUTOLOAD:=$(call AutoLoad,99,pktgen)
  614. endef
  615. define KernelPackage/pktgen/description
  616. Kernel modules for the Network Packet Generator
  617. endef
  618. $(eval $(call KernelPackage,pktgen))
  619. define KernelPackage/l2tp
  620. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  621. TITLE:=Layer Two Tunneling Protocol (L2TP)
  622. KCONFIG:=CONFIG_L2TP \
  623. CONFIG_L2TP_V3=y \
  624. CONFIG_L2TP_DEBUGFS=n
  625. FILES:=$(LINUX_DIR)/net/l2tp/l2tp_core.ko \
  626. $(LINUX_DIR)/net/l2tp/l2tp_netlink.ko
  627. AUTOLOAD:=$(call AutoLoad,32,l2tp_core l2tp_netlink)
  628. endef
  629. define KernelPackage/l2tp/description
  630. Kernel modules for L2TP V3 Support
  631. endef
  632. $(eval $(call KernelPackage,l2tp))
  633. define KernelPackage/l2tp-eth
  634. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  635. TITLE:=L2TP ethernet pseudowire support for L2TPv3
  636. DEPENDS:=+kmod-l2tp
  637. KCONFIG:=CONFIG_L2TP_ETH
  638. FILES:=$(LINUX_DIR)/net/l2tp/l2tp_eth.ko
  639. AUTOLOAD:=$(call AutoLoad,33,l2tp_eth)
  640. endef
  641. define KernelPackage/l2tp-eth/description
  642. Kernel modules for L2TP ethernet pseudowire support for L2TPv3
  643. endef
  644. $(eval $(call KernelPackage,l2tp-eth))
  645. define KernelPackage/l2tp-ip
  646. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  647. TITLE:=L2TP IP encapsulation for L2TPv3
  648. DEPENDS:=+kmod-l2tp
  649. KCONFIG:=CONFIG_L2TP_IP
  650. FILES:=$(LINUX_DIR)/net/l2tp/l2tp_ip.ko
  651. AUTOLOAD:=$(call AutoLoad,33,l2tp_ip)
  652. endef
  653. define KernelPackage/l2tp-ip/description
  654. Kernel modules for L2TP IP encapsulation for L2TPv3
  655. endef
  656. $(eval $(call KernelPackage,l2tp-ip))
  657. define KernelPackage/sctp
  658. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  659. TITLE:=SCTP protocol kernel support
  660. KCONFIG:=\
  661. CONFIG_IP_SCTP \
  662. CONFIG_SCTP_DBG_MSG=n \
  663. CONFIG_SCTP_DBG_OBJCNT=n \
  664. CONFIG_SCTP_HMAC_NONE=n \
  665. CONFIG_SCTP_HMAC_SHA1=n \
  666. CONFIG_SCTP_HMAC_MD5=y
  667. FILES:= $(LINUX_DIR)/net/sctp/sctp.ko
  668. AUTOLOAD:= $(call AutoLoad,32,sctp)
  669. DEPENDS:=+kmod-lib-crc32c +kmod-crypto-md5 +kmod-crypto-hmac
  670. endef
  671. define KernelPackage/sctp/description
  672. Kernel modules for SCTP protocol support
  673. endef
  674. $(eval $(call KernelPackage,sctp))
  675. define KernelPackage/netem
  676. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  677. TITLE:=Network emulation functionality
  678. DEPENDS:=+kmod-sched
  679. KCONFIG:=CONFIG_NET_SCH_NETEM
  680. FILES:=$(LINUX_DIR)/net/sched/sch_netem.ko
  681. AUTOLOAD:=$(call AutoLoad,99,netem)
  682. endef
  683. define KernelPackage/netem/description
  684. Kernel modules for emulating the properties of wide area networks
  685. endef
  686. $(eval $(call KernelPackage,netem))
  687. define KernelPackage/slip
  688. SUBMENU:=$(NETWORK_SUPPORT_MENU)
  689. TITLE:=SLIP modules
  690. KCONFIG:= \
  691. CONFIG_SLIP \
  692. CONFIG_SLIP_COMPRESSED=y \
  693. CONFIG_SLIP_SMART=y \
  694. CONFIG_SLIP_MODE_SLIP6=y
  695. FILES:= \
  696. $(LINUX_DIR)/drivers/net/slip/slip.ko
  697. AUTOLOAD:=$(call AutoLoad,30,slip)
  698. endef
  699. define KernelPackage/slip/description
  700. Kernel modules for SLIP support
  701. endef
  702. $(eval $(call KernelPackage,slip))