modules.mk 48 KB

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