1
0

modules.mk 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818
  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_XTABLES,netfilter-xtables,\
  326. $(MODULES_DIR)/kernel/net/netfilter/x_tables \
  327. $(MODULES_DIR)/kernel/net/netfilter/xt_tcpudp \
  328. ,41))
  329. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_CLASSIFY,netfiler-xt-target-classify,\
  330. $(MODULES_DIR)/kernel/net/netfilter/xt_CLASSIFY \
  331. ,50))
  332. CONNMARK:=xt_connmark
  333. MARK:=xt_mark
  334. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_CONNMARK,netfilter-xt-target-connmark,\
  335. $(MODULES_DIR)/kernel/net/netfilter/$(CONNMARK) \
  336. ,50))
  337. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_MARK,netfilter-xt-target-mark,\
  338. $(MODULES_DIR)/kernel/net/netfilter/$(MARK) \
  339. ,50))
  340. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_CHECKSUM,netfilter-xt-target-checksum,\
  341. $(MODULES_DIR)/kernel/net/netfilter/xt_CHECKSUM \
  342. ,50))
  343. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_NFQUEUE,netfilter-xt-target-nfqueue,\
  344. $(MODULES_DIR)/kernel/net/netfilter/xt_NFQUEUE \
  345. ,50))
  346. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_TCPMSS,netfilter-xt-target-tcpmss,\
  347. $(MODULES_DIR)/kernel/net/netfilter/xt_TCPMSS \
  348. ,50))
  349. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_NOTRACK,netfilter-xt-target-notrack,\
  350. $(MODULES_DIR)/kernel/net/netfilter/xt_NOTRACK \
  351. ,50))
  352. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_LOG,netfilter-xt-target-log,\
  353. $(MODULES_DIR)/kernel/net/netfilter/xt_LOG \
  354. ,60))
  355. #
  356. # IP: Netfilter
  357. #
  358. $(eval $(call KMOD_template,NF_CONNTRACK,nf-conntrack,\
  359. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack \
  360. $(MODULES_DIR)/kernel/net/netfilter/xt_conntrack \
  361. ,41))
  362. $(eval $(call KMOD_template,NF_NAT,nf-nat,\
  363. $(MODULES_DIR)/kernel/net/netfilter/nf_nat \
  364. ,42))
  365. $(eval $(call KMOD_template,NETFILTER_XT_NAT,netfilter-xt-nat,\
  366. $(MODULES_DIR)/kernel/net/netfilter/xt_nat \
  367. ,43))
  368. $(eval $(call KMOD_template,NF_CONNTRACK_IPV4,nf-conntrack-ipv4,\
  369. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_defrag_ipv4 \
  370. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_conntrack_ipv4 \
  371. ,46))
  372. $(eval $(call KMOD_template,NF_NAT_IPV4,nf-nat-ipv4,\
  373. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_ipv4 \
  374. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_masquerade_ipv4 \
  375. ,50))
  376. $(eval $(call KMOD_template,IP_NF_NAT,ip-nf-nat,\
  377. $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_nat \
  378. ,60))
  379. $(eval $(call KMOD_template,NF_CONNTRACK_FTP,nf-conntrack-ftp,\
  380. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_ftp \
  381. $(MODULES_DIR)/kernel/net/netfilter/nf_nat_ftp \
  382. ,55))
  383. $(eval $(call KMOD_template,NF_CONNTRACK_IRC,nf-conntrack-irc,\
  384. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_irc \
  385. $(MODULES_DIR)/kernel/net/netfilter/nf_nat_irc \
  386. ,55))
  387. $(eval $(call KMOD_template,NF_CONNTRACK_NETBIOS_NS,nf-conntrack-netbios-ns,\
  388. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_broadcast \
  389. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_netbios_ns \
  390. ,55))
  391. $(eval $(call KMOD_template,NF_CONNTRACK_TFTP,nf-conntrack-tftp,\
  392. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_tftp \
  393. $(MODULES_DIR)/kernel/net/netfilter/nf_nat_tftp \
  394. ,55))
  395. $(eval $(call KMOD_template,NF_CONNTRACK_PPTP,nf-conntrack-pptp,\
  396. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_proto_gre \
  397. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_pptp \
  398. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_proto_gre \
  399. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_pptp \
  400. ,55))
  401. $(eval $(call KMOD_template,NF_CONNTRACK_H323,nf-conntrack-h323,\
  402. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_h323 \
  403. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_nat_h323 \
  404. ,55))
  405. $(eval $(call KMOD_template,NF_CONNTRACK_SIP,nf-conntrack-sip,\
  406. $(MODULES_DIR)/kernel/net/netfilter/nf_conntrack_sip \
  407. $(MODULES_DIR)/kernel/net/netfilter/nf_nat_sip \
  408. ,55))
  409. $(eval $(call KMOD_template,IP_NF_IPTABLES,ip-nf-iptables,\
  410. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ip_tables \
  411. ,49))
  412. $(eval $(call KMOD_template,IP_NF_MATCH_IPRANGE,ip-nf-match-iprange,\
  413. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_iprange \
  414. ,55))
  415. $(eval $(call KMOD_template,IP_NF_MATCH_TOS,ip-nf-match-tos,\
  416. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_tos \
  417. ,55))
  418. $(eval $(call KMOD_template,IP_NF_MATCH_RECENT,ip-nf-match-recent,\
  419. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_recent \
  420. ,55))
  421. $(eval $(call KMOD_template,IP_NF_MATCH_ECN,ip-nf-match-ecn,\
  422. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ecn \
  423. ,55))
  424. $(eval $(call KMOD_template,IP_NF_MATCH_AH,ip-nf-match-ah,\
  425. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ah \
  426. ,55))
  427. $(eval $(call KMOD_template,IP_NF_MATCH_TTL,ip-nf-match-ttl,\
  428. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ttl \
  429. ,55))
  430. $(eval $(call KMOD_template,IP_NF_MATCH_OWNER,ip-nf-match-owner,\
  431. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_owner \
  432. ,55))
  433. $(eval $(call KMOD_template,IP_NF_MATCH_ADDRTYPE,ip-nf-match-addrtype,\
  434. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_addrtype \
  435. ,55))
  436. $(eval $(call KMOD_template,IP_NF_MATCH_HASHLIMIT,ip-nf-match-hashlimit,\
  437. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_hashlimit \
  438. ,55))
  439. $(eval $(call KMOD_template,IP_NF_MATCH_STATE,ip-nf-match-state,\
  440. $(MODULES_DIR)/kernel/net/netfilter/xt_state \
  441. ,55))
  442. $(eval $(call KMOD_template,IP_NF_MATCH_MULTIPORT,ip-nf-match-multiport,\
  443. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_multiport \
  444. ,55))
  445. #
  446. # Filtering
  447. #
  448. $(eval $(call KMOD_template,IP_NF_FILTER,ip-nf-filter,\
  449. $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_filter \
  450. ,55))
  451. $(eval $(call KMOD_template,IP_NF_TARGET_REJECT,ip-nf-target-reject,\
  452. $(MODULES_DIR)/kernel/net/ipv4/netfilter/nf_reject_ipv4 \
  453. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_REJECT \
  454. ,60))
  455. $(eval $(call KMOD_template,IP_NF_TARGET_TCPMSS,ip-nf-target-tcpmss,\
  456. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_TCPMSS \
  457. ,60))
  458. $(eval $(call KMOD_template,IP_NF_TARGET_MASQUERADE,ip-nf-target-masquerade,\
  459. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_MASQUERADE \
  460. ,65))
  461. $(eval $(call KMOD_template,IP_NF_TARGET_REDIRECT,ip-nf-target-redirect,\
  462. $(MODULES_DIR)/kernel/net/netfilter/xt_REDIRECT \
  463. ,65))
  464. $(eval $(call KMOD_template,IP_NF_TARGET_NETMAP,ip-nf-target-netmap,\
  465. $(MODULES_DIR)/kernel/net/netfilter/xt_NETMAP \
  466. ,65))
  467. #
  468. # Mangle
  469. #
  470. $(eval $(call KMOD_template,IP_NF_MANGLE,ip-nf-mangle,\
  471. $(MODULES_DIR)/kernel/net/ipv4/netfilter/iptable_mangle \
  472. ,60))
  473. $(eval $(call KMOD_template,IP_NF_TARGET_TOS,ip-nf-target-tos,\
  474. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_TOS \
  475. ,65))
  476. $(eval $(call KMOD_template,IP_NF_TARGET_ECN,ip-nf-target-ecn,\
  477. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_ECN \
  478. ,65))
  479. $(eval $(call KMOD_template,IP_NF_TARGET_TTL,ip-nf-target-ttl,\
  480. $(MODULES_DIR)/kernel/net/ipv4/netfilter/ipt_TTL \
  481. ,65))
  482. #
  483. # IPv6: Netfilter
  484. #
  485. $(eval $(call KMOD_template,NF_CONNTRACK_IPV6,nf-conntrack-ipv6,\
  486. $(MODULES_DIR)/kernel/net/ipv6/netfilter/nf_defrag_ipv6 \
  487. $(MODULES_DIR)/kernel/net/ipv6/netfilter/nf_conntrack_ipv6 \
  488. ,50))
  489. $(eval $(call KMOD_template,IP6_NF_IPTABLES,ip6-nf-iptables,\
  490. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6_tables \
  491. ,50))
  492. $(eval $(call KMOD_template,IP6_NF_MATCH_AH,ip6-nf-match-ah,\
  493. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_ah \
  494. ,55))
  495. $(eval $(call KMOD_template,IP6_NF_MATCH_EUI64,ip6-nf-match-eui64,\
  496. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_eui64 \
  497. ,55))
  498. $(eval $(call KMOD_template,IP6_NF_MATCH_FRAG,ip6-nf-match-frag,\
  499. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_frag \
  500. ,55))
  501. $(eval $(call KMOD_template,IP6_NF_MATCH_OPTS,ip6-nf-match-opts,\
  502. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_hbh \
  503. ,55))
  504. $(eval $(call KMOD_template,IP6_NF_MATCH_IPV6HEADER,ip6-nf-match-ipv6header,\
  505. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_ipv6header \
  506. ,55))
  507. $(eval $(call KMOD_template,IP6_NF_MATCH_MH,ip6-nf-match-mh,\
  508. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_mh \
  509. ,55))
  510. $(eval $(call KMOD_template,IP6_NF_MATCH_RT,ip6-nf-match-rt,\
  511. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_rt \
  512. ,55))
  513. #
  514. # IPv6: Filtering
  515. #
  516. $(eval $(call KMOD_template,IP6_NF_FILTER,ip6-nf-filter,\
  517. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6table_filter \
  518. ,55))
  519. $(eval $(call KMOD_template,IP6_NF_TARGET_REJECT,ip6-nf-target-reject,\
  520. $(MODULES_DIR)/kernel/net/ipv6/netfilter/nf_reject_ipv6 \
  521. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6t_REJECT \
  522. ,60))
  523. #
  524. # IPv6: Mangle
  525. #
  526. $(eval $(call KMOD_template,IP6_NF_MANGLE,ip6-nf-mangle,\
  527. $(MODULES_DIR)/kernel/net/ipv6/netfilter/ip6table_mangle \
  528. ,60))
  529. #
  530. # IPVS
  531. #
  532. IPVSPATH=$(MODULES_DIR)/kernel/net/netfilter/ipvs
  533. $(eval $(call KMOD_template,IP_VS,ip-vs,\
  534. $(IPVSPATH)/ip_vs \
  535. ,55))
  536. $(eval $(call KMOD_template,IP_VS_RR,ip-vs-rr,\
  537. $(IPVSPATH)/ip_vs_rr \
  538. ,55))
  539. $(eval $(call KMOD_template,IP_VS_WRR,ip-vs-wrr,\
  540. $(IPVSPATH)/ip_vs_wrr \
  541. ,55))
  542. $(eval $(call KMOD_template,IP_VS_LC,ip-vs-lc,\
  543. $(IPVSPATH)/ip_vs_lc \
  544. ,55))
  545. $(eval $(call KMOD_template,IP_VS_WLC,ip-vs-wlc,\
  546. $(IPVSPATH)/ip_vs_wlc \
  547. ,55))
  548. $(eval $(call KMOD_template,IP_VS_LBLC,ip-vs-lblc,\
  549. $(IPVSPATH)/ip_vs_lblc \
  550. ,55))
  551. $(eval $(call KMOD_template,IP_VS_LBLCR,ip-vs-lblcr,\
  552. $(IPVSPATH)/ip_vs_lblcr \
  553. ,55))
  554. $(eval $(call KMOD_template,IP_VS_DH,ip-vs-dh,\
  555. $(IPVSPATH)/ip_vs_dh \
  556. ,55))
  557. $(eval $(call KMOD_template,IP_VS_SH,ip-vs-sh,\
  558. $(IPVSPATH)/ip_vs_sh \
  559. ,55))
  560. $(eval $(call KMOD_template,IP_VS_SED,ip-vs-sed,\
  561. $(IPVSPATH)/ip_vs_sed \
  562. ,55))
  563. $(eval $(call KMOD_template,IP_VS_NQ,ip-vs-nq,\
  564. $(IPVSPATH)/ip_vs_nq \
  565. ,55))
  566. $(eval $(call KMOD_template,IP_VS_FTP,ip-vs-ftp,\
  567. $(IPVSPATH)/ip_vs_ftp \
  568. ,55))
  569. #
  570. # Block devices
  571. #
  572. $(eval $(call KMOD_template,BLK_DEV_DRBD,blk-dev-drbd,\
  573. $(MODULES_DIR)/kernel/lib/lru_cache \
  574. $(MODULES_DIR)/kernel/drivers/block/drbd/drbd \
  575. ,20))
  576. $(eval $(call KMOD_template,BLK_DEV_LOOP,blk-dev-loop,\
  577. $(MODULES_DIR)/kernel/drivers/block/loop \
  578. ,20))
  579. $(eval $(call KMOD_template,BLK_DEV_NBD,blk-dev-nbd,\
  580. $(MODULES_DIR)/kernel/drivers/block/nbd \
  581. ,20))
  582. #$(eval $(call KMOD_template,SCSI,scsi,\
  583. # $(MODULES_DIR)/kernel/drivers/scsi/scsi_mod \
  584. #,20))
  585. $(eval $(call KMOD_template,BLK_DEV_SD,blk-dev-sd,\
  586. $(MODULES_DIR)/kernel/drivers/scsi/sd_mod \
  587. ,25))
  588. $(eval $(call KMOD_template,BLK_DEV_SR,blk-dev-sr,\
  589. $(MODULES_DIR)/kernel/drivers/cdrom/cdrom \
  590. $(MODULES_DIR)/kernel/drivers/scsi/sr_mod \
  591. ,25))
  592. #
  593. # RAID
  594. #
  595. $(eval $(call KMOD_template,RAID6_PQ,raid-pq,\
  596. $(MODULES_DIR)/kernel/lib/raid6/raid6_pq \
  597. ,20))
  598. $(eval $(call KMOD_template,BLK_DEV_MD,blk-dev-md,\
  599. $(MODULES_DIR)/kernel/drivers/md/md-mod \
  600. ,30))
  601. $(eval $(call KMOD_template,MD_RAID0,md-raid0,\
  602. $(MODULES_DIR)/kernel/drivers/md/raid0 \
  603. ,35))
  604. $(eval $(call KMOD_template,MD_RAID1,md-raid1,\
  605. $(MODULES_DIR)/kernel/drivers/md/raid1 \
  606. ,35))
  607. $(eval $(call KMOD_template,MD_RAID456,md-raid456,\
  608. $(MODULES_DIR)/kernel/crypto/async_tx/async_tx \
  609. $(MODULES_DIR)/kernel/crypto/async_tx/async_xor \
  610. $(MODULES_DIR)/kernel/crypto/async_tx/async_memcpy \
  611. $(MODULES_DIR)/kernel/crypto/async_tx/async_raid6_recov \
  612. $(MODULES_DIR)/kernel/crypto/async_tx/async_pq \
  613. $(MODULES_DIR)/kernel/drivers/md/raid456 \
  614. ,35, kmod-raid-pq kmod-xor-blocks))
  615. #
  616. # Device Mapper
  617. #
  618. $(eval $(call KMOD_template,BLK_DEV_DM,blk-dev-dm,\
  619. $(MODULES_DIR)/kernel/drivers/md/dm-mod \
  620. ,35))
  621. $(eval $(call KMOD_template,DM_CRYPT,dm-crypt,\
  622. $(MODULES_DIR)/kernel/drivers/md/dm-crypt \
  623. ,40))
  624. $(eval $(call KMOD_template,DM_MIRROR,dm-mirror,\
  625. $(MODULES_DIR)/kernel/drivers/md/dm-log \
  626. $(MODULES_DIR)/kernel/drivers/md/dm-region-hash \
  627. $(MODULES_DIR)/kernel/drivers/md/dm-mirror \
  628. ,40))
  629. $(eval $(call KMOD_template,DM_SNAPSHOT,dm-snapshot,\
  630. $(MODULES_DIR)/kernel/drivers/md/dm-snapshot \
  631. ,40))
  632. #
  633. # Crypto
  634. #
  635. $(eval $(call KMOD_template,CRYPTO,crypto,\
  636. $(MODULES_DIR)/kernel/crypto/crypto \
  637. ,01))
  638. $(eval $(call KMOD_template,CRYPTO_ALGAPI2,crypto-algapi,\
  639. $(MODULES_DIR)/kernel/crypto/crypto_algapi \
  640. ,02))
  641. $(eval $(call KMOD_template,CRYPTO_PCOMP2,crypto-pcomp,\
  642. $(MODULES_DIR)/kernel/crypto/pcompress \
  643. ,03))
  644. $(eval $(call KMOD_template,CRYPTO_AEAD2,crypto-aead,\
  645. $(MODULES_DIR)/kernel/crypto/aead \
  646. ,03))
  647. $(eval $(call KMOD_template,CRYPTO_HASH2,crypto-hash,\
  648. $(MODULES_DIR)/kernel/crypto/crypto_hash \
  649. ,04))
  650. $(eval $(call KMOD_template,CRYPTO_BLKCIPHER2,crypto-blkcipher,\
  651. $(MODULES_DIR)/kernel/crypto/crypto_blkcipher \
  652. ,05))
  653. $(eval $(call KMOD_template,CRYPTO_RNG2,crypto-rng,\
  654. $(MODULES_DIR)/kernel/crypto/rng \
  655. $(MODULES_DIR)/kernel/crypto/krng \
  656. ,06))
  657. $(eval $(call KMOD_template,CRYPTO_WORKQUEUE,crypto-wq,\
  658. $(MODULES_DIR)/kernel/crypto/crypto_wq \
  659. ,07))
  660. $(eval $(call KMOD_template,CRYPTO_MANAGER2,crypto-manager,\
  661. $(MODULES_DIR)/kernel/crypto/cryptomgr \
  662. $(MODULES_DIR)/kernel/crypto/eseqiv \
  663. $(MODULES_DIR)/kernel/crypto/chainiv \
  664. ,08))
  665. $(eval $(call KMOD_template,CRYPTO_DEV_GEODE,crypto-dev-geode,\
  666. $(MODULES_DIR)/kernel/drivers/crypto/geode-aes \
  667. ,20))
  668. $(eval $(call KMOD_template,XOR_BLOCKS,xor-blocks,\
  669. $(MODULES_DIR)/kernel/crypto/xor \
  670. ,10))
  671. $(eval $(call KMOD_template,CRYPTO_AUTHENC,crypto-authenc,\
  672. $(MODULES_DIR)/kernel/crypto/authenc \
  673. ,11))
  674. $(eval $(call KMOD_template,CRYPTO_HMAC,crypto-hmac,\
  675. $(MODULES_DIR)/kernel/crypto/hmac \
  676. ,11))
  677. $(eval $(call KMOD_template,CRYPTO_CTS,crypto-cts,\
  678. $(MODULES_DIR)/kernel/crypto/cts \
  679. ,11))
  680. $(eval $(call KMOD_template,CRYPTO_XCBC,crypto-xcbc,\
  681. $(MODULES_DIR)/kernel/crypto/xcbc \
  682. ,11))
  683. $(eval $(call KMOD_template,CRYPTO_NULL,crypto-null,\
  684. $(MODULES_DIR)/kernel/crypto/crypto_null \
  685. ,11))
  686. $(eval $(call KMOD_template,CRYPTO_MD4,crypto-md4,\
  687. $(MODULES_DIR)/kernel/crypto/md4 \
  688. ,11))
  689. $(eval $(call KMOD_template,CRYPTO_MD5,crypto-md5,\
  690. $(MODULES_DIR)/kernel/crypto/md5 \
  691. ,11))
  692. $(eval $(call KMOD_template,CRYPTO_SHA1,crypto-sha1,\
  693. $(MODULES_DIR)/kernel/crypto/sha1_generic \
  694. ,11))
  695. $(eval $(call KMOD_template,CRYPTO_SHA256,crypto-sha256,\
  696. $(MODULES_DIR)/kernel/crypto/sha256_generic \
  697. ,11))
  698. $(eval $(call KMOD_template,CRYPTO_SHA512,crypto-sha512,\
  699. $(MODULES_DIR)/kernel/crypto/sha512_generic \
  700. ,11))
  701. $(eval $(call KMOD_template,CRYPTO_WP512,crypto-wp512,\
  702. $(MODULES_DIR)/kernel/crypto/wp512 \
  703. ,11))
  704. $(eval $(call KMOD_template,CRYPTO_TGR192,crypto-tgr192,\
  705. $(MODULES_DIR)/kernel/crypto/tgr192 \
  706. ,11))
  707. $(eval $(call KMOD_template,CRYPTO_SEQIV,crypto-seqiv,\
  708. $(MODULES_DIR)/kernel/crypto/seqiv \
  709. ,5))
  710. $(eval $(call KMOD_template,CRYPTO_CTR,crypto-ctr,\
  711. $(MODULES_DIR)/kernel/crypto/ctr \
  712. ,10))
  713. $(eval $(call KMOD_template,CRYPTO_CCM,crypto-ccm,\
  714. $(MODULES_DIR)/kernel/crypto/ccm \
  715. ,10))
  716. $(eval $(call KMOD_template,CRYPTO_GCM,crypto-gcm,\
  717. $(MODULES_DIR)/kernel/crypto/gcm \
  718. ,10))
  719. $(eval $(call KMOD_template,CRYPTO_ECB,crypto-ecb,\
  720. $(MODULES_DIR)/kernel/crypto/ecb \
  721. ,10))
  722. $(eval $(call KMOD_template,CRYPTO_CBC,crypto-cbc,\
  723. $(MODULES_DIR)/kernel/crypto/cbc \
  724. ,10))
  725. $(eval $(call KMOD_template,CRYPTO_DES,crypto-des,\
  726. $(MODULES_DIR)/kernel/crypto/des_generic \
  727. ,10))
  728. $(eval $(call KMOD_template,CRYPTO_BLOWFISH,crypto-blowfish,\
  729. $(MODULES_DIR)/kernel/crypto/blowfish_common \
  730. $(MODULES_DIR)/kernel/crypto/blowfish_generic \
  731. ,11))
  732. $(eval $(call KMOD_template,CRYPTO_TWOFISH,crypto-twofish,\
  733. $(MODULES_DIR)/kernel/crypto/twofish_common \
  734. $(MODULES_DIR)/kernel/crypto/twofish_generic \
  735. ,11))
  736. $(eval $(call KMOD_template,CRYPTO_TWOFISH_586,crypto-twofish-586,\
  737. $(MODULES_DIR)/kernel/arch/x86/crypto/twofish-i586 \
  738. ,12))
  739. $(eval $(call KMOD_template,CRYPTO_SERPENT,crypto-serpent,\
  740. $(MODULES_DIR)/kernel/crypto/serpent_generic \
  741. ,11))
  742. $(eval $(call KMOD_template,CRYPTO_AES,crypto-aes,\
  743. $(MODULES_DIR)/kernel/crypto/aes_generic \
  744. ,10))
  745. $(eval $(call KMOD_template,CRYPTO_AES_586,crypto-aes-586,\
  746. $(MODULES_DIR)/kernel/arch/x86/crypto/aes-i586 \
  747. ,11))
  748. $(eval $(call KMOD_template,CRYPTO_CAST5,crypto-cast5,\
  749. $(MODULES_DIR)/kernel/crypto/cast5_generic \
  750. ,11))
  751. $(eval $(call KMOD_template,CRYPTO_CAST6,crypto-cast6,\
  752. $(MODULES_DIR)/kernel/crypto/cast6_generic \
  753. ,11))
  754. $(eval $(call KMOD_template,CRYPTO_TEA,crypto-tea,\
  755. $(MODULES_DIR)/kernel/crypto/tea \
  756. ,11))
  757. $(eval $(call KMOD_template,CRYPTO_ARC4,crypto-arc4,\
  758. $(MODULES_DIR)/kernel/crypto/arc4 \
  759. ,11))
  760. $(eval $(call KMOD_template,CRYPTO_KHAZAD,crypto-khazad,\
  761. $(MODULES_DIR)/kernel/crypto/khazad \
  762. ,11))
  763. $(eval $(call KMOD_template,CRYPTO_ANUBIS,crypto-anubis,\
  764. $(MODULES_DIR)/kernel/crypto/anubis \
  765. ,11))
  766. $(eval $(call KMOD_template,CRYPTO_CAMELLIA,crypto-camellia,\
  767. $(MODULES_DIR)/kernel/crypto/camellia_generic \
  768. ,11))
  769. $(eval $(call KMOD_template,CRYPTO_FCRYPT,crypto-fcrypt,\
  770. $(MODULES_DIR)/kernel/crypto/fcrypt \
  771. ,11))
  772. $(eval $(call KMOD_template,CRYPTO_DEFLATE,crypto-deflate,\
  773. $(MODULES_DIR)/kernel/crypto/deflate \
  774. ,10, kmod-zlib-deflate))
  775. $(eval $(call KMOD_template,CRYPTO_LZO,crypto-lzo,\
  776. $(MODULES_DIR)/kernel/crypto/lzo \
  777. ,10))
  778. $(eval $(call KMOD_template,CRYPTO_MICHAEL_MIC,crypto-michael-mic,\
  779. $(MODULES_DIR)/kernel/crypto/michael_mic \
  780. ,11))
  781. $(eval $(call KMOD_template,OCF_CRYPTOSOFT,ocf-cryptosoft,\
  782. ${MODULES_DIR}/kernel/crypto/ocf/cryptosoft \
  783. ,12))
  784. $(eval $(call KMOD_template,OCF_SAFE,ocf-safe,\
  785. ${MODULES_DIR}/kernel/crypto/ocf/safe/safe \
  786. ,12))
  787. $(eval $(call KMOD_template,OCF_IXP4XX,ocf-ixp4xx,\
  788. ${MODULES_DIR}/kernel/crypto/ocf/ixp4xx/ixp4xx \
  789. ,12))
  790. $(eval $(call KMOD_template,OCF_HIFN,ocf-hifn,\
  791. ${MODULES_DIR}/kernel/crypto/ocf/hifn/hifn7751 \
  792. ,12))
  793. $(eval $(call KMOD_template,OCF_TALITOS,ocf-talitos,\
  794. ${MODULES_DIR}/kernel/crypto/ocf/talitos/talitos \
  795. ,12))
  796. #
  797. # Filesystems
  798. #
  799. #$(eval $(call KMOD_template,AUFS_FS,aufs-fs,\
  800. $(MODULES_DIR)/kernel/fs/aufs/aufs \
  801. ,30))
  802. $(eval $(call KMOD_template,CIFS,cifs,\
  803. $(MODULES_DIR)/kernel/fs/cifs/cifs \
  804. ,30))
  805. $(eval $(call KMOD_template,CODA_FS,coda-fs,\
  806. $(MODULES_DIR)/kernel/fs/coda/coda \
  807. ,30))
  808. $(eval $(call KMOD_template,EXT2_FS,ext2-fs,\
  809. $(MODULES_DIR)/kernel/fs/ext2/ext2 \
  810. ,30))
  811. $(eval $(call KMOD_template,FS_MBCACHE,fs-mbcache,\
  812. $(MODULES_DIR)/kernel/fs/mbcache \
  813. ,20))
  814. $(eval $(call KMOD_template,EXT3_FS,ext3-fs,\
  815. $(MODULES_DIR)/kernel/fs/jbd/jbd \
  816. $(MODULES_DIR)/kernel/fs/ext3/ext3 \
  817. ,30))
  818. $(eval $(call KMOD_template,JBD2,jbd2,\
  819. $(MODULES_DIR)/kernel/fs/jbd2/jbd2 \
  820. ,29))
  821. $(eval $(call KMOD_template,EXT4_FS,ext4-fs,\
  822. $(MODULES_DIR)/kernel/fs/ext4/ext4 \
  823. ,30))
  824. $(eval $(call KMOD_template,FUSE_FS,fuse-fs,\
  825. $(MODULES_DIR)/kernel/fs/fuse/fuse \
  826. ,30))
  827. $(eval $(call KMOD_template,HFSPLUS_FS,hfsplus-fs,\
  828. $(MODULES_DIR)/kernel/fs/hfsplus/hfsplus \
  829. ,30))
  830. $(eval $(call KMOD_template,SUNRPC,sunrpc,\
  831. $(MODULES_DIR)/kernel/net/sunrpc/sunrpc \
  832. ,24))
  833. $(eval $(call KMOD_template,SUNRPC_GSS,sunrpc-gss,\
  834. $(MODULES_DIR)/kernel/lib/oid_registry \
  835. $(MODULES_DIR)/kernel/net/sunrpc/auth_gss/auth_rpcgss \
  836. ,25))
  837. $(eval $(call KMOD_template,RPCSEC_GSS_KRB5,rpcsec-gss-krb5,\
  838. $(MODULES_DIR)/kernel/net/sunrpc/auth_gss/rpcsec_gss_krb5 \
  839. ,26))
  840. $(eval $(call KMOD_template,LOCKD,lockd,\
  841. $(MODULES_DIR)/kernel/fs/nfs_common/grace \
  842. $(MODULES_DIR)/kernel/fs/lockd/lockd \
  843. ,27))
  844. ifneq ($(ADK_KERNEL_NFS_FS),y)
  845. $(eval $(call KMOD_template,NFS_FS,nfs-fs,\
  846. $(MODULES_DIR)/kernel/fs/nfs/nfs \
  847. ,30, kmod-sunrpc))
  848. endif
  849. $(eval $(call KMOD_template,NFSD,nfsd,\
  850. $(MODULES_DIR)/kernel/fs/nfsd/nfsd \
  851. ,30, kmod-sunrpc kmod-lockd))
  852. $(eval $(call KMOD_template,NTFS_FS,ntfs-fs,\
  853. $(MODULES_DIR)/kernel/fs/ntfs/ntfs \
  854. ,30))
  855. $(eval $(call KMOD_template,VFAT_FS,vfat-fs,\
  856. $(MODULES_DIR)/kernel/fs/fat/fat \
  857. $(MODULES_DIR)/kernel/fs/fat/vfat \
  858. ,30))
  859. $(eval $(call KMOD_template,XFS_FS,xfs-fs,\
  860. $(MODULES_DIR)/kernel/fs/xfs/xfs \
  861. ,30))
  862. $(eval $(call KMOD_template,BTRFS_FS,btrfs-fs,\
  863. $(MODULES_DIR)/kernel/fs/btrfs/btrfs \
  864. ,30, kmod-raid6-pq kmod-xor-blocks))
  865. $(eval $(call KMOD_template,YAFFS_FS,yaffs-fs,\
  866. $(MODULES_DIR)/kernel/fs/yaffs2/yaffs \
  867. ,30))
  868. $(eval $(call KMOD_template,REISERFS_FS,reiserfs-fs,\
  869. $(MODULES_DIR)/kernel/fs/reiserfs/reiserfs \
  870. ,30))
  871. $(eval $(call KMOD_template,ISO9660_FS,iso9660-fs,\
  872. $(MODULES_DIR)/kernel/fs/isofs/isofs \
  873. ,30))
  874. $(eval $(call KMOD_template,UDF_FS,udf-fs,\
  875. $(MODULES_DIR)/kernel/fs/udf/udf \
  876. ,30))
  877. #
  878. # Multimedia
  879. #
  880. $(eval $(call KMOD_template,USB_VIDEO_CLASS,usb-video-class,\
  881. $(MODULES_DIR)/kernel/drivers/media/usb/uvc/uvcvideo \
  882. ,70))
  883. $(eval $(call KMOD_template,USB_GSPCA,usb-gspca,\
  884. $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_main \
  885. ,75))
  886. $(eval $(call KMOD_template,USB_GSPCA_PAC207,usb-gspca-pac207,\
  887. $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_pac207 \
  888. ,80))
  889. $(eval $(call KMOD_template,USB_GSPCA_PAC7311,usb-gspca-pac7311,\
  890. $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_pac7311 \
  891. ,80))
  892. $(eval $(call KMOD_template,USB_GSPCA_SPCA561,usb-gspca-spca561,\
  893. $(MODULES_DIR)/kernel/drivers/media/usb/gspca/gspca_spca561 \
  894. ,80))
  895. $(eval $(call KMOD_template,USB_PWC,usb-pwc,\
  896. $(MODULES_DIR)/kernel/drivers/media/usb/pwc/pwc \
  897. ,80))
  898. #
  899. # PCMCIA/CardBus
  900. #
  901. $(eval $(call KMOD_template,PCCARD,pccard,\
  902. $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_core \
  903. ,40))
  904. $(eval $(call KMOD_template,YENTA,yenta,\
  905. $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_rsrc \
  906. $(MODULES_DIR)/kernel/drivers/pcmcia/yenta_socket \
  907. ,50))
  908. $(eval $(call KMOD_template,PCMCIA,pcmcia,\
  909. $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia \
  910. ,60))
  911. $(eval $(call KMOD_template,SERIAL_8250_CS,serial-8250-cs,\
  912. $(MODULES_DIR)/kernel/drivers/tty/serial/8250/serial_cs \
  913. ,70))
  914. #
  915. # Input
  916. #
  917. $(eval $(call KMOD_template,KEYBOARD_ATKBD,keyboard-atkbd,\
  918. $(MODULES_DIR)/kernel/drivers/input/keyboard/atkbd \
  919. ,45))
  920. $(eval $(call KMOD_template,INPUT_MOUSEDEV,input-mousedev,\
  921. $(MODULES_DIR)/kernel/drivers/input/mousedev \
  922. ,45))
  923. $(eval $(call KMOD_template,INPUT_EVDEV,input-evdev,\
  924. $(MODULES_DIR)/kernel/drivers/input/evdev \
  925. ,45))
  926. #
  927. # USB
  928. #
  929. USBMODULES:=
  930. USBMODULES+=drivers/usb/usb-common
  931. USBMODULES+=drivers/usb/core/usbcore
  932. USBUDC:=gadget
  933. ifeq ($(KERNEL_BASE),3)
  934. ifeq ($(KERNEL_MAJ),18)
  935. USBMODULES:=
  936. USBMODULES+=drivers/usb/common/usb-common
  937. USBMODULES+=drivers/usb/core/usbcore
  938. USBUDC:=gadget/udc
  939. endif
  940. ifeq ($(KERNEL_MAJ),19)
  941. USBMODULES:=
  942. USBMODULES+=drivers/usb/common/usb-common
  943. USBMODULES+=drivers/usb/core/usbcore
  944. USBUDC:=gadget/udc
  945. endif
  946. endif
  947. $(eval $(call KMOD_template,USB,usb,\
  948. $(foreach mod, $(USBMODULES),$(MODULES_DIR)/kernel/$(mod)) \
  949. ,50))
  950. $(eval $(call KMOD_template,USB_EHCI_HCD,usb-ehci-hcd,\
  951. $(MODULES_DIR)/kernel/drivers/usb/host/ehci-hcd \
  952. ,55))
  953. $(eval $(call KMOD_template,USB_MXS_PHY,usb-mxs-phy,\
  954. $(MODULES_DIR)/kernel/drivers/usb/phy/phy-mxs-usb \
  955. ,56))
  956. $(eval $(call KMOD_template,USB_GADGET,usb-gadget,\
  957. $(MODULES_DIR)/kernel/drivers/usb/$(USBUDC)/udc-core \
  958. ,57))
  959. $(eval $(call KMOD_template,USB_CHIPIDEA,ci-hdrc,\
  960. $(MODULES_DIR)/kernel/drivers/usb/chipidea/ci_hdrc \
  961. $(MODULES_DIR)/kernel/drivers/usb/chipidea/usbmisc_imx \
  962. $(MODULES_DIR)/kernel/drivers/usb/chipidea/ci_hdrc_imx \
  963. ,58, kmod-usb-gadget kmod-usb-mxs-phy))
  964. $(eval $(call KMOD_template,USB_OHCI_HCD,usb-ohci-hcd,\
  965. $(MODULES_DIR)/kernel/drivers/usb/host/ohci-hcd \
  966. ,60))
  967. $(eval $(call KMOD_template,USB_UHCI_HCD,usb-uhci-hcd,\
  968. $(MODULES_DIR)/kernel/drivers/usb/host/uhci-hcd \
  969. ,60))
  970. $(eval $(call KMOD_template,USB_ACM,usb-acm,\
  971. $(MODULES_DIR)/kernel/drivers/usb/class/cdc-acm \
  972. ,70))
  973. $(eval $(call KMOD_template,USB_HID,usb-hid,\
  974. $(MODULES_DIR)/kernel/drivers/hid/usbhid/usbhid \
  975. ,70))
  976. $(eval $(call KMOD_template,USB_PRINTER,usb-printer,\
  977. $(MODULES_DIR)/kernel/drivers/usb/class/usblp \
  978. ,70))
  979. $(eval $(call KMOD_template,USB_SERIAL,usb-serial,\
  980. $(MODULES_DIR)/kernel/drivers/usb/serial/usbserial \
  981. ,70))
  982. $(eval $(call KMOD_template,USB_SERIAL_BELKIN,usb-serial-belkin,\
  983. $(MODULES_DIR)/kernel/drivers/usb/serial/belkin_sa \
  984. ,71))
  985. $(eval $(call KMOD_template,USB_SERIAL_FTDI_SIO,usb-serial-ftdi-sio,\
  986. $(MODULES_DIR)/kernel/drivers/usb/serial/ftdi_sio \
  987. ,71))
  988. $(eval $(call KMOD_template,USB_SERIAL_MCT_U232,usb-serial-mct-u232,\
  989. $(MODULES_DIR)/kernel/drivers/usb/serial/mct_u232 \
  990. ,71))
  991. $(eval $(call KMOD_template,USB_SERIAL_PL2303,usb-serial-pl2303,\
  992. $(MODULES_DIR)/kernel/drivers/usb/serial/pl2303 \
  993. ,71))
  994. $(eval $(call KMOD_template,USB_SERIAL_VISOR,usb-serial-visor,\
  995. $(MODULES_DIR)/kernel/drivers/usb/serial/visor \
  996. ,71))
  997. $(eval $(call KMOD_template,USB_STORAGE,usb-storage,\
  998. $(MODULES_DIR)/kernel/drivers/usb/storage/usb-storage \
  999. ,75))
  1000. $(eval $(call KMOD_template,USB_PEGASUS,usb-pegasus,\
  1001. $(MODULES_DIR)/kernel/drivers/net/usb/pegasus \
  1002. ,75))
  1003. $(eval $(call KMOD_template,USB_HSO,usb-hso,\
  1004. $(MODULES_DIR)/kernel/drivers/net/usb/hso \
  1005. ,75))
  1006. $(eval $(call KMOD_template,SND_USB_AUDIO,snd-usb-audio,\
  1007. $(MODULES_DIR)/kernel/sound/usb/snd-usbmidi-lib \
  1008. $(MODULES_DIR)/kernel/sound/usb/snd-usb-audio \
  1009. ,75))
  1010. #
  1011. # Bluetooth
  1012. #
  1013. $(eval $(call KMOD_template,IEEE802154_6LOWPAN,ieee802154_6lowpan,\
  1014. $(MODULES_DIR)/kernel/net/ieee802154/6lowpan_iphc \
  1015. ,65))
  1016. $(eval $(call KMOD_template,BT,bt,\
  1017. $(MODULES_DIR)/kernel/net/bluetooth/bluetooth \
  1018. ,70))
  1019. $(eval $(call KMOD_template,BT_HCIBCM203X,bt-hcibcm203x,\
  1020. $(MODULES_DIR)/kernel/drivers/bluetooth/bcm203x \
  1021. ,75))
  1022. $(eval $(call KMOD_template,BT_HCIBTUSB,bt-hcibtusb,\
  1023. $(MODULES_DIR)/kernel/drivers/bluetooth/btusb \
  1024. ,76))
  1025. $(eval $(call KMOD_template,BT_HCIBTSDIO,bt-hcibtsdio,\
  1026. $(MODULES_DIR)/kernel/drivers/bluetooth/btsdio \
  1027. ,76))
  1028. $(eval $(call KMOD_template,BT_MRVL,bt-mrvl,\
  1029. $(MODULES_DIR)/kernel/drivers/bluetooth/btmrvl \
  1030. ,77))
  1031. $(eval $(call KMOD_template,BT_MRVL_SDIO,bt-mrvl-sdio,\
  1032. $(MODULES_DIR)/kernel/drivers/bluetooth/btmrvl_sdio \
  1033. ,78))
  1034. $(eval $(call KMOD_template,BT_HCIUART,bt-hciuart,\
  1035. $(MODULES_DIR)/kernel/drivers/bluetooth/hci_uart \
  1036. ,75))
  1037. #$(eval $(call KMOD_template,BT_L2CAP,bt-l2cap,\
  1038. $(MODULES_DIR)/kernel/net/bluetooth/l2cap \
  1039. ,80))
  1040. #$(eval $(call KMOD_template,BT_SCO,bt-sco,\
  1041. $(MODULES_DIR)/kernel/net/bluetooth/sco \
  1042. ,85))
  1043. $(eval $(call KMOD_template,BT_BNEP,bt-bnep,\
  1044. $(MODULES_DIR)/kernel/net/bluetooth/bnep/bnep \
  1045. ,85))
  1046. $(eval $(call KMOD_template,BT_RFCOMM,bt-rfcomm,\
  1047. $(MODULES_DIR)/kernel/net/bluetooth/rfcomm/rfcomm \
  1048. ,85))
  1049. #
  1050. # Misc devices
  1051. #
  1052. $(eval $(call KMOD_template,SOFT_WATCHDOG,soft-watchdog,\
  1053. $(MODULES_DIR)/kernel/drivers/watchdog/softdog \
  1054. ,95))
  1055. $(eval $(call KMOD_template,FW_LOADER,fw-loader,\
  1056. $(MODULES_DIR)/kernel/drivers/base/firmware_class \
  1057. ,01))
  1058. $(eval $(call KMOD_template,EEPROM_93CX6,eeprom-93cx6,\
  1059. $(MODULES_DIR)/kernel/drivers/misc/eeprom/eeprom_93cx6 \
  1060. ,05))
  1061. $(eval $(call KMOD_template,LEDS_CLASS,leds-class,\
  1062. $(MODULES_DIR)/kernel/drivers/leds/led-class \
  1063. ,05))
  1064. $(eval $(call KMOD_template,LEDS_ALIX2,leds-alix2,\
  1065. $(MODULES_DIR)/kernel/drivers/leds/leds-alix2 \
  1066. ,10))
  1067. $(eval $(call KMOD_template,LEDS_TRIGGER_TIMER,leds-trigger-timer,\
  1068. $(MODULES_DIR)/kernel/drivers/leds/trigger/ledtrig-timer \
  1069. ,20))
  1070. $(eval $(call KMOD_template,LEDS_TRIGGER_HEARTBEAT,leds-trigger-heartbeat,\
  1071. $(MODULES_DIR)/kernel/drivers/leds/trigger/ledtrig-heartbeat \
  1072. ,20))
  1073. $(eval $(call KMOD_template,LEDS_TRIGGER_DEFAULT_ON,leds-trigger-default-on,\
  1074. $(MODULES_DIR)/kernel/drivers/leds/trigger/ledtrig-default-on \
  1075. ,20))
  1076. $(eval $(call KMOD_template,NETFILTER_XT_TARGET_LED,netfilter-xt-target-led,\
  1077. $(MODULES_DIR)/kernel/net/netfilter/xt_LED \
  1078. ,90))
  1079. #
  1080. # NLS
  1081. #
  1082. $(eval $(call KMOD_template,NLS,nls,\
  1083. $(MODULES_DIR)/kernel/fs/nls/nls_base \
  1084. ,10))
  1085. $(eval $(call KMOD_template,NLS_CODEPAGE_437,nls-codepage-437,\
  1086. $(MODULES_DIR)/kernel/fs/nls/nls_cp437 \
  1087. ,20))
  1088. $(eval $(call KMOD_template,NLS_CODEPAGE_737,nls-codepage-737,\
  1089. $(MODULES_DIR)/kernel/fs/nls/nls_cp737 \
  1090. ,20))
  1091. $(eval $(call KMOD_template,NLS_CODEPAGE_775,nls-codepage-775,\
  1092. $(MODULES_DIR)/kernel/fs/nls/nls_cp775 \
  1093. ,20))
  1094. $(eval $(call KMOD_template,NLS_CODEPAGE_850,nls-codepage-850,\
  1095. $(MODULES_DIR)/kernel/fs/nls/nls_cp850 \
  1096. ,20))
  1097. $(eval $(call KMOD_template,NLS_CODEPAGE_852,nls-codepage-852,\
  1098. $(MODULES_DIR)/kernel/fs/nls/nls_cp852 \
  1099. ,20))
  1100. $(eval $(call KMOD_template,NLS_CODEPAGE_857,nls-codepage-857,\
  1101. $(MODULES_DIR)/kernel/fs/nls/nls_cp857 \
  1102. ,20))
  1103. $(eval $(call KMOD_template,NLS_CODEPAGE_860,nls-codepage-860,\
  1104. $(MODULES_DIR)/kernel/fs/nls/nls_cp860 \
  1105. ,20))
  1106. $(eval $(call KMOD_template,NLS_CODEPAGE_861,nls-codepage-861,\
  1107. $(MODULES_DIR)/kernel/fs/nls/nls_cp861 \
  1108. ,20))
  1109. $(eval $(call KMOD_template,NLS_CODEPAGE_862,nls-codepage-862,\
  1110. $(MODULES_DIR)/kernel/fs/nls/nls_cp862 \
  1111. ,20))
  1112. $(eval $(call KMOD_template,NLS_CODEPAGE_863,nls-codepage-863,\
  1113. $(MODULES_DIR)/kernel/fs/nls/nls_cp863 \
  1114. ,20))
  1115. $(eval $(call KMOD_template,NLS_CODEPAGE_864,nls-codepage-864,\
  1116. $(MODULES_DIR)/kernel/fs/nls/nls_cp864 \
  1117. ,20))
  1118. $(eval $(call KMOD_template,NLS_CODEPAGE_865,nls-codepage-865,\
  1119. $(MODULES_DIR)/kernel/fs/nls/nls_cp865 \
  1120. ,20))
  1121. $(eval $(call KMOD_template,NLS_CODEPAGE_866,nls-codepage-866,\
  1122. $(MODULES_DIR)/kernel/fs/nls/nls_cp866 \
  1123. ,20))
  1124. $(eval $(call KMOD_template,NLS_CODEPAGE_869,nls-codepage-869,\
  1125. $(MODULES_DIR)/kernel/fs/nls/nls_cp869 \
  1126. ,20))
  1127. NLS_CODEPAGE_874_MODULES := fs/nls/nls_cp874
  1128. $(eval $(call KMOD_template,NLS_CODEPAGE_874,nls-codepage-874,\
  1129. $(foreach mod,$(NLS_CODEPAGE_874_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1130. ,20))
  1131. NLS_CODEPAGE_932_MODULES := fs/nls/nls_cp932
  1132. NLS_CODEPAGE_932_MODULES += fs/nls/nls_euc-jp
  1133. $(eval $(call KMOD_template,NLS_CODEPAGE_932,nls-codepage-932,\
  1134. $(foreach mod,$(NLS_CODEPAGE_932_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1135. ,20))
  1136. NLS_CODEPAGE_936_MODULES := fs/nls/nls_cp936
  1137. $(eval $(call KMOD_template,NLS_CODEPAGE_936,nls-codepage-936,\
  1138. $(foreach mod,$(NLS_CODEPAGE_936_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1139. ,20))
  1140. NLS_CODEPAGE_949_MODULES := fs/nls/nls_cp949
  1141. $(eval $(call KMOD_template,NLS_CODEPAGE_949,nls-codepage-949,\
  1142. $(foreach mod,$(NLS_CODEPAGE_949_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1143. ,20))
  1144. NLS_CODEPAGE_950_MODULES := fs/nls/nls_cp950
  1145. $(eval $(call KMOD_template,NLS_CODEPAGE_950,nls-codepage-950,\
  1146. $(foreach mod,$(NLS_CODEPAGE_950_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1147. ,20))
  1148. $(eval $(call KMOD_template,NLS_CODEPAGE_1250,nls-codepage-1250,\
  1149. $(MODULES_DIR)/kernel/fs/nls/nls_cp1250 \
  1150. ,20))
  1151. $(eval $(call KMOD_template,NLS_CODEPAGE_1251,nls-codepage-1251,\
  1152. $(MODULES_DIR)/kernel/fs/nls/nls_cp1251 \
  1153. ,20))
  1154. $(eval $(call KMOD_template,NLS_ASCII,nls-ascii, \
  1155. $(MODULES_DIR)/kernel/fs/nls/nls_ascii \
  1156. ,20))
  1157. $(eval $(call KMOD_template,NLS_ISO8859_1,nls-iso8859-1, \
  1158. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-1 \
  1159. ,20))
  1160. $(eval $(call KMOD_template,NLS_ISO8859_2,nls-iso8859-2, \
  1161. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-2 \
  1162. ,20))
  1163. $(eval $(call KMOD_template,NLS_ISO8859_3,nls-iso8859-3, \
  1164. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-3 \
  1165. ,20))
  1166. $(eval $(call KMOD_template,NLS_ISO8859_4,nls-iso8859-4, \
  1167. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-4 \
  1168. ,20))
  1169. $(eval $(call KMOD_template,NLS_ISO8859_5,nls-iso8859-5, \
  1170. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-5 \
  1171. ,20))
  1172. $(eval $(call KMOD_template,NLS_ISO8859_6,nls-iso8859-6, \
  1173. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-6 \
  1174. ,20))
  1175. $(eval $(call KMOD_template,NLS_ISO8859_7,nls-iso8859-7, \
  1176. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-7 \
  1177. ,20))
  1178. NLS_ISO8859_8_MODULES := fs/nls/nls_cp1255
  1179. $(eval $(call KMOD_template,NLS_ISO8859_8,nls-iso8859-8, \
  1180. $(foreach mod,$(NLS_ISO8859_8_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1181. ,20))
  1182. $(eval $(call KMOD_template,NLS_ISO8859_9,nls-iso8859-9, \
  1183. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-9 \
  1184. ,20))
  1185. $(eval $(call KMOD_template,NLS_ISO8859_13,nls-iso8859-13, \
  1186. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-13 \
  1187. ,20))
  1188. $(eval $(call KMOD_template,NLS_ISO8859_14,nls-iso8859-14, \
  1189. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-14 \
  1190. ,20))
  1191. $(eval $(call KMOD_template,NLS_ISO8859_15,nls-iso8859-15, \
  1192. $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-15 \
  1193. ,20))
  1194. $(eval $(call KMOD_template,NLS_KOI8_R,nls-koi8-r, \
  1195. $(MODULES_DIR)/kernel/fs/nls/nls_koi8-r \
  1196. ,20))
  1197. $(eval $(call KMOD_template,NLS_KOI8_U,nls-koi8-u, \
  1198. $(MODULES_DIR)/kernel/fs/nls/nls_koi8-u \
  1199. $(MODULES_DIR)/kernel/fs/nls/nls_koi8-ru \
  1200. ,20))
  1201. $(eval $(call KMOD_template,NLS_UTF8,nls-utf8, \
  1202. $(MODULES_DIR)/kernel/fs/nls/nls_utf8 \
  1203. ,20))
  1204. #
  1205. # ISDN
  1206. #
  1207. ISDN_MODULES=drivers/isdn/i4l/isdn
  1208. $(eval $(call KMOD_template,ISDN,isdn, \
  1209. $(foreach mod,$(ISDN_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1210. ,60))
  1211. $(eval $(call KMOD_template,ISDN_CAPI,isdn-capi, \
  1212. $(MODULES_DIR)/kernel/drivers/isdn/capi/kernelcapi \
  1213. $(MODULES_DIR)/kernel/drivers/isdn/capi/capi \
  1214. ,60))
  1215. $(eval $(call KMOD_template,SLHC,slhc, \
  1216. $(MODULES_DIR)/kernel/$(SLHC) \
  1217. ,65))
  1218. $(eval $(call KMOD_template,HISAX,hisax, \
  1219. $(MODULES_DIR)/kernel/drivers/isdn/hisax/hisax \
  1220. ,70))
  1221. MISDN_MODULES=drivers/isdn/hardware/mISDN/mISDN_core
  1222. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_l1
  1223. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_l2
  1224. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_dsp
  1225. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_dtmf
  1226. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_isac
  1227. MISDN_MODULES+=drivers/isdn/hardware/mISDN/mISDN_x25dte
  1228. MISDN_MODULES+=drivers/isdn/hardware/mISDN/l3udss1
  1229. $(eval $(call KMOD_template,MISDN_DRV,misdn-drv, \
  1230. $(foreach mod, $(MISDN_MODULES),$(MODULES_DIR)/kernel/$(mod)) \
  1231. ,75))
  1232. $(eval $(call KMOD_template,MISDN_AVM_FRITZ,misdn-avm-fritz, \
  1233. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/avmfritz \
  1234. ,80))
  1235. $(eval $(call KMOD_template,MISDN_HFCPCI,misdn-hfcpci, \
  1236. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/hfcpci \
  1237. ,80))
  1238. $(eval $(call KMOD_template,MISDN_HFCMULTI,misdn-hfcmulti, \
  1239. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/hfcmulti \
  1240. ,80))
  1241. $(eval $(call KMOD_template,MISDN_HFCMINI,misdn-hfcmini, \
  1242. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/hfcsmini \
  1243. ,80))
  1244. $(eval $(call KMOD_template,MISDN_XHFC,misdn-xhfc, \
  1245. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/xhfc \
  1246. ,80))
  1247. $(eval $(call KMOD_template,MISDN_SPEEDFAX,misdn-speedfax, \
  1248. $(MODULES_DIR)/kernel/drivers/isdn/hardware/mISDN/sedlfax \
  1249. ,80))
  1250. #
  1251. # Library modules
  1252. #
  1253. $(eval $(call KMOD_template,CRC_CCITT,crc-ccitt, \
  1254. $(MODULES_DIR)/kernel/lib/crc-ccitt \
  1255. ,01))
  1256. $(eval $(call KMOD_template,CRC_ITU_T,crc-itu-t, \
  1257. $(MODULES_DIR)/kernel/lib/crc-itu-t \
  1258. ,01))
  1259. $(eval $(call KMOD_template,CRC16,crc16, \
  1260. $(MODULES_DIR)/kernel/lib/crc16 \
  1261. ,01))
  1262. $(eval $(call KMOD_template,LIBCRC32C,libcrc32c, \
  1263. $(MODULES_DIR)/kernel/lib/libcrc32c \
  1264. ,01))
  1265. #
  1266. # parallel port support
  1267. #
  1268. $(eval $(call KMOD_template,LP,lp,\
  1269. $(MODULES_DIR)/kernel/drivers/char/lp \
  1270. ,60))
  1271. $(eval $(call KMOD_template,PPDEV,ppdev,\
  1272. $(MODULES_DIR)/kernel/drivers/char/ppdev \
  1273. ,60))
  1274. $(eval $(call KMOD_template,PARPORT,parport,\
  1275. $(MODULES_DIR)/kernel/drivers/parport/parport \
  1276. ,50))
  1277. $(eval $(call KMOD_template,PARPORT_PC,parport-pc,\
  1278. $(MODULES_DIR)/kernel/drivers/parport/parport_pc \
  1279. ,55))
  1280. $(eval $(call KMOD_template,PLIP,plip,\
  1281. $(MODULES_DIR)/kernel/drivers/net/plip/plip \
  1282. ,60))
  1283. #
  1284. # Profiling
  1285. #
  1286. $(eval $(call KMOD_template,OPROFILE,oprofile,\
  1287. $(MODULES_DIR)/kernel/arch/$(ADK_TARGET_ARCH)/oprofile/oprofile \
  1288. ,10))
  1289. #
  1290. # SPI
  1291. #
  1292. $(eval $(call KMOD_template,SPI_BITBANG,spi-bitbang,\
  1293. $(MODULES_DIR)/kernel/drivers/spi/spi-bitbang \
  1294. ,20))
  1295. $(eval $(call KMOD_template,SPI_IMX,spi-imx,\
  1296. $(MODULES_DIR)/kernel/drivers/spi/spi-imx \
  1297. ,25))
  1298. #
  1299. # I2C
  1300. #
  1301. $(eval $(call KMOD_template,I2C_DEV,i2c-dev,\
  1302. $(MODULES_DIR)/kernel/drivers/i2c/i2c-dev \
  1303. ,20))
  1304. $(eval $(call KMOD_template,I2C_IMX,i2c-imx,\
  1305. $(MODULES_DIR)/kernel/drivers/i2c/busses/i2c-imx \
  1306. ,25))
  1307. $(eval $(call KMOD_template,SCX200_ACB,scx200-acb,\
  1308. $(MODULES_DIR)/kernel/drivers/i2c/busses/scx200_acb \
  1309. ,25))
  1310. #
  1311. # VirtIO
  1312. #
  1313. $(eval $(call KMOD_template,VIRTIO_BLK,virtio-block,\
  1314. $(MODULES_DIR)/kernel/drivers/block/virtio_blk \
  1315. ,20))
  1316. $(eval $(call KMOD_template,VIRTIO_NET,virtio-net,\
  1317. $(MODULES_DIR)/kernel/drivers/net/virtio_net \
  1318. ,40))
  1319. #
  1320. # Lib
  1321. #
  1322. $(eval $(call KMOD_template,ZLIB_DEFLATE,zlib-deflate,\
  1323. $(MODULES_DIR)/kernel/lib/zlib_deflate/zlib_deflate \
  1324. ,01))
  1325. $(eval $(call KMOD_template,LZO_COMPRESS,lzo-compress,\
  1326. $(MODULES_DIR)/kernel/lib/lzo/lzo_compress \
  1327. ,01))
  1328. $(eval $(call KMOD_template,LZO_DECOMPRESS,lzo-decompress,\
  1329. $(MODULES_DIR)/kernel/lib/lzo/lzo_decompress \
  1330. ,01))
  1331. #
  1332. # DRM
  1333. #
  1334. $(eval $(call KMOD_template,DRM_DW_HDMI_AUDIO,drm-dw-hdmi-audio,\
  1335. $(MODULES_DIR)/kernel/drivers/staging/imx-drm/dw-hdmi-audio \
  1336. ,75))
  1337. $(eval $(call KMOD_template,DRM_DW_HDMI_CEC,drm-dw-hdmi-cec,\
  1338. $(MODULES_DIR)/kernel/drivers/cec/cec-dev \
  1339. $(MODULES_DIR)/kernel/drivers/staging/imx-drm/dw-hdmi-cec \
  1340. ,75))
  1341. #
  1342. # Sound
  1343. #
  1344. $(eval $(call KMOD_template,SND_SOC_WM8731,snd-soc-wm8731,\
  1345. $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-wm8731 \
  1346. ,55))
  1347. $(eval $(call KMOD_template,SND_SOC_WM8804,snd-soc-wm8804,\
  1348. $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-wm8804 \
  1349. ,55))
  1350. $(eval $(call KMOD_template,SND_SOC_PCM5102A,snd-soc-pcm5102a,\
  1351. $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-pcm5102a \
  1352. ,55))
  1353. $(eval $(call KMOD_template,SND_SOC_PCM512x,snd-soc-pcm512x,\
  1354. $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-pcm512x \
  1355. ,55))
  1356. $(eval $(call KMOD_template,SND_SOC_PCM512x_I2C,snd-soc-pcm512x-i2c,\
  1357. $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-pcm512x-i2c \
  1358. ,56))
  1359. $(eval $(call KMOD_template,SND_SOC_PCM512x_SPI,snd-soc-pcm512x-spi,\
  1360. $(MODULES_DIR)/kernel/sound/soc/codecs/snd-soc-pcm512x-spi \
  1361. ,56))
  1362. $(eval $(call KMOD_template,SND_BCM2708_SOC_I2S,snd-bcm2708-soc-i2s,\
  1363. $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-bcm2708-i2s \
  1364. ,60, kmod-snd-soc))
  1365. $(eval $(call KMOD_template,SND_BCM2708_SOC_HIFIBERRY_DAC,snd-bcm2708-soc-hifiberry-dac,\
  1366. $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-hifiberry-dac \
  1367. ,65, kmod-snd-bcm2708-soc-i2s))
  1368. $(eval $(call KMOD_template,SND_BCM2708_SOC_HIFIBERRY_DIGI,snd-bcm2708-soc-hifiberry-digi,\
  1369. $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-hifiberry-digi \
  1370. ,65, kmod-snd-bcm2708-soc-i2s))
  1371. $(eval $(call KMOD_template,SND_BCM2708_SOC_RPI_DAC,snd-bcm2708-soc-rpi-dac,\
  1372. $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-rpi-dac \
  1373. ,65, kmod-snd-bcm2708-soc-i2s))
  1374. $(eval $(call KMOD_template,SND_BCM2708_SOC_IQAUDIO_DAC,snd-bcm2708-soc-iqaudio-dac,\
  1375. $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-iqaudio-dac \
  1376. ,65, kmod-snd-bcm2708-soc-i2s))
  1377. $(eval $(call KMOD_template,SND_BCM2708_SOC_RPI_PROTO,snd-bcm2708-soc-rpi-proto,\
  1378. $(MODULES_DIR)/kernel/sound/soc/bcm/snd-soc-rpi-proto \
  1379. ,65, kmod-snd-bcm2708-soc-i2s))