modules.mk 47 KB

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