modules.mk 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. KERNEL_BASE:=$(word 1,$(subst ., ,$(ADK_KERNEL_VERSION)))
  4. KERNEL_MAJ:=$(word 2,$(subst ., ,$(ADK_KERNEL_VERSION)))
  5. KERNEL_MIN:=$(word 3,$(subst ., ,$(ADK_KERNEL_VERSION)))
  6. #
  7. # Virtualization
  8. #
  9. $(eval $(call KMOD_template,KVM,kvm,\
  10. $(MODULES_DIR)/kernel/arch/${ARCH}/kvm/kvm \
  11. ,90))
  12. $(eval $(call KMOD_template,KVM_AMD,kvm-adm,\
  13. $(MODULES_DIR)/kernel/arch/${ARCH}/kvm/kvm-amd \
  14. ,95))
  15. $(eval $(call KMOD_template,KVM_INTEL,kvm-intel,\
  16. $(MODULES_DIR)/kernel/arch/${ARCH}/kvm/kvm-intel \
  17. ,95))
  18. #
  19. # Serial ATA devices
  20. #
  21. $(eval $(call KMOD_template,SATA_AHCI,sata-ahci,\
  22. $(MODULES_DIR)/kernel/drivers/ata/libahci \
  23. $(MODULES_DIR)/kernel/drivers/ata/ahci \
  24. ,10))
  25. #
  26. # Ethernet network devices
  27. #
  28. $(eval $(call KMOD_template,NE2K_PCI,ne2k-pci,\
  29. $(MODULES_DIR)/kernel/drivers/net/ethernet/8390/8390 \
  30. $(MODULES_DIR)/kernel/drivers/net/ethernet/8390/ne2k-pci \
  31. ,20))
  32. $(eval $(call KMOD_template,8139CP,8139cp,\
  33. $(MODULES_DIR)/kernel/drivers/net/ethernet/realtek/8139cp \
  34. ,20))
  35. $(eval $(call KMOD_template,8139TOO,8139too,\
  36. $(MODULES_DIR)/kernel/drivers/net/ethernet/realtek/8139too \
  37. ,20))
  38. $(eval $(call KMOD_template,E100,e100,\
  39. $(MODULES_DIR)/kernel/drivers/net/ethernet/intel/e100 \
  40. ,20))
  41. $(eval $(call KMOD_template,E1000,e1000,\
  42. $(MODULES_DIR)/kernel/drivers/net/ethernet/intel/e1000/e1000 \
  43. ,20))
  44. $(eval $(call KMOD_template,SKY2,sky2,\
  45. $(MODULES_DIR)/kernel/drivers/net/ethernet/marvell/sky2 \
  46. ,20))
  47. $(eval $(call KMOD_template,R8169,r8169,\
  48. $(MODULES_DIR)/kernel/drivers/net/ethernet/realtek/r8169 \
  49. ,20))
  50. #
  51. # Wireless network devices
  52. #
  53. $(eval $(call KMOD_template,RFKILL,rfkill,\
  54. $(MODULES_DIR)/kernel/net/rfkill/rfkill \
  55. ,10))
  56. $(eval $(call KMOD_template,CFG80211,cfg80211,\
  57. $(MODULES_DIR)/kernel/net/wireless/cfg80211 \
  58. ,14))
  59. $(eval $(call KMOD_template,MAC80211,mac80211,\
  60. $(MODULES_DIR)/kernel/net/mac80211/mac80211 \
  61. ,15, kmod-cfg80211 kmod-crypto-arc4 kmod-crypto-ecb))
  62. $(eval $(call KMOD_template,BRCMFMAC,brcmfmac,\
  63. $(MODULES_DIR)/kernel/drivers/net/wireless/brcm80211/brcmutil/brcmutil \
  64. $(MODULES_DIR)/kernel/drivers/net/wireless/brcm80211/brcmfmac/brcmfmac \
  65. ,20))
  66. $(eval $(call KMOD_template,ATH6KL,ath6kl,\
  67. $(MODULES_DIR)/kernel/drivers/net/wireless/ath/ath6kl/ath6kl_core \
  68. $(MODULES_DIR)/kernel/drivers/net/wireless/ath/ath6kl/ath6kl_sdio \
  69. ,20))
  70. $(eval $(call KMOD_template,ATH5K,ath5k,\
  71. $(MODULES_DIR)/kernel/drivers/net/wireless/ath/ath \
  72. $(MODULES_DIR)/kernel/drivers/net/wireless/ath/ath5k/ath5k \
  73. ,20, kmod-leds-class))
  74. $(eval $(call KMOD_template,P54_COMMON,p54-common,\
  75. $(MODULES_DIR)/kernel/drivers/net/wireless/p54/p54common \
  76. ,68))
  77. $(eval $(call KMOD_template,RTL8187,rtl8187,\
  78. $(MODULES_DIR)/kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187 \
  79. ,70))
  80. $(eval $(call KMOD_template,B43,b43,\
  81. $(MODULES_DIR)/kernel/drivers/net/wireless/b43/b43 \
  82. ,70))
  83. $(eval $(call KMOD_template,HOSTAP,hostap,\
  84. $(MODULES_DIR)/kernel/net/wireless/lib80211_crypt_ccmp \
  85. $(MODULES_DIR)/kernel/net/wireless/lib80211_crypt_tkip \
  86. $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap \
  87. ,70))
  88. $(eval $(call KMOD_template,HOSTAP_CS,hostap-cs,\
  89. $(MODULES_DIR)/kernel/drivers/net/wireless/hostap/hostap_cs \
  90. ,75))
  91. $(eval $(call KMOD_template,P54_USB,p54-usb,\
  92. $(MODULES_DIR)/kernel/drivers/net/wireless/p54/p54usb \
  93. ,70))
  94. $(eval $(call KMOD_template,RT2X00,rt2x00,\
  95. $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2x00lib \
  96. ,17))
  97. $(eval $(call KMOD_template,RT2X00_LIB_PCI,rt2x00pci,\
  98. $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2x00pci \
  99. ,18))
  100. $(eval $(call KMOD_template,RT2X00_LIB_USB,rt2x00usb,\
  101. $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2x00usb \
  102. ,18))
  103. $(eval $(call KMOD_template,RT2400PCI,rt2400pci,\
  104. $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2400pci \
  105. ,20, kmod-leds-class kmod-rt2x00 rt2x00pci))
  106. $(eval $(call KMOD_template,RT2500PCI,rt2500pci,\
  107. $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2500pci \
  108. ,20, kmod-leds-class kmod-rt2x00 kmod-rt2x00pci))
  109. $(eval $(call KMOD_template,RT2800USB,rt2800usb,\
  110. $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2800lib \
  111. $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt2800usb \
  112. ,20, kmod-rt2x00 kmod-rt2x00usb))
  113. $(eval $(call KMOD_template,RT61PCI,rt61pci,\
  114. $(MODULES_DIR)/kernel/drivers/net/wireless/rt2x00/rt61pci \
  115. ,20, kmod-leds-class kmod-rt2x00 rt2x00pci))
  116. $(eval $(call KMOD_template,RTL8192CU,rtl8192cu,\
  117. $(MODULES_DIR)/kernel/drivers/net/wireless/rtlwifi/rtlwifi \
  118. $(MODULES_DIR)/kernel/drivers/net/wireless/rtlwifi/rtl_usb \
  119. $(MODULES_DIR)/kernel/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common \
  120. $(MODULES_DIR)/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu \
  121. ,20))
  122. #
  123. # Networking
  124. #
  125. $(eval $(call KMOD_template,ATM,atm,\
  126. $(MODULES_DIR)/kernel/net/atm/atm \
  127. ,50))
  128. $(eval $(call KMOD_template,ATM_BR2684,atm-br2684,\
  129. $(MODULES_DIR)/kernel/net/atm/br2684 \
  130. ,51))
  131. $(eval $(call KMOD_template,VLAN_8021Q,vlan-8021q,\
  132. $(MODULES_DIR)/kernel/net/8021q/8021q \
  133. ,5))
  134. $(eval $(call KMOD_template,BRIDGE,bridge,\
  135. $(MODULES_DIR)/kernel/net/llc/llc \
  136. $(MODULES_DIR)/kernel/net/802/stp \
  137. $(MODULES_DIR)/kernel/net/bridge/bridge \
  138. ,10))
  139. $(eval $(call KMOD_template,NET_IPGRE,net-ipgre,\
  140. $(MODULES_DIR)/kernel/net/ipv4/ip_gre \
  141. ,50))
  142. $(eval $(call KMOD_template,INET_TUNNEL,inet-tunnel,\
  143. $(MODULES_DIR)/kernel/net/ipv4/tunnel4 \
  144. ,20))
  145. $(eval $(call KMOD_template,NET_IPIP,net-ipip,\
  146. $(MODULES_DIR)/kernel/net/ipv4/ipip \
  147. ,60))
  148. $(eval $(call KMOD_template,IPV6,ipv6,\
  149. $(MODULES_DIR)/kernel/net/ipv6/ipv6 \
  150. ,09))
  151. $(eval $(call KMOD_template,IPV6_SIT,ipv6-sit,\
  152. $(MODULES_DIR)/kernel/net/ipv6/sit \
  153. ,25))
  154. ifeq ($(KERNEL_BASE),3)
  155. SLHC:=drivers/net/slip/slhc
  156. PPP:=drivers/net/ppp/ppp_generic
  157. PPP_ASYNC:=drivers/net/ppp/ppp_async
  158. MPPE:=drivers/net/ppp/ppp_mppe
  159. PPPOE:=drivers/net/ppp/pppoe
  160. PPPOX:=drivers/net/ppp/pppox
  161. else
  162. SLHC:=drivers/net/slhc
  163. PPP:=drivers/net/ppp_generic
  164. PPP_ASYNC:=drivers/net/ppp_async
  165. MPPE:=drivers/net/ppp_mppe
  166. PPPOE:=drivers/net/pppoe
  167. PPPOX:=drivers/net/pppox
  168. endif
  169. $(eval $(call KMOD_template,PPP,ppp,\
  170. $(MODULES_DIR)/kernel/$(SLHC) \
  171. $(MODULES_DIR)/kernel/$(PPP) \
  172. $(MODULES_DIR)/kernel/$(PPP_ASYNC) \
  173. ,50))
  174. $(eval $(call KMOD_template,PPP_MPPE,ppp-mppe,\
  175. $(MODULES_DIR)/kernel/$(MPPE) \
  176. ,55))
  177. $(eval $(call KMOD_template,PPPOATM,pppoatm,\
  178. $(MODULES_DIR)/kernel/net/atm/pppoatm \
  179. ,60))
  180. $(eval $(call KMOD_template,PPPOE,pppoe,\
  181. $(MODULES_DIR)/kernel/$(PPPOX) \
  182. $(MODULES_DIR)/kernel/$(PPPOE) \
  183. ,60))
  184. $(eval $(call KMOD_template,TUN,tun,\
  185. $(MODULES_DIR)/kernel/drivers/net/tun \
  186. ,20))
  187. $(eval $(call KMOD_template,BONDING,bonding,\
  188. $(MODULES_DIR)/kernel/drivers/net/bonding/bonding \
  189. ,20))
  190. #
  191. # Traffic scheduling
  192. #
  193. $(eval $(call KMOD_template,NET_SCH_CBQ,net-sch-cbq,\
  194. $(MODULES_DIR)/kernel/net/sched/sch_cbq \
  195. ,40))
  196. $(eval $(call KMOD_template,NET_SCH_HTB,net-sch-htb,\
  197. $(MODULES_DIR)/kernel/net/sched/sch_htb \
  198. ,40))
  199. $(eval $(call KMOD_template,NET_SCH_HFSC,net-sch-hfsc,\
  200. $(MODULES_DIR)/kernel/net/sched/sch_hfsc \
  201. ,40))
  202. $(eval $(call KMOD_template,NET_SCH_ATM,net-sch-atm,\
  203. $(MODULES_DIR)/kernel/net/sched/sch_atm \
  204. ,40))
  205. $(eval $(call KMOD_template,NET_SCH_PRIO,net-sch-prio,\
  206. $(MODULES_DIR)/kernel/net/sched/sch_prio \
  207. ,40))
  208. $(eval $(call KMOD_template,NET_SCH_RED,net-sch-red,\
  209. $(MODULES_DIR)/kernel/net/sched/sch_red \
  210. ,40))
  211. $(eval $(call KMOD_template,NET_SCH_SFQ,net-sch-sfq,\
  212. $(MODULES_DIR)/kernel/net/sched/sch_sfq \
  213. ,40))
  214. # busybox netapps crash, when module loaded
  215. #$(eval $(call KMOD_template,NET_SCH_TEQL,net-sched-teql,\
  216. # $(MODULES_DIR)/kernel/net/sched/sch_teql \
  217. #,40))
  218. $(eval $(call KMOD_template,NET_SCH_TBF,net-sch-tbf,\
  219. $(MODULES_DIR)/kernel/net/sched/sch_tbf \
  220. ,40))
  221. $(eval $(call KMOD_template,NET_SCH_GRED,net-sch-gred,\
  222. $(MODULES_DIR)/kernel/net/sched/sch_gred \
  223. ,40))
  224. $(eval $(call KMOD_template,NET_SCH_DSMARK,net-sch-dsmark,\
  225. $(MODULES_DIR)/kernel/net/sched/sch_dsmark \
  226. ,40))
  227. $(eval $(call KMOD_template,NET_SCH_INGRESS,net-sch-ingress,\
  228. $(MODULES_DIR)/kernel/net/sched/sch_ingress \
  229. ,40))
  230. #
  231. # classifications
  232. #
  233. $(eval $(call KMOD_template,NET_CLS_BASIC,net-cls-basic,\
  234. $(MODULES_DIR)/kernel/net/sched/cls_basic \
  235. ,40))
  236. $(eval $(call KMOD_template,NET_CLS_TCINDEX,net-cls-tcindex,\
  237. $(MODULES_DIR)/kernel/net/sched/cls_tcindex \
  238. ,40))
  239. $(eval $(call KMOD_template,NET_CLS_ROUTE4,net-cls-route4,\
  240. $(MODULES_DIR)/kernel/net/sched/cls_route \
  241. ,40))
  242. $(eval $(call KMOD_template,NET_CLS_FW,net-cls-fw,\
  243. $(MODULES_DIR)/kernel/net/sched/cls_fw \
  244. ,40))
  245. $(eval $(call KMOD_template,NET_CLS_U32,net-cls-u32,\
  246. $(MODULES_DIR)/kernel/net/sched/cls_u32 \
  247. ,40))
  248. #
  249. # actions
  250. #
  251. $(eval $(call KMOD_template,NET_ACT_POLICE,net-act-police,\
  252. $(MODULES_DIR)/kernel/net/sched/act_police \
  253. ,45))
  254. $(eval $(call KMOD_template,NET_ACT_GACT,net-act-gact,\
  255. $(MODULES_DIR)/kernel/net/sched/act_gact \
  256. ,45))
  257. $(eval $(call KMOD_template,NET_ACT_MIRRED,net-act-mirred,\
  258. $(MODULES_DIR)/kernel/net/sched/act_mirred \
  259. ,45))
  260. $(eval $(call KMOD_template,NET_ACT_IPT,net-act-ipt,\
  261. $(MODULES_DIR)/kernel/net/sched/act_ipt \
  262. ,45))
  263. $(eval $(call KMOD_template,NET_ACT_PEDIT,net-act-pedit,\
  264. $(MODULES_DIR)/kernel/net/sched/act_pedit \
  265. ,45))
  266. #
  267. # IPsec
  268. #
  269. $(eval $(call KMOD_template,NET_KEY,net-key,\
  270. $(MODULES_DIR)/kernel/net/key/af_key \
  271. ,60))
  272. $(eval $(call KMOD_template,XFRM_USER,xfrm-user,\
  273. $(MODULES_DIR)/kernel/net/xfrm/xfrm_user \
  274. ,61))
  275. $(eval $(call KMOD_template,INET_AH,inet-ah,\
  276. $(MODULES_DIR)/kernel/net/ipv4/ah4 \
  277. ,65))
  278. $(eval $(call KMOD_template,INET_ESP,inet-esp,\
  279. $(MODULES_DIR)/kernel/net/ipv4/esp4 \
  280. ,65))
  281. $(eval $(call KMOD_template,INET_IPCOMP,inet-ipcomp,\
  282. $(MODULES_DIR)/kernel/net/ipv4/xfrm4_tunnel \
  283. $(MODULES_DIR)/kernel/net/xfrm/xfrm_ipcomp \
  284. $(MODULES_DIR)/kernel/net/ipv4/ipcomp \
  285. ,70))
  286. $(eval $(call KMOD_template,INET_XFRM_MODE_TRANSPORT,inet-xfrm-mode-transport,\
  287. $(MODULES_DIR)/kernel/net/ipv4/xfrm4_mode_transport \
  288. ,75))
  289. $(eval $(call KMOD_template,INET_XFRM_MODE_TUNNEL,inet-xfrm-mode-tunnel,\
  290. $(MODULES_DIR)/kernel/net/ipv4/xfrm4_mode_tunnel \
  291. ,75))
  292. $(eval $(call KMOD_template,INET_XFRM_MODE_BEET,inet-xfrm-mode-beet,\
  293. $(MODULES_DIR)/kernel/net/ipv4/xfrm4_mode_beet \
  294. ,75))
  295. ##
  296. ## Filtering / Firewalling
  297. ##
  298. #
  299. # Ethernet Bridging firewall
  300. #
  301. $(eval $(call KMOD_template,BRIDGE_NF_EBTABLES,bridge-nf-ebtables,\
  302. $(MODULES_DIR)/kernel/net/bridge/netfilter/ebtables \
  303. ,55))
  304. $(eval $(call KMOD_template,BRIDGE_EBT_BROUTE,bridge-ebt-broute,\
  305. $(MODULES_DIR)/kernel/net/bridge/netfilter/ebtable_broute \
  306. ,60))
  307. $(eval $(call KMOD_template,BRIDGE_EBT_T_FILTER,bridge-ebt-t-filter,\
  308. $(MODULES_DIR)/kernel/net/bridge/netfilter/ebtable_filter \
  309. ,60))
  310. $(eval $(call KMOD_template,BRIDGE_EBT_T_NAT,bridge-ebt-t-nat,\
  311. $(MODULES_DIR)/kernel/net/bridge/netfilter/ebtable_nat \
  312. ,60))
  313. $(eval $(call KMOD_template,BRIDGE_EBT_802_3,bridge-ebt-802-3,\
  314. $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_802_3 \
  315. ,65))
  316. $(eval $(call KMOD_template,BRIDGE_EBT_AMONG,bridge-ebt-among,\
  317. $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_among \
  318. ,65))
  319. $(eval $(call KMOD_template,BRIDGE_EBT_ARP,bridge-ebt-arp,\
  320. $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_arpreply \
  321. ,65))
  322. $(eval $(call KMOD_template,BRIDGE_EBT_IP,bridge-ebt-ip,\
  323. $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_ip \
  324. ,65))
  325. $(eval $(call KMOD_template,BRIDGE_EBT_REDIRECT,bridge-ebt-redirect,\
  326. $(MODULES_DIR)/kernel/net/bridge/netfilter/ebt_redirect \
  327. ,65))
  328. #
  329. # Netfilter Core
  330. #
  331. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_CLASSIFY,netfiler-xt-target-classify,\
  332. $(MODULES_DIR)/kernel/net/netfilter/xt_CLASSIFY \
  333. ,50))
  334. CONNMARK:=xt_connmark
  335. MARK:=xt_mark
  336. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_CONNMARK,netfilter-xt-target-connmark,\
  337. $(MODULES_DIR)/kernel/net/netfilter/$(CONNMARK) \
  338. ,50))
  339. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_MARK,netfilter-xt-target-mark,\
  340. $(MODULES_DIR)/kernel/net/netfilter/$(MARK) \
  341. ,50))
  342. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_CHECKSUM,netfilter-xt-target-checksum,\
  343. $(MODULES_DIR)/kernel/net/netfilter/xt_CHECKSUM \
  344. ,50))
  345. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_NFQUEUE,netfilter-xt-target-nfqueue,\
  346. $(MODULES_DIR)/kernel/net/netfilter/xt_NFQUEUE \
  347. ,50))
  348. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_TCPMSS,netfilter-xt-target-tcpmss,\
  349. $(MODULES_DIR)/kernel/net/netfilter/xt_TCPMSS \
  350. ,50))
  351. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_NOTRACK,netfilter-xt-target-notrack,\
  352. $(MODULES_DIR)/kernel/net/netfilter/xt_NOTRACK \
  353. ,50))
  354. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_LOG,netfilter-xt-target-log,\
  355. $(MODULES_DIR)/kernel/net/netfilter/xt_LOG \
  356. ,60))
  357. #
  358. # IP: Netfilter
  359. #
  360. $(eval $(call KMOD_template,NF_CONNTRACK,nf-conntrack,\
  361. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack \
  362. ,45))
  363. $(eval $(call KMOD_template,NF_CONNTRACK_IPV4,nf-conntrack-ipv4,\
  364. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_defrag_ipv4 \
  365. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_conntrack_ipv4 \
  366. ,46))
  367. ifeq ($(KERNEL_BASE),3)
  368. ifeq ($(KERNEL_MAJ),4)
  369. $(eval $(call KMOD_template,FULL_NAT,full-nat,\
  370. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat \
  371. $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_nat \
  372. ,50))
  373. else
  374. $(eval $(call KMOD_template,FULL_NAT,full-nat,\
  375. $(MODULES_DIR)/kernel/net/netfilter/nf_nat \
  376. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_ipv4 \
  377. $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_nat \
  378. ,50))
  379. endif
  380. endif
  381. $(eval $(call KMOD_template,NF_CONNTRACK_FTP,nf-conntrack-ftp,\
  382. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_ftp \
  383. $(MODULES_DIR)/kernel/net/netfilter/nf_nat_ftp \
  384. ,55))
  385. $(eval $(call KMOD_template,NF_CONNTRACK_IRC,nf-conntrack-irc,\
  386. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_irc \
  387. $(MODULES_DIR)/kernel/net/netfilter/nf_nat_irc \
  388. ,55))
  389. $(eval $(call KMOD_template,NF_CONNTRACK_NETBIOS_NS,nf-conntrack-netbios-ns,\
  390. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_broadcast \
  391. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_netbios_ns \
  392. ,55))
  393. $(eval $(call KMOD_template,NF_CONNTRACK_TFTP,nf-conntrack-tftp,\
  394. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_tftp \
  395. $(MODULES_DIR)/kernel/net/netfilter/nf_nat_tftp \
  396. ,55))
  397. #$(eval $(call KMOD_template,NF_CONNTRACK_RTSP,nf-conntrack-rtsp,\
  398. # $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_rtsp \
  399. # $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_rtsp \
  400. #,55))
  401. # broken
  402. #$(eval $(call KMOD_template,NF_CONNTRACK_AMANDA,nf-conntrack-amanda,\
  403. # $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_amanda \
  404. # $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_amanda \
  405. #,55))
  406. $(eval $(call KMOD_template,NF_CONNTRACK_PPTP,nf-conntrack-pptp,\
  407. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_proto_gre \
  408. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_pptp \
  409. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_proto_gre \
  410. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_pptp \
  411. ,55))
  412. $(eval $(call KMOD_template,NF_CONNTRACK_H323,nf-conntrack-h323,\
  413. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_h323 \
  414. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_h323 \
  415. ,55))
  416. $(eval $(call KMOD_template,NF_CONNTRACK_SIP,nf-conntrack-sip,\
  417. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_sip \
  418. $(MODULES_DIR)/kernel/net/netfilter/nf_nat_sip \
  419. ,55))
  420. $(eval $(call KMOD_template,IP_NF_IPTABLES,ip-nf-iptables,\
  421. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ip_tables \
  422. ,49))
  423. $(eval $(call KMOD_template,IP_NF_MATCH_IPRANGE,ip-nf-match-iprange,\
  424. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_iprange \
  425. ,55))
  426. $(eval $(call KMOD_template,IP_NF_MATCH_TOS,ip-nf-match-tos,\
  427. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_tos \
  428. ,55))
  429. $(eval $(call KMOD_template,IP_NF_MATCH_RECENT,ip-nf-match-recent,\
  430. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_recent \
  431. ,55))
  432. $(eval $(call KMOD_template,IP_NF_MATCH_ECN,ip-nf-match-ecn,\
  433. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ecn \
  434. ,55))
  435. $(eval $(call KMOD_template,IP_NF_MATCH_AH,ip-nf-match-ah,\
  436. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ah \
  437. ,55))
  438. $(eval $(call KMOD_template,IP_NF_MATCH_TTL,ip-nf-match-ttl,\
  439. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ttl \
  440. ,55))
  441. $(eval $(call KMOD_template,IP_NF_MATCH_OWNER,ip-nf-match-owner,\
  442. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_owner \
  443. ,55))
  444. $(eval $(call KMOD_template,IP_NF_MATCH_ADDRTYPE,ip-nf-match-addrtype,\
  445. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_addrtype \
  446. ,55))
  447. $(eval $(call KMOD_template,IP_NF_MATCH_HASHLIMIT,ip-nf-match-hashlimit,\
  448. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_hashlimit \
  449. ,55))
  450. $(eval $(call KMOD_template,IP_NF_MATCH_STATE,ip-nf-match-state,\
  451. $(MODULES_DIR)/kernel/net/netfilter/xt_state \
  452. ,55))
  453. $(eval $(call KMOD_template,IP_NF_MATCH_MULTIPORT,ip-nf-match-multiport,\
  454. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_multiport \
  455. ,55))
  456. #
  457. # Filtering
  458. #
  459. $(eval $(call KMOD_template,IP_NF_FILTER,ip-nf-filter,\
  460. $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_filter \
  461. ,55))
  462. $(eval $(call KMOD_template,IP_NF_TARGET_REJECT,ip-nf-target-reject,\
  463. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_REJECT \
  464. ,60))
  465. $(eval $(call KMOD_template,IP_NF_TARGET_ULOG,ip-nf-target-ulog,\
  466. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ULOG \
  467. ,60))
  468. $(eval $(call KMOD_template,IP_NF_TARGET_TCPMSS,ip-nf-target-tcpmss,\
  469. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_TCPMSS \
  470. ,60))
  471. $(eval $(call KMOD_template,IP_NF_TARGET_MASQUERADE,ip-nf-target-masquerade,\
  472. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_MASQUERADE \
  473. ,65))
  474. $(eval $(call KMOD_template,IP_NF_TARGET_REDIRECT,ip-nf-target-redirect,\
  475. $(MODULES_DIR)/kernel/net/netfilter/xt_REDIRECT \
  476. ,65))
  477. $(eval $(call KMOD_template,IP_NF_TARGET_NETMAP,ip-nf-target-netmap,\
  478. $(MODULES_DIR)/kernel/net/netfilter/xt_NETMAP \
  479. ,65))
  480. #
  481. # Mangle
  482. #
  483. $(eval $(call KMOD_template,IP_NF_MANGLE,ip-nf-mangle,\
  484. $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_mangle \
  485. ,60))
  486. $(eval $(call KMOD_template,IP_NF_TARGET_TOS,ip-nf-target-tos,\
  487. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_TOS \
  488. ,65))
  489. $(eval $(call KMOD_template,IP_NF_TARGET_ECN,ip-nf-target-ecn,\
  490. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ECN \
  491. ,65))
  492. $(eval $(call KMOD_template,IP_NF_TARGET_TTL,ip-nf-target-ttl,\
  493. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_TTL \
  494. ,65))
  495. #
  496. # IPv6: Netfilter
  497. #
  498. $(eval $(call KMOD_template,NF_CONNTRACK_IPV6,nf-conntrack-ipv6,\
  499. $(MODULES_DIR)/kernel/net/ipv6/netfilter/nf_defrag_ipv6 \
  500. $(MODULES_DIR)/kernel/net/ipv6/netfilter/nf_conntrack_ipv6 \
  501. ,50))
  502. $(eval $(call KMOD_template,IP6_NF_IPTABLES,ip6-nf-iptables,\
  503. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6_tables \
  504. ,50))
  505. $(eval $(call KMOD_template,IP6_NF_MATCH_AH,ip6-nf-match-ah,\
  506. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_ah \
  507. ,55))
  508. $(eval $(call KMOD_template,IP6_NF_MATCH_EUI64,ip6-nf-match-eui64,\
  509. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_eui64 \
  510. ,55))
  511. $(eval $(call KMOD_template,IP6_NF_MATCH_FRAG,ip6-nf-match-frag,\
  512. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_frag \
  513. ,55))
  514. $(eval $(call KMOD_template,IP6_NF_MATCH_OPTS,ip6-nf-match-opts,\
  515. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_hbh \
  516. ,55))
  517. $(eval $(call KMOD_template,IP6_NF_MATCH_IPV6HEADER,ip6-nf-match-ipv6header,\
  518. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_ipv6header \
  519. ,55))
  520. $(eval $(call KMOD_template,IP6_NF_MATCH_MH,ip6-nf-match-mh,\
  521. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_mh \
  522. ,55))
  523. $(eval $(call KMOD_template,IP6_NF_MATCH_RT,ip6-nf-match-rt,\
  524. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_rt \
  525. ,55))
  526. #
  527. # IPv6: Filtering
  528. #
  529. $(eval $(call KMOD_template,IP6_NF_FILTER,ip6-nf-filter,\
  530. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6table_filter \
  531. ,55))
  532. $(eval $(call KMOD_template,IP6_NF_TARGET_REJECT,ip6-nf-target-reject,\
  533. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_REJECT \
  534. ,60))
  535. #
  536. # IPv6: Mangle
  537. #
  538. $(eval $(call KMOD_template,IP6_NF_MANGLE,ip6-nf-mangle,\
  539. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6table_mangle \
  540. ,60))
  541. #
  542. # IPVS
  543. #
  544. IPVSPATH=$(MODULES_DIR)/kernel/net/netfilter/ipvs
  545. $(eval $(call KMOD_template,IP_VS,ip-vs,\
  546. $(IPVSPATH)/ip_vs \
  547. ,55))
  548. $(eval $(call KMOD_template,IP_VS_RR,ip-vs-rr,\
  549. $(IPVSPATH)/ip_vs_rr \
  550. ,55))
  551. $(eval $(call KMOD_template,IP_VS_WRR,ip-vs-wrr,\
  552. $(IPVSPATH)/ip_vs_wrr \
  553. ,55))
  554. $(eval $(call KMOD_template,IP_VS_LC,ip-vs-lc,\
  555. $(IPVSPATH)/ip_vs_lc \
  556. ,55))
  557. $(eval $(call KMOD_template,IP_VS_WLC,ip-vs-wlc,\
  558. $(IPVSPATH)/ip_vs_wlc \
  559. ,55))
  560. $(eval $(call KMOD_template,IP_VS_LBLC,ip-vs-lblc,\
  561. $(IPVSPATH)/ip_vs_lblc \
  562. ,55))
  563. $(eval $(call KMOD_template,IP_VS_LBLCR,ip-vs-lblcr,\
  564. $(IPVSPATH)/ip_vs_lblcr \
  565. ,55))
  566. $(eval $(call KMOD_template,IP_VS_DH,ip-vs-dh,\
  567. $(IPVSPATH)/ip_vs_dh \
  568. ,55))
  569. $(eval $(call KMOD_template,IP_VS_SH,ip-vs-sh,\
  570. $(IPVSPATH)/ip_vs_sh \
  571. ,55))
  572. $(eval $(call KMOD_template,IP_VS_SED,ip-vs-sed,\
  573. $(IPVSPATH)/ip_vs_sed \
  574. ,55))
  575. $(eval $(call KMOD_template,IP_VS_NQ,ip-vs-nq,\
  576. $(IPVSPATH)/ip_vs_nq \
  577. ,55))
  578. $(eval $(call KMOD_template,IP_VS_FTP,ip-vs-ftp,\
  579. $(IPVSPATH)/ip_vs_ftp \
  580. ,55))
  581. #
  582. # Block devices
  583. #
  584. $(eval $(call KMOD_template,BLK_DEV_DRBD,blk-dev-drbd,\
  585. $(MODULES_DIR)/kernel/lib/lru_cache \
  586. $(MODULES_DIR)/kernel/drivers/block/drbd/drbd \
  587. ,20))
  588. $(eval $(call KMOD_template,BLK_DEV_LOOP,blk-dev-loop,\
  589. $(MODULES_DIR)/kernel/drivers/block/loop \
  590. ,20))
  591. $(eval $(call KMOD_template,BLK_DEV_NBD,blk-dev-nbd,\
  592. $(MODULES_DIR)/kernel/drivers/block/nbd \
  593. ,20))
  594. $(eval $(call KMOD_template,SCSI,scsi,\
  595. $(MODULES_DIR)/kernel/drivers/scsi/scsi_mod \
  596. ,20))
  597. $(eval $(call KMOD_template,BLK_DEV_SD,blk-dev-sd,\
  598. $(MODULES_DIR)/kernel/drivers/scsi/sd_mod \
  599. ,25))
  600. $(eval $(call KMOD_template,BLK_DEV_SR,blk-dev-sr,\
  601. $(MODULES_DIR)/kernel/drivers/cdrom/cdrom \
  602. $(MODULES_DIR)/kernel/drivers/scsi/sr_mod \
  603. ,25))
  604. #
  605. # RAID
  606. #
  607. $(eval $(call KMOD_template,BLK_DEV_MD,blk-dev-md,\
  608. $(MODULES_DIR)/kernel/drivers/md/md-mod \
  609. ,30))
  610. $(eval $(call KMOD_template,MD_RAID0,md-raid0,\
  611. $(MODULES_DIR)/kernel/drivers/md/raid0 \
  612. ,35))
  613. $(eval $(call KMOD_template,MD_RAID1,md-raid1,\
  614. $(MODULES_DIR)/kernel/drivers/md/raid1 \
  615. ,35))
  616. $(eval $(call KMOD_template,MD_RAID456,md-raid456,\
  617. $(MODULES_DIR)/kernel/lib/raid6/raid6_pq \
  618. $(MODULES_DIR)/kernel/crypto/xor \
  619. $(MODULES_DIR)/kernel/crypto/async_tx/async_tx \
  620. $(MODULES_DIR)/kernel/crypto/async_tx/async_xor \
  621. $(MODULES_DIR)/kernel/crypto/async_tx/async_memcpy \
  622. $(MODULES_DIR)/kernel/crypto/async_tx/async_raid6_recov \
  623. $(MODULES_DIR)/kernel/crypto/async_tx/async_pq \
  624. $(MODULES_DIR)/kernel/drivers/md/raid456 \
  625. ,35))
  626. #
  627. # Device Mapper
  628. #
  629. $(eval $(call KMOD_template,BLK_DEV_DM,blk-dev-dm,\
  630. $(MODULES_DIR)/kernel/drivers/md/dm-mod \
  631. ,35))
  632. $(eval $(call KMOD_template,DM_CRYPT,dm-crypt,\
  633. $(MODULES_DIR)/kernel/drivers/md/dm-crypt \
  634. ,40))
  635. $(eval $(call KMOD_template,DM_MIRROR,dm-mirror,\
  636. $(MODULES_DIR)/kernel/drivers/md/dm-log \
  637. $(MODULES_DIR)/kernel/drivers/md/dm-region-hash \
  638. $(MODULES_DIR)/kernel/drivers/md/dm-mirror \
  639. ,40))
  640. $(eval $(call KMOD_template,DM_SNAPSHOT,dm-snapshot,\
  641. $(MODULES_DIR)/kernel/drivers/md/dm-snapshot \
  642. ,40))
  643. #
  644. # Crypto
  645. #
  646. $(eval $(call KMOD_template,CRYPTO_DEV_GEODE,crypto-dev-geode,\
  647. $(MODULES_DIR)/kernel/drivers/crypto/geode-aes \
  648. ,20))
  649. #$(eval $(call KMOD_template,CRYPTO_DEV_HIFN_795X,crypto-dev-hifn-795x,\
  650. # $(MODULES_DIR)/kernel/drivers/crypto/hifn_795x \
  651. #,20, crypto-manager2))
  652. ifeq ($(KERNEL_BASE),3)
  653. ifeq ($(KERNEL_MAJ),4)
  654. $(eval $(call KMOD_template,CRYPTO_ALGAPI2,crypto-algapi2,\
  655. $(MODULES_DIR)/kernel/crypto/crypto_algapi \
  656. ,02))
  657. $(eval $(call KMOD_template,CRYPTO_PCOMP2,crypto-pcomp2,\
  658. $(MODULES_DIR)/kernel/crypto/pcompress \
  659. ,03))
  660. $(eval $(call KMOD_template,CRYPTO_AEAD2,crypto-aead2,\
  661. $(MODULES_DIR)/kernel/crypto/aead \
  662. ,03))
  663. $(eval $(call KMOD_template,CRYPTO_HASH2,crypto-hash2,\
  664. $(MODULES_DIR)/kernel/crypto/crypto_hash \
  665. ,04))
  666. $(eval $(call KMOD_template,CRYPTO_BLKCIPHER2,crypto-blkcipher2,\
  667. $(MODULES_DIR)/kernel/crypto/crypto_wq \
  668. $(MODULES_DIR)/kernel/crypto/crypto_blkcipher \
  669. ,05))
  670. $(eval $(call KMOD_template,CRYPTO_RNG2,crypto-rng2,\
  671. $(MODULES_DIR)/kernel/crypto/rng \
  672. $(MODULES_DIR)/kernel/crypto/krng \
  673. ,06))
  674. $(eval $(call KMOD_template,CRYPTO_MANAGER2,crypto-manager2,\
  675. $(MODULES_DIR)/kernel/crypto/cryptomgr \
  676. $(MODULES_DIR)/kernel/crypto/eseqiv \
  677. $(MODULES_DIR)/kernel/crypto/chainiv \
  678. ,07))
  679. endif
  680. endif
  681. $(eval $(call KMOD_template,CRYPTO_AUTHENC,crypto-authenc,\
  682. $(MODULES_DIR)/kernel/crypto/authenc \
  683. ,11))
  684. $(eval $(call KMOD_template,CRYPTO_HMAC,crypto-hmac,\
  685. $(MODULES_DIR)/kernel/crypto/hmac \
  686. ,11))
  687. $(eval $(call KMOD_template,CRYPTO_CTS,crypto-cts,\
  688. $(MODULES_DIR)/kernel/crypto/cts \
  689. ,11))
  690. $(eval $(call KMOD_template,CRYPTO_XCBC,crypto-xcbc,\
  691. $(MODULES_DIR)/kernel/crypto/xcbc \
  692. ,11))
  693. $(eval $(call KMOD_template,CRYPTO_NULL,crypto-null,\
  694. $(MODULES_DIR)/kernel/crypto/crypto_null \
  695. ,11))
  696. $(eval $(call KMOD_template,CRYPTO_MD4,crypto-md4,\
  697. $(MODULES_DIR)/kernel/crypto/md4 \
  698. ,11))
  699. $(eval $(call KMOD_template,CRYPTO_MD5,crypto-md5,\
  700. $(MODULES_DIR)/kernel/crypto/md5 \
  701. ,11))
  702. $(eval $(call KMOD_template,CRYPTO_SHA1,crypto-sha1,\
  703. $(MODULES_DIR)/kernel/crypto/sha1_generic \
  704. ,11))
  705. $(eval $(call KMOD_template,CRYPTO_SHA256,crypto-sha256,\
  706. $(MODULES_DIR)/kernel/crypto/sha256_generic \
  707. ,11))
  708. $(eval $(call KMOD_template,CRYPTO_SHA512,crypto-sha512,\
  709. $(MODULES_DIR)/kernel/crypto/sha512_generic \
  710. ,11))
  711. $(eval $(call KMOD_template,CRYPTO_WP512,crypto-wp512,\
  712. $(MODULES_DIR)/kernel/crypto/wp512 \
  713. ,11))
  714. $(eval $(call KMOD_template,CRYPTO_TGR192,crypto-tgr192,\
  715. $(MODULES_DIR)/kernel/crypto/tgr192 \
  716. ,11))
  717. $(eval $(call KMOD_template,CRYPTO_SEQIV,crypto-seqiv,\
  718. $(MODULES_DIR)/kernel/crypto/seqiv \
  719. ,5))
  720. $(eval $(call KMOD_template,CRYPTO_CTR,crypto-ctr,\
  721. $(MODULES_DIR)/kernel/crypto/ctr \
  722. ,10))
  723. $(eval $(call KMOD_template,CRYPTO_CCM,crypto-ccm,\
  724. $(MODULES_DIR)/kernel/crypto/ccm \
  725. ,10))
  726. $(eval $(call KMOD_template,CRYPTO_GCM,crypto-gcm,\
  727. $(MODULES_DIR)/kernel/crypto/gcm \
  728. ,10))
  729. $(eval $(call KMOD_template,CRYPTO_ECB,crypto-ecb,\
  730. $(MODULES_DIR)/kernel/crypto/ecb \
  731. ,10))
  732. $(eval $(call KMOD_template,CRYPTO_CBC,crypto-cbc,\
  733. $(MODULES_DIR)/kernel/crypto/cbc \
  734. ,10))
  735. $(eval $(call KMOD_template,CRYPTO_DES,crypto-des,\
  736. $(MODULES_DIR)/kernel/crypto/des_generic \
  737. ,10))
  738. $(eval $(call KMOD_template,CRYPTO_BLOWFISH,crypto-blowfish,\
  739. $(MODULES_DIR)/kernel/crypto/blowfish_common \
  740. $(MODULES_DIR)/kernel/crypto/blowfish_generic \
  741. ,11))
  742. $(eval $(call KMOD_template,CRYPTO_TWOFISH,crypto-twofish,\
  743. $(MODULES_DIR)/kernel/crypto/twofish_common \
  744. $(MODULES_DIR)/kernel/crypto/twofish_generic \
  745. ,11))
  746. $(eval $(call KMOD_template,CRYPTO_TWOFISH_586,crypto-twofish-586,\
  747. $(MODULES_DIR)/kernel/arch/x86/crypto/twofish-i586 \
  748. ,12))
  749. $(eval $(call KMOD_template,CRYPTO_SERPENT,crypto-serpent,\
  750. $(MODULES_DIR)/kernel/crypto/serpent_generic \
  751. ,11))
  752. ifeq ($(KERNEL_BASE),3)
  753. ifeq ($(KERNEL_MAJ),4)
  754. $(eval $(call KMOD_template,CRYPTO_AES,crypto-aes,\
  755. $(MODULES_DIR)/kernel/crypto/aes_generic \
  756. ,10))
  757. endif
  758. endif
  759. $(eval $(call KMOD_template,CRYPTO_AES_586,crypto-aes-586,\
  760. $(MODULES_DIR)/kernel/arch/x86/crypto/aes-i586 \
  761. ,11))
  762. $(eval $(call KMOD_template,CRYPTO_CAST5,crypto-cast5,\
  763. $(MODULES_DIR)/kernel/crypto/cast5_generic \
  764. ,11))
  765. $(eval $(call KMOD_template,CRYPTO_CAST6,crypto-cast6,\
  766. $(MODULES_DIR)/kernel/crypto/cast6_generic \
  767. ,11))
  768. $(eval $(call KMOD_template,CRYPTO_TEA,crypto-tea,\
  769. $(MODULES_DIR)/kernel/crypto/tea \
  770. ,11))
  771. $(eval $(call KMOD_template,CRYPTO_ARC4,crypto-arc4,\
  772. $(MODULES_DIR)/kernel/crypto/arc4 \
  773. ,11))
  774. $(eval $(call KMOD_template,CRYPTO_KHAZAD,crypto-khazad,\
  775. $(MODULES_DIR)/kernel/crypto/khazad \
  776. ,11))
  777. $(eval $(call KMOD_template,CRYPTO_ANUBIS,crypto-anubis,\
  778. $(MODULES_DIR)/kernel/crypto/anubis \
  779. ,11))
  780. $(eval $(call KMOD_template,CRYPTO_CAMELLIA,crypto-camellia,\
  781. $(MODULES_DIR)/kernel/crypto/camellia_generic \
  782. ,11))
  783. $(eval $(call KMOD_template,CRYPTO_FCRYPT,crypto-fcrypt,\
  784. $(MODULES_DIR)/kernel/crypto/fcrypt \
  785. ,11))
  786. ZLIB:=lib/zlib_deflate/zlib_deflate
  787. $(eval $(call KMOD_template,CRYPTO_DEFLATE,crypto-deflate,\
  788. $(foreach mod, $(ZLIB),$(MODULES_DIR)/kernel/$(mod)) \
  789. $(MODULES_DIR)/kernel/crypto/deflate \
  790. ,10))
  791. $(eval $(call KMOD_template,CRYPTO_LZO,crypto-lzo,\
  792. $(MODULES_DIR)/kernel/crypto/lzo \
  793. ,10))
  794. $(eval $(call KMOD_template,CRYPTO_MICHAEL_MIC,crypto-michael-mic,\
  795. $(MODULES_DIR)/kernel/crypto/michael_mic \
  796. ,11))
  797. #$(eval $(call KMOD_template,CRYPTO_CRC32C,crypto-crc32c,\
  798. # $(MODULES_DIR)/kernel/lib/libcrc32c \
  799. # $(MODULES_DIR)/kernel/crypto/crc32c \
  800. #,11))
  801. $(eval $(call KMOD_template,OCF_CRYPTOSOFT,ocf-cryptosoft,\
  802. ${MODULES_DIR}/kernel/crypto/ocf/cryptosoft \
  803. ,12))
  804. $(eval $(call KMOD_template,OCF_SAFE,ocf-safe,\
  805. ${MODULES_DIR}/kernel/crypto/ocf/safe/safe \
  806. ,12))
  807. $(eval $(call KMOD_template,OCF_IXP4XX,ocf-ixp4xx,\
  808. ${MODULES_DIR}/kernel/crypto/ocf/ixp4xx/ixp4xx \
  809. ,12))
  810. $(eval $(call KMOD_template,OCF_HIFN,ocf-hifn,\
  811. ${MODULES_DIR}/kernel/crypto/ocf/hifn/hifn7751 \
  812. ,12))
  813. $(eval $(call KMOD_template,OCF_TALITOS,ocf-talitos,\
  814. ${MODULES_DIR}/kernel/crypto/ocf/talitos/talitos \
  815. ,12))
  816. #
  817. # Filesystems
  818. #
  819. #$(eval $(call KMOD_template,AUFS_FS,aufs-fs,\
  820. $(MODULES_DIR)/kernel/fs/aufs/aufs \
  821. ,30))
  822. $(eval $(call KMOD_template,CIFS,cifs,\
  823. $(MODULES_DIR)/kernel/fs/cifs/cifs \
  824. ,30))
  825. $(eval $(call KMOD_template,CODA_FS,coda-fs,\
  826. $(MODULES_DIR)/kernel/fs/coda/coda \
  827. ,30))
  828. ifneq ($(ADK_KERNEL_EXT2_FS),y)
  829. $(eval $(call KMOD_template,EXT2_FS,ext2-fs,\
  830. $(MODULES_DIR)/kernel/fs/ext2/ext2 \
  831. ,30))
  832. endif
  833. $(eval $(call KMOD_template,FS_MBCACHE,fs-mbcache,\
  834. $(MODULES_DIR)/kernel/fs/mbcache \
  835. ,20))
  836. $(eval $(call KMOD_template,EXT3_FS,ext3-fs,\
  837. $(MODULES_DIR)/kernel/fs/jbd/jbd \
  838. $(MODULES_DIR)/kernel/fs/ext3/ext3 \
  839. ,30))
  840. $(eval $(call KMOD_template,EXT4_FS,ext4-fs,\
  841. $(MODULES_DIR)/kernel/fs/jbd2/jbd2 \
  842. $(MODULES_DIR)/kernel/fs/ext4/ext4 \
  843. ,30))
  844. $(eval $(call KMOD_template,FUSE_FS,fuse-fs,\
  845. $(MODULES_DIR)/kernel/fs/fuse/fuse \
  846. ,30))
  847. $(eval $(call KMOD_template,HFSPLUS_FS,hfsplus-fs,\
  848. $(MODULES_DIR)/kernel/fs/hfsplus/hfsplus \
  849. ,30))
  850. $(eval $(call KMOD_template,SUNRPC,sunrpc,\
  851. $(MODULES_DIR)/kernel/net/sunrpc/sunrpc \
  852. ,24))
  853. $(eval $(call KMOD_template,SUNRPC_GSS,sunrpc-gss,\
  854. $(MODULES_DIR)/kernel/lib/oid_registry \
  855. $(MODULES_DIR)/kernel/net/sunrpc/auth_gss/auth_rpcgss \
  856. ,25))
  857. $(eval $(call KMOD_template,RPCSEC_GSS_KRB5,rpcsec-gss-krb5,\
  858. $(MODULES_DIR)/kernel/net/sunrpc/auth_gss/rpcsec_gss_krb5 \
  859. ,26))
  860. $(eval $(call KMOD_template,LOCKD,lockd,\
  861. $(MODULES_DIR)/kernel/fs/lockd/lockd \
  862. ,27))
  863. ifneq ($(ADK_KERNEL_NFS_FS),y)
  864. $(eval $(call KMOD_template,NFS_FS,nfs-fs,\
  865. $(MODULES_DIR)/kernel/fs/nfs/nfs \
  866. ,30, kmod-sunrpc))
  867. endif
  868. #$(eval $(call KMOD_template,EXPORTFS,exportfs,\
  869. # $(MODULES_DIR)/kernel/fs/exportfs/exportfs \
  870. #,20))
  871. $(eval $(call KMOD_template,NFSD,nfsd,\
  872. $(MODULES_DIR)/kernel/fs/nfsd/nfsd \
  873. ,30, kmod-sunrpc kmod-lockd))
  874. $(eval $(call KMOD_template,NTFS_FS,ntfs-fs,\
  875. $(MODULES_DIR)/kernel/fs/ntfs/ntfs \
  876. ,30))
  877. $(eval $(call KMOD_template,VFAT_FS,vfat-fs,\
  878. $(MODULES_DIR)/kernel/fs/fat/fat \
  879. $(MODULES_DIR)/kernel/fs/fat/vfat \
  880. ,30))
  881. $(eval $(call KMOD_template,XFS_FS,xfs-fs,\
  882. $(MODULES_DIR)/kernel/fs/xfs/xfs \
  883. ,30))
  884. $(eval $(call KMOD_template,YAFFS_FS,yaffs-fs,\
  885. $(MODULES_DIR)/kernel/fs/yaffs2/yaffs \
  886. ,30))
  887. $(eval $(call KMOD_template,REISERFS_FS,reiserfs-fs,\
  888. $(MODULES_DIR)/kernel/fs/reiserfs/reiserfs \
  889. ,30))
  890. $(eval $(call KMOD_template,ISO9660_FS,iso9660-fs,\
  891. $(MODULES_DIR)/kernel/fs/isofs/isofs \
  892. ,30))
  893. $(eval $(call KMOD_template,UDF_FS,udf-fs,\
  894. $(MODULES_DIR)/kernel/fs/udf/udf \
  895. ,30))
  896. #
  897. # Multimedia
  898. #
  899. $(eval $(call KMOD_template,REGMAP_MMIO,regmap-mmio,\
  900. $(MODULES_DIR)/kernel/drivers/base/regmap/regmap-mmio \
  901. ,20))
  902. $(eval $(call KMOD_template,DMA_BCM2708,dma-bcm2708,\
  903. $(MODULES_DIR)/kernel/drivers/dma/virt-dma \
  904. $(MODULES_DIR)/kernel/drivers/dma/bcm2708-dmaengine \
  905. ,25))
  906. $(eval $(call KMOD_template,SOUND,sound,\
  907. $(MODULES_DIR)/kernel/sound/soundcore \
  908. ,30))
  909. $(eval $(call KMOD_template,SND,snd,\
  910. $(MODULES_DIR)/kernel/sound/core/snd \
  911. $(MODULES_DIR)/kernel/sound/core/snd-timer \
  912. $(MODULES_DIR)/kernel/sound/core/snd-pcm \
  913. ,40))
  914. $(eval $(call KMOD_template,SND_PCM_DMAENGINE,snd-pcm-dmaengine,\
  915. $(MODULES_DIR)/kernel/sound/core/snd-pcm-dmaengine \
  916. ,41))
  917. $(eval $(call KMOD_template,SND_COMPRESS,snd-compress,\
  918. $(MODULES_DIR)/kernel/sound/core/snd-compress \
  919. ,41))
  920. $(eval $(call KMOD_template,SND_RAWMIDI,snd-rawmidi,\
  921. $(MODULES_DIR)/kernel/sound/core/snd-hwdep \
  922. $(MODULES_DIR)/kernel/sound/core/snd-rawmidi \
  923. ,42))
  924. $(eval $(call KMOD_template,SND_AC97_CODEC,snd-ac97-codec,\
  925. $(MODULES_DIR)/kernel/sound/ac97_bus \
  926. $(MODULES_DIR)/kernel/sound/pci/ac97/snd-ac97-codec \
  927. ,50))
  928. $(eval $(call KMOD_template,SND_VIA82XX,snd-via82xx,\
  929. $(MODULES_DIR)/kernel/sound/drivers/mpu401/snd-mpu401-uart \
  930. $(MODULES_DIR)/kernel/sound/pci/snd-via82xx \
  931. ,55))
  932. $(eval $(call KMOD_template,SND_INTEL8X0,snd-intel8x0,\
  933. $(MODULES_DIR)/kernel/sound/pci/snd-intel8x0 \
  934. ,55))
  935. $(eval $(call KMOD_template,SND_ENS1370,snd-ens1370,\
  936. $(MODULES_DIR)/kernel/sound/pci/snd-ens1370 \
  937. ,55))
  938. $(eval $(call KMOD_template,SND_CS5535AUDIO,snd-cs5535audio,\
  939. $(MODULES_DIR)/kernel/sound/pci/cs5535audio/snd-cs5535audio \
  940. ,55))
  941. $(eval $(call KMOD_template,SND_SOC,snd-soc,\
  942. $(MODULES_DIR)/kernel/sound/soc/snd-soc-core \
  943. ,54))
  944. $(eval $(call KMOD_template,SND_PXA2XX_SOC_SPITZ,snd-pxa2xx-soc-spitz,\
  945. $(MODULES_DIR)/kernel/sound/arm/snd-pxa2xx-lib \
  946. $(MODULES_DIR)/kernel/sound/arm/snd-pxa2xx-pcm \
  947. $(MODULES_DIR)/kernel/sound/arm/snd-pxa2xx-ac97 \
  948. $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-wm8750 \
  949. $(MODULES_DIR)/kernel/sound/soc/pxa/snd-soc-pxa2xx-i2s \
  950. $(MODULES_DIR)/kernel/sound/soc/pxa/snd-soc-pxa2xx \
  951. $(MODULES_DIR)/kernel/sound/soc/pxa/snd-soc-spitz \
  952. ,55, kmod-snd-soc))
  953. $(eval $(call KMOD_template,SND_IMX_SOC,snd-imx-soc,\
  954. $(MODULES_DIR)/kernel/sound/soc/fsl/imx-pcm-dma \
  955. $(MODULES_DIR)/kernel/sound/soc/fsl/snd-soc-fsl-spdif \
  956. $(MODULES_DIR)/kernel/sound/soc/fsl/snd-soc-imx-spdif \
  957. ,55, kmod-snd-soc))
  958. $(eval $(call KMOD_template,SND_BCM2835,snd-bcm2835,\
  959. $(MODULES_DIR)/kernel/sound/arm/snd-bcm2835 \
  960. ,55))
  961. $(eval $(call KMOD_template,SND_BCM2708_SOC_I2S,snd-bcm2709-soc-i2s,\
  962. $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-pcm5102a \
  963. $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-bcm2708-i2s \
  964. ,55, kmod-snd-soc))
  965. $(eval $(call KMOD_template,SND_BCM2708_SOC_HIFIBERRY_DAC,snd-bcm2709-soc-hifiberry-dac,\
  966. $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-hifiberry-dac \
  967. ,56, kmod-snd-bcm2709-soc-i2s kmod-regmap-mmio))
  968. $(eval $(call KMOD_template,SND_BCM2708_SOC_HIFIBERRY_DIGI,snd-bcm2709-soc-hifiberry-digi,\
  969. $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-hifiberry-digi \
  970. ,56, kmod-snd-bcm2709-soc-i2s kmod-regmap-mmio))
  971. #ifeq ($(ADK_LINUX_64),y)
  972. #V4L_COMPAT:=drivers/media/video/v4l2-compat-ioctl32
  973. #endif
  974. #$(eval $(call KMOD_template,VIDEO_DEV,video-dev,\
  975. # $(foreach mod, $(V4L_COMPAT),$(MODULES_DIR)/kernel/$(mod)) \
  976. # $(MODULES_DIR)/kernel/drivers/media/video/videodev \
  977. #,65))
  978. $(eval $(call KMOD_template,USB_VIDEO_CLASS,usb-video-class,\
  979. $(MODULES_DIR)/kernel/drivers/media/usb/uvc/uvcvideo \
  980. ,70))
  981. $(eval $(call KMOD_template,USB_GSPCA,usb-gspca,\
  982. $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_main \
  983. ,75))
  984. $(eval $(call KMOD_template,USB_GSPCA_PAC207,usb-gspca-pac207,\
  985. $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_pac207 \
  986. ,80))
  987. $(eval $(call KMOD_template,USB_GSPCA_PAC7311,usb-gspca-pac7311,\
  988. $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_pac7311 \
  989. ,80))
  990. $(eval $(call KMOD_template,USB_GSPCA_SPCA561,usb-gspca-spca561,\
  991. $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_spca561 \
  992. ,80))
  993. $(eval $(call KMOD_template,USB_PWC,usb-pwc,\
  994. $(MODULES_DIR)/kernel/drivers/media/usb/pwc/pwc \
  995. ,80))
  996. #
  997. # PCMCIA/CardBus
  998. #
  999. $(eval $(call KMOD_template,PCCARD,pccard,\
  1000. $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_core \
  1001. ,40))
  1002. $(eval $(call KMOD_template,YENTA,yenta,\
  1003. $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_rsrc \
  1004. $(MODULES_DIR)/kernel/drivers/pcmcia/yenta_socket \
  1005. ,50))
  1006. $(eval $(call KMOD_template,PCMCIA,pcmcia,\
  1007. $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia \
  1008. ,60))
  1009. $(eval $(call KMOD_template,SERIAL_8250_CS,serial-8250-cs,\
  1010. $(MODULES_DIR)/kernel/drivers/tty/serial/8250/serial_cs \
  1011. ,70))
  1012. #
  1013. # Input
  1014. #
  1015. $(eval $(call KMOD_template,KEYBOARD_ATKBD,keyboard-atkbd,\
  1016. $(MODULES_DIR)/kernel/drivers/input/keyboard/atkbd \
  1017. ,45))
  1018. $(eval $(call KMOD_template,INPUT_MOUSEDEV,input-mousedev,\
  1019. $(MODULES_DIR)/kernel/drivers/input/mousedev \
  1020. ,45))
  1021. $(eval $(call KMOD_template,INPUT_EVDEV,input-evdev,\
  1022. $(MODULES_DIR)/kernel/drivers/input/evdev \
  1023. ,45))
  1024. #
  1025. # USB
  1026. #
  1027. USBMODULES:=
  1028. USBMODULES+=drivers/usb/usb-common
  1029. USBMODULES+=drivers/usb/core/usbcore
  1030. $(eval $(call KMOD_template,USB,usb,\
  1031. $(foreach mod, $(USBMODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1032. ,50))
  1033. $(eval $(call KMOD_template,USB_EHCI_HCD,usb-ehci-hcd,\
  1034. $(MODULES_DIR)/kernel/drivers/usb/host/ehci-hcd \
  1035. ,55))
  1036. $(eval $(call KMOD_template,USB_CHIPIDEA,ci-hdrc,\
  1037. $(MODULES_DIR)/kernel/drivers/usb/chipidea/ci_hdrc \
  1038. $(MODULES_DIR)/kernel/drivers/usb/chipidea/usbmisc_imx \
  1039. $(MODULES_DIR)/kernel/drivers/usb/chipidea/ci_hdrc_imx \
  1040. ,56))
  1041. $(eval $(call KMOD_template,USB_OHCI_HCD,usb-ohci-hcd,\
  1042. $(MODULES_DIR)/kernel/drivers/usb/host/ohci-hcd \
  1043. ,60))
  1044. $(eval $(call KMOD_template,USB_UHCI_HCD,usb-uhci-hcd,\
  1045. $(MODULES_DIR)/kernel/drivers/usb/host/uhci-hcd \
  1046. ,60))
  1047. $(eval $(call KMOD_template,USB_ACM,usb-acm,\
  1048. $(MODULES_DIR)/kernel/drivers/usb/class/cdc-acm \
  1049. ,70))
  1050. $(eval $(call KMOD_template,USB_HID,usb-hid,\
  1051. $(MODULES_DIR)/kernel/drivers/hid/usbhid/usbhid \
  1052. ,70))
  1053. $(eval $(call KMOD_template,USB_PRINTER,usb-printer,\
  1054. $(MODULES_DIR)/kernel/drivers/usb/class/usblp \
  1055. ,70))
  1056. $(eval $(call KMOD_template,USB_SERIAL,usb-serial,\
  1057. $(MODULES_DIR)/kernel/drivers/usb/serial/usbserial \
  1058. ,70))
  1059. $(eval $(call KMOD_template,USB_SERIAL_BELKIN,usb-serial-belkin,\
  1060. $(MODULES_DIR)/kernel/drivers/usb/serial/belkin_sa \
  1061. ,71))
  1062. $(eval $(call KMOD_template,USB_SERIAL_FTDI_SIO,usb-serial-ftdi-sio,\
  1063. $(MODULES_DIR)/kernel/drivers/usb/serial/ftdi_sio \
  1064. ,71))
  1065. $(eval $(call KMOD_template,USB_SERIAL_MCT_U232,usb-serial-mct-u232,\
  1066. $(MODULES_DIR)/kernel/drivers/usb/serial/mct_u232 \
  1067. ,71))
  1068. $(eval $(call KMOD_template,USB_SERIAL_PL2303,usb-serial-pl2303,\
  1069. $(MODULES_DIR)/kernel/drivers/usb/serial/pl2303 \
  1070. ,71))
  1071. $(eval $(call KMOD_template,USB_SERIAL_VISOR,usb-serial-visor,\
  1072. $(MODULES_DIR)/kernel/drivers/usb/serial/visor \
  1073. ,71))
  1074. $(eval $(call KMOD_template,USB_STORAGE,usb-storage,\
  1075. $(MODULES_DIR)/kernel/drivers/usb/storage/usb-storage \
  1076. ,75))
  1077. $(eval $(call KMOD_template,USB_PEGASUS,usb-pegasus,\
  1078. $(MODULES_DIR)/kernel/drivers/net/usb/pegasus \
  1079. ,75))
  1080. $(eval $(call KMOD_template,USB_HSO,usb-hso,\
  1081. $(MODULES_DIR)/kernel/drivers/net/usb/hso \
  1082. ,75))
  1083. SNDUSB:=snd-usbmidi-lib
  1084. $(eval $(call KMOD_template,SND_USB_AUDIO,snd-usb-audio,\
  1085. $(MODULES_DIR)/kernel/sound/usb/$(SNDUSB) \
  1086. $(MODULES_DIR)/kernel/sound/usb/snd-usb-audio \
  1087. ,75))
  1088. #
  1089. # Bluetooth
  1090. #
  1091. $(eval $(call KMOD_template,BT,bt,\
  1092. $(MODULES_DIR)/kernel/net/bluetooth/bluetooth \
  1093. ,70))
  1094. $(eval $(call KMOD_template,BT_HCIBCM203X,bt-hcibcm203x,\
  1095. $(MODULES_DIR)/kernel/drivers/bluetooth/bcm203x \
  1096. ,75))
  1097. $(eval $(call KMOD_template,BT_HCIBTUSB,bt-hcibtusb,\
  1098. $(MODULES_DIR)/kernel/drivers/bluetooth/btusb \
  1099. ,76))
  1100. $(eval $(call KMOD_template,BT_HCIBTSDIO,bt-hcibtsdio,\
  1101. $(MODULES_DIR)/kernel/drivers/bluetooth/btsdio \
  1102. ,76))
  1103. $(eval $(call KMOD_template,BT_MRVL,bt-mrvl,\
  1104. $(MODULES_DIR)/kernel/drivers/bluetooth/btmrvl \
  1105. ,77))
  1106. $(eval $(call KMOD_template,BT_MRVL_SDIO,bt-mrvl-sdio,\
  1107. $(MODULES_DIR)/kernel/drivers/bluetooth/btmrvl_sdio \
  1108. ,78))
  1109. $(eval $(call KMOD_template,BT_HCIUART,bt-hciuart,\
  1110. $(MODULES_DIR)/kernel/drivers/bluetooth/hci_uart \
  1111. ,75))
  1112. #$(eval $(call KMOD_template,BT_L2CAP,bt-l2cap,\
  1113. $(MODULES_DIR)/kernel/net/bluetooth/l2cap \
  1114. ,80))
  1115. #$(eval $(call KMOD_template,BT_SCO,bt-sco,\
  1116. $(MODULES_DIR)/kernel/net/bluetooth/sco \
  1117. ,85))
  1118. $(eval $(call KMOD_template,BT_BNEP,bt-bnep,\
  1119. $(MODULES_DIR)/kernel/net/bluetooth/bnep/bnep \
  1120. ,85))
  1121. $(eval $(call KMOD_template,BT_RFCOMM,bt-rfcomm,\
  1122. $(MODULES_DIR)/kernel/net/bluetooth/rfcomm/rfcomm \
  1123. ,85))
  1124. #
  1125. # Misc devices
  1126. #
  1127. $(eval $(call KMOD_template,SOFT_WATCHDOG,soft-watchdog,\
  1128. $(MODULES_DIR)/kernel/drivers/watchdog/softdog \
  1129. ,95))
  1130. $(eval $(call KMOD_template,FW_LOADER,fw-loader,\
  1131. $(MODULES_DIR)/kernel/drivers/base/firmware_class \
  1132. ,01))
  1133. $(eval $(call KMOD_template,EEPROM_93CX6,eeprom-93cx6,\
  1134. $(MODULES_DIR)/kernel/drivers/misc/eeprom/eeprom_93cx6 \
  1135. ,05))
  1136. $(eval $(call KMOD_template,LEDS_CLASS,leds-class,\
  1137. $(MODULES_DIR)/kernel/drivers/leds/led-class \
  1138. ,05))
  1139. $(eval $(call KMOD_template,LEDS_ALIX2,leds-alix2,\
  1140. $(MODULES_DIR)/kernel/drivers/leds/leds-alix2 \
  1141. ,10))
  1142. $(eval $(call KMOD_template,LEDS_TRIGGER_TIMER,leds-trigger-timer,\
  1143. $(MODULES_DIR)/kernel/drivers/leds/trigger/ledtrig-timer \
  1144. ,20))
  1145. $(eval $(call KMOD_template,LEDS_TRIGGER_HEARTBEAT,leds-trigger-heartbeat,\
  1146. $(MODULES_DIR)/kernel/drivers/leds/trigger/ledtrig-heartbeat \
  1147. ,20))
  1148. $(eval $(call KMOD_template,LEDS_TRIGGER_DEFAULT_ON,leds-trigger-default-on,\
  1149. $(MODULES_DIR)/kernel/drivers/leds/trigger/ledtrig-default-on \
  1150. ,20))
  1151. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_LED,netfilter-xt-target-led,\
  1152. $(MODULES_DIR)/kernel/net/netfilter/xt_LED \
  1153. ,90))
  1154. #
  1155. # NLS
  1156. #
  1157. $(eval $(call KMOD_template,NLS,nls,\
  1158. $(MODULES_DIR)/kernel/fs/nls/nls_base \
  1159. ,10))
  1160. $(eval $(call KMOD_template,NLS_CODEPAGE_437,nls-codepage-437,\
  1161. $(MODULES_DIR)/kernel/fs/nls/nls_cp437 \
  1162. ,20))
  1163. $(eval $(call KMOD_template,NLS_CODEPAGE_737,nls-codepage-737,\
  1164. $(MODULES_DIR)/kernel/fs/nls/nls_cp737 \
  1165. ,20))
  1166. $(eval $(call KMOD_template,NLS_CODEPAGE_775,nls-codepage-775,\
  1167. $(MODULES_DIR)/kernel/fs/nls/nls_cp775 \
  1168. ,20))
  1169. $(eval $(call KMOD_template,NLS_CODEPAGE_850,nls-codepage-850,\
  1170. $(MODULES_DIR)/kernel/fs/nls/nls_cp850 \
  1171. ,20))
  1172. $(eval $(call KMOD_template,NLS_CODEPAGE_852,nls-codepage-852,\
  1173. $(MODULES_DIR)/kernel/fs/nls/nls_cp852 \
  1174. ,20))
  1175. $(eval $(call KMOD_template,NLS_CODEPAGE_857,nls-codepage-857,\
  1176. $(MODULES_DIR)/kernel/fs/nls/nls_cp857 \
  1177. ,20))
  1178. $(eval $(call KMOD_template,NLS_CODEPAGE_860,nls-codepage-860,\
  1179. $(MODULES_DIR)/kernel/fs/nls/nls_cp860 \
  1180. ,20))
  1181. $(eval $(call KMOD_template,NLS_CODEPAGE_861,nls-codepage-861,\
  1182. $(MODULES_DIR)/kernel/fs/nls/nls_cp861 \
  1183. ,20))
  1184. $(eval $(call KMOD_template,NLS_CODEPAGE_862,nls-codepage-862,\
  1185. $(MODULES_DIR)/kernel/fs/nls/nls_cp862 \
  1186. ,20))
  1187. $(eval $(call KMOD_template,NLS_CODEPAGE_863,nls-codepage-863,\
  1188. $(MODULES_DIR)/kernel/fs/nls/nls_cp863 \
  1189. ,20))
  1190. $(eval $(call KMOD_template,NLS_CODEPAGE_864,nls-codepage-864,\
  1191. $(MODULES_DIR)/kernel/fs/nls/nls_cp864 \
  1192. ,20))
  1193. $(eval $(call KMOD_template,NLS_CODEPAGE_865,nls-codepage-865,\
  1194. $(MODULES_DIR)/kernel/fs/nls/nls_cp865 \
  1195. ,20))
  1196. $(eval $(call KMOD_template,NLS_CODEPAGE_866,nls-codepage-866,\
  1197. $(MODULES_DIR)/kernel/fs/nls/nls_cp866 \
  1198. ,20))
  1199. $(eval $(call KMOD_template,NLS_CODEPAGE_869,nls-codepage-869,\
  1200. $(MODULES_DIR)/kernel/fs/nls/nls_cp869 \
  1201. ,20))
  1202. NLS_CODEPAGE_874_MODULES := fs/nls/nls_cp874
  1203. $(eval $(call KMOD_template,NLS_CODEPAGE_874,nls-codepage-874,\
  1204. $(foreach mod,$(NLS_CODEPAGE_874_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1205. ,20))
  1206. NLS_CODEPAGE_932_MODULES := fs/nls/nls_cp932
  1207. NLS_CODEPAGE_932_MODULES += fs/nls/nls_euc-jp
  1208. $(eval $(call KMOD_template,NLS_CODEPAGE_932,nls-codepage-932,\
  1209. $(foreach mod,$(NLS_CODEPAGE_932_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1210. ,20))
  1211. NLS_CODEPAGE_936_MODULES := fs/nls/nls_cp936
  1212. $(eval $(call KMOD_template,NLS_CODEPAGE_936,nls-codepage-936,\
  1213. $(foreach mod,$(NLS_CODEPAGE_936_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1214. ,20))
  1215. NLS_CODEPAGE_949_MODULES := fs/nls/nls_cp949
  1216. $(eval $(call KMOD_template,NLS_CODEPAGE_949,nls-codepage-949,\
  1217. $(foreach mod,$(NLS_CODEPAGE_949_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1218. ,20))
  1219. NLS_CODEPAGE_950_MODULES := fs/nls/nls_cp950
  1220. $(eval $(call KMOD_template,NLS_CODEPAGE_950,nls-codepage-950,\
  1221. $(foreach mod,$(NLS_CODEPAGE_950_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1222. ,20))
  1223. $(eval $(call KMOD_template,NLS_CODEPAGE_1250,nls-codepage-1250,\
  1224. $(MODULES_DIR)/kernel/fs/nls/nls_cp1250 \
  1225. ,20))
  1226. $(eval $(call KMOD_template,NLS_CODEPAGE_1251,nls-codepage-1251,\
  1227. $(MODULES_DIR)/kernel/fs/nls/nls_cp1251 \
  1228. ,20))
  1229. $(eval $(call KMOD_template,NLS_ASCII,nls-ascii, \
  1230. $(MODULES_DIR)/kernel/fs/nls/nls_ascii \
  1231. ,20))
  1232. $(eval $(call KMOD_template,NLS_ISO8859_1,nls-iso8859-1, \
  1233. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-1 \
  1234. ,20))
  1235. $(eval $(call KMOD_template,NLS_ISO8859_2,nls-iso8859-2, \
  1236. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-2 \
  1237. ,20))
  1238. $(eval $(call KMOD_template,NLS_ISO8859_3,nls-iso8859-3, \
  1239. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-3 \
  1240. ,20))
  1241. $(eval $(call KMOD_template,NLS_ISO8859_4,nls-iso8859-4, \
  1242. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-4 \
  1243. ,20))
  1244. $(eval $(call KMOD_template,NLS_ISO8859_5,nls-iso8859-5, \
  1245. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-5 \
  1246. ,20))
  1247. $(eval $(call KMOD_template,NLS_ISO8859_6,nls-iso8859-6, \
  1248. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-6 \
  1249. ,20))
  1250. $(eval $(call KMOD_template,NLS_ISO8859_7,nls-iso8859-7, \
  1251. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-7 \
  1252. ,20))
  1253. NLS_ISO8859_8_MODULES := fs/nls/nls_cp1255
  1254. $(eval $(call KMOD_template,NLS_ISO8859_8,nls-iso8859-8, \
  1255. $(foreach mod,$(NLS_ISO8859_8_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1256. ,20))
  1257. $(eval $(call KMOD_template,NLS_ISO8859_9,nls-iso8859-9, \
  1258. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-9 \
  1259. ,20))
  1260. $(eval $(call KMOD_template,NLS_ISO8859_13,nls-iso8859-13, \
  1261. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-13 \
  1262. ,20))
  1263. $(eval $(call KMOD_template,NLS_ISO8859_14,nls-iso8859-14, \
  1264. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-14 \
  1265. ,20))
  1266. $(eval $(call KMOD_template,NLS_ISO8859_15,nls-iso8859-15, \
  1267. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-15 \
  1268. ,20))
  1269. $(eval $(call KMOD_template,NLS_KOI8_R,nls-koi8-r, \
  1270. $(MODULES_DIR)/kernel/fs/nls/nls_koi8-r \
  1271. ,20))
  1272. $(eval $(call KMOD_template,NLS_KOI8_U,nls-koi8-u, \
  1273. $(MODULES_DIR)/kernel/fs/nls/nls_koi8-u \
  1274. $(MODULES_DIR)/kernel/fs/nls/nls_koi8-ru \
  1275. ,20))
  1276. $(eval $(call KMOD_template,NLS_UTF8,nls-utf8, \
  1277. $(MODULES_DIR)/kernel/fs/nls/nls_utf8 \
  1278. ,20))
  1279. #
  1280. # ISDN
  1281. #
  1282. ISDN_MODULES=drivers/isdn/i4l/isdn
  1283. $(eval $(call KMOD_template,ISDN,isdn, \
  1284. $(foreach mod,$(ISDN_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1285. ,60))
  1286. $(eval $(call KMOD_template,ISDN_CAPI,isdn-capi, \
  1287. $(MODULES_DIR)/kernel/drivers/isdn/capi/kernelcapi \
  1288. $(MODULES_DIR)/kernel/drivers/isdn/capi/capi \
  1289. ,60))
  1290. $(eval $(call KMOD_template,SLHC,slhc, \
  1291. $(MODULES_DIR)/kernel/$(SLHC) \
  1292. ,65))
  1293. $(eval $(call KMOD_template,HISAX,hisax, \
  1294. $(MODULES_DIR)/kernel/drivers/isdn/hisax/hisax \
  1295. ,70))
  1296. MISDN_MODULES=drivers/isdn/hardware/mISDN/mISDN_core
  1297. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_l1
  1298. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_l2
  1299. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_dsp
  1300. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_dtmf
  1301. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_isac
  1302. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_x25dte
  1303. MISDN_MODULES+=drivers/isdn/hardware/mISDN/l3udss1
  1304. $(eval $(call KMOD_template,MISDN_DRV,misdn-drv, \
  1305. $(foreach mod, $(MISDN_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1306. ,75))
  1307. $(eval $(call KMOD_template,MISDN_AVM_FRITZ,misdn-avm-fritz, \
  1308. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/avmfritz \
  1309. ,80))
  1310. $(eval $(call KMOD_template,MISDN_HFCPCI,misdn-hfcpci, \
  1311. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/hfcpci \
  1312. ,80))
  1313. $(eval $(call KMOD_template,MISDN_HFCMULTI,misdn-hfcmulti, \
  1314. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/hfcmulti \
  1315. ,80))
  1316. $(eval $(call KMOD_template,MISDN_HFCMINI,misdn-hfcmini, \
  1317. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/hfcsmini \
  1318. ,80))
  1319. $(eval $(call KMOD_template,MISDN_XHFC,misdn-xhfc, \
  1320. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/xhfc \
  1321. ,80))
  1322. $(eval $(call KMOD_template,MISDN_SPEEDFAX,misdn-speedfax, \
  1323. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/sedlfax \
  1324. ,80))
  1325. #
  1326. # Library modules
  1327. #
  1328. $(eval $(call KMOD_template,CRC_CCITT,crc-ccitt, \
  1329. $(MODULES_DIR)/kernel/lib/crc-ccitt \
  1330. ,01))
  1331. $(eval $(call KMOD_template,CRC_ITU_T,crc-itu-t, \
  1332. $(MODULES_DIR)/kernel/lib/crc-itu-t \
  1333. ,01))
  1334. $(eval $(call KMOD_template,CRC16,crc16, \
  1335. $(MODULES_DIR)/kernel/lib/crc16 \
  1336. ,01))
  1337. $(eval $(call KMOD_template,CRC32,crc32, \
  1338. $(MODULES_DIR)/kernel/lib/crc32 \
  1339. ,01))
  1340. #$(eval $(call KMOD_template,LIBCRC32C,libcrc32c, \
  1341. # $(MODULES_DIR)/kernel/lib/libcrc32c \
  1342. #,10))
  1343. #
  1344. # parallel port support
  1345. #
  1346. $(eval $(call KMOD_template,LP,lp,\
  1347. $(MODULES_DIR)/kernel/drivers/char/lp \
  1348. ,60))
  1349. $(eval $(call KMOD_template,PPDEV,ppdev,\
  1350. $(MODULES_DIR)/kernel/drivers/char/ppdev \
  1351. ,60))
  1352. $(eval $(call KMOD_template,PARPORT,parport,\
  1353. $(MODULES_DIR)/kernel/drivers/parport/parport \
  1354. ,50))
  1355. $(eval $(call KMOD_template,PARPORT_PC,parport-pc,\
  1356. $(MODULES_DIR)/kernel/drivers/parport/parport_pc \
  1357. ,55))
  1358. $(eval $(call KMOD_template,PLIP,plip,\
  1359. $(MODULES_DIR)/kernel/drivers/net/plip/plip \
  1360. ,60))
  1361. #
  1362. # Profiling
  1363. #
  1364. $(eval $(call KMOD_template,OPROFILE,oprofile,\
  1365. $(MODULES_DIR)/kernel/arch/$(ARCH)/oprofile/oprofile \
  1366. ,10))
  1367. #
  1368. # I2C
  1369. #
  1370. $(eval $(call KMOD_template,I2C,i2c,\
  1371. $(MODULES_DIR)/kernel/drivers/i2c/i2c-core \
  1372. $(MODULES_DIR)/kernel/drivers/i2c/i2c-dev \
  1373. ,20))
  1374. $(eval $(call KMOD_template,SCx200_ACB,scx200-acb,\
  1375. $(MODULES_DIR)/kernel/drivers/i2c/busses/scx200_acb \
  1376. ,25))
  1377. #
  1378. # VirtIO
  1379. #
  1380. $(eval $(call KMOD_template,VIRTIO_BLK,virtio-block,\
  1381. $(MODULES_DIR)/kernel/drivers/net/virtio_blk \
  1382. ,20))
  1383. $(eval $(call KMOD_template,VIRTIO_NET,virtio-net,\
  1384. $(MODULES_DIR)/kernel/drivers/net/virtio_net \
  1385. ,40))