1
0

modules.mk 46 KB

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