modules.mk 49 KB

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