block.mk 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. #
  2. # Copyright (C) 2006-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. BLOCK_MENU:=Block Devices
  8. define KernelPackage/aoe
  9. SUBMENU:=$(BLOCK_MENU)
  10. TITLE:=ATA over Ethernet support
  11. KCONFIG:=CONFIG_ATA_OVER_ETH
  12. FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.ko
  13. AUTOLOAD:=$(call AutoLoad,30,aoe)
  14. endef
  15. define KernelPackage/aoe/description
  16. Kernel support for ATA over Ethernet
  17. endef
  18. $(eval $(call KernelPackage,aoe))
  19. define KernelPackage/ata-core
  20. SUBMENU:=$(BLOCK_MENU)
  21. TITLE:=Serial and Parallel ATA support
  22. DEPENDS:=@PCI_SUPPORT||TARGET_sunxi +kmod-scsi-core
  23. KCONFIG:=CONFIG_ATA
  24. FILES:=$(LINUX_DIR)/drivers/ata/libata.ko
  25. ifneq ($(wildcard $(LINUX_DIR)/drivers/ata/libahci.ko),)
  26. FILES+=$(LINUX_DIR)/drivers/ata/libahci.ko
  27. endif
  28. endef
  29. $(eval $(call KernelPackage,ata-core))
  30. define AddDepends/ata
  31. SUBMENU:=$(BLOCK_MENU)
  32. DEPENDS+=+kmod-ata-core $(1)
  33. endef
  34. define KernelPackage/ata-ahci
  35. TITLE:=AHCI Serial ATA support
  36. KCONFIG:=CONFIG_SATA_AHCI
  37. FILES:= \
  38. $(LINUX_DIR)/drivers/ata/ahci.ko
  39. AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
  40. $(call AddDepends/ata)
  41. endef
  42. define KernelPackage/ata-ahci/description
  43. Support for AHCI Serial ATA controllers
  44. endef
  45. $(eval $(call KernelPackage,ata-ahci))
  46. define KernelPackage/ata-ahci-platform
  47. TITLE:=AHCI Serial ATA Platform support
  48. KCONFIG:=CONFIG_SATA_AHCI_PLATFORM
  49. FILES:= \
  50. $(LINUX_DIR)/drivers/ata/ahci_platform.ko \
  51. $(LINUX_DIR)/drivers/ata/libahci_platform.ko
  52. AUTOLOAD:=$(call AutoLoad,40,libahci libahci_platform ahci_platform,1)
  53. $(call AddDepends/ata,@TARGET_ipq806x||TARGET_sunxi)
  54. endef
  55. define KernelPackage/ata-ahci-platform/description
  56. Platform support for AHCI Serial ATA controllers
  57. endef
  58. $(eval $(call KernelPackage,ata-ahci-platform))
  59. define KernelPackage/ata-artop
  60. TITLE:=ARTOP 6210/6260 PATA support
  61. KCONFIG:=CONFIG_PATA_ARTOP
  62. FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.ko
  63. AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
  64. $(call AddDepends/ata)
  65. endef
  66. define KernelPackage/ata-artop/description
  67. PATA support for ARTOP 6210/6260 host controllers
  68. endef
  69. $(eval $(call KernelPackage,ata-artop))
  70. define KernelPackage/ata-marvell-sata
  71. TITLE:=Marvell Serial ATA support
  72. KCONFIG:=CONFIG_SATA_MV
  73. FILES:=$(LINUX_DIR)/drivers/ata/sata_mv.ko
  74. AUTOLOAD:=$(call AutoLoad,41,sata_mv,1)
  75. $(call AddDepends/ata)
  76. endef
  77. define KernelPackage/ata-marvell-sata/description
  78. SATA support for marvell chipsets
  79. endef
  80. $(eval $(call KernelPackage,ata-marvell-sata))
  81. define KernelPackage/ata-nvidia-sata
  82. TITLE:=Nvidia Serial ATA support
  83. KCONFIG:=CONFIG_SATA_NV
  84. FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.ko
  85. AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
  86. $(call AddDepends/ata)
  87. endef
  88. $(eval $(call KernelPackage,ata-nvidia-sata))
  89. define KernelPackage/ata-pdc202xx-old
  90. TITLE:=Older Promise PATA controller support
  91. KCONFIG:= \
  92. CONFIG_ATA_SFF=y \
  93. CONFIG_PATA_PDC_OLD
  94. FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
  95. AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
  96. $(call AddDepends/ata)
  97. endef
  98. define KernelPackage/ata-pdc202xx-old/description
  99. This option enables support for the Promise 20246, 20262, 20263,
  100. 20265 and 20267 adapters
  101. endef
  102. $(eval $(call KernelPackage,ata-pdc202xx-old))
  103. define KernelPackage/ata-piix
  104. TITLE:=Intel PIIX PATA/SATA support
  105. KCONFIG:=CONFIG_ATA_PIIX
  106. FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
  107. AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
  108. $(call AddDepends/ata)
  109. endef
  110. define KernelPackage/ata-piix/description
  111. SATA support for Intel ICH5/6/7/8 series host controllers and
  112. PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers
  113. endef
  114. $(eval $(call KernelPackage,ata-piix))
  115. define KernelPackage/ata-sil
  116. TITLE:=Silicon Image SATA support
  117. KCONFIG:=CONFIG_SATA_SIL
  118. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
  119. AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
  120. $(call AddDepends/ata)
  121. endef
  122. define KernelPackage/ata-sil/description
  123. Support for Silicon Image Serial ATA controllers
  124. endef
  125. $(eval $(call KernelPackage,ata-sil))
  126. define KernelPackage/ata-sil24
  127. TITLE:=Silicon Image 3124/3132 SATA support
  128. KCONFIG:=CONFIG_SATA_SIL24
  129. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
  130. AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
  131. $(call AddDepends/ata)
  132. endef
  133. define KernelPackage/ata-sil24/description
  134. Support for Silicon Image 3124/3132 Serial ATA controllers
  135. endef
  136. $(eval $(call KernelPackage,ata-sil24))
  137. define KernelPackage/ata-via-sata
  138. TITLE:=VIA SATA support
  139. KCONFIG:=CONFIG_SATA_VIA
  140. FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
  141. AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
  142. $(call AddDepends/ata)
  143. endef
  144. define KernelPackage/ata-via-sata/description
  145. This option enables support for VIA Serial ATA
  146. endef
  147. $(eval $(call KernelPackage,ata-via-sata))
  148. define KernelPackage/block2mtd
  149. SUBMENU:=$(BLOCK_MENU)
  150. TITLE:=Block device MTD emulation
  151. KCONFIG:=CONFIG_MTD_BLOCK2MTD
  152. FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
  153. endef
  154. $(eval $(call KernelPackage,block2mtd))
  155. define KernelPackage/dax
  156. SUBMENU:=$(BLOCK_MENU)
  157. TITLE:=DAX: direct access to differentiated memory
  158. KCONFIG:=CONFIG_DAX
  159. FILES:=$(LINUX_DIR)/drivers/dax/dax.ko
  160. endef
  161. $(eval $(call KernelPackage,dax))
  162. define KernelPackage/dm
  163. SUBMENU:=$(BLOCK_MENU)
  164. TITLE:=Device Mapper
  165. DEPENDS:=+kmod-crypto-manager +kmod-dax
  166. # All the "=n" are unnecessary, they're only there
  167. # to stop the config from asking the question.
  168. # MIRROR is M because I've needed it for pvmove.
  169. KCONFIG:= \
  170. CONFIG_BLK_DEV_MD=n \
  171. CONFIG_DM_DEBUG=n \
  172. CONFIG_DM_UEVENT=n \
  173. CONFIG_DM_DELAY=n \
  174. CONFIG_DM_LOG_WRITES=n \
  175. CONFIG_DM_MQ_DEFAULT=n \
  176. CONFIG_DM_MULTIPATH=n \
  177. CONFIG_DM_ZERO=n \
  178. CONFIG_DM_SNAPSHOT=n \
  179. CONFIG_DM_LOG_USERSPACE=n \
  180. CONFIG_MD=y \
  181. CONFIG_BLK_DEV_DM \
  182. CONFIG_DM_CRYPT \
  183. CONFIG_DM_MIRROR
  184. FILES:= \
  185. $(LINUX_DIR)/drivers/md/dm-mod.ko \
  186. $(LINUX_DIR)/drivers/md/dm-crypt.ko \
  187. $(LINUX_DIR)/drivers/md/dm-log.ko \
  188. $(LINUX_DIR)/drivers/md/dm-mirror.ko \
  189. $(LINUX_DIR)/drivers/md/dm-region-hash.ko
  190. AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
  191. endef
  192. define KernelPackage/dm/description
  193. Kernel module necessary for LVM2 support
  194. endef
  195. $(eval $(call KernelPackage,dm))
  196. define KernelPackage/dm-raid
  197. SUBMENU:=$(BLOCK_MENU)
  198. TITLE:=LVM2 raid support
  199. DEPENDS:=+kmod-dm +kmod-md-mod \
  200. +kmod-md-raid0 +kmod-md-raid1 +kmod-md-raid10 +kmod-md-raid456
  201. KCONFIG:= \
  202. CONFIG_DM_RAID
  203. FILES:=$(LINUX_DIR)/drivers/md/dm-raid.ko
  204. AUTOLOAD:=$(call AutoLoad,31,dm-raid)
  205. endef
  206. define KernelPackage/dm-raid/description
  207. Kernel module necessary for LVM2 raid support
  208. endef
  209. $(eval $(call KernelPackage,dm-raid))
  210. define KernelPackage/md-mod
  211. SUBMENU:=$(BLOCK_MENU)
  212. TITLE:=MD RAID
  213. KCONFIG:= \
  214. CONFIG_MD=y \
  215. CONFIG_BLK_DEV_MD=m \
  216. CONFIG_MD_AUTODETECT=y \
  217. CONFIG_MD_FAULTY=n
  218. FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
  219. AUTOLOAD:=$(call AutoLoad,27,md-mod)
  220. endef
  221. define KernelPackage/md-mod/description
  222. Kernel RAID md module (md-mod.ko).
  223. You will need to select at least one RAID level module below.
  224. endef
  225. $(eval $(call KernelPackage,md-mod))
  226. define KernelPackage/md/Depends
  227. SUBMENU:=$(BLOCK_MENU)
  228. DEPENDS:=kmod-md-mod $(1)
  229. endef
  230. define KernelPackage/md-linear
  231. $(call KernelPackage/md/Depends,)
  232. TITLE:=RAID Linear Module
  233. KCONFIG:=CONFIG_MD_LINEAR
  234. FILES:=$(LINUX_DIR)/drivers/md/linear.ko
  235. AUTOLOAD:=$(call AutoLoad,28,linear)
  236. endef
  237. define KernelPackage/md-linear/description
  238. RAID "Linear" or "Append" driver module (linear.ko)
  239. endef
  240. $(eval $(call KernelPackage,md-linear))
  241. define KernelPackage/md-raid0
  242. $(call KernelPackage/md/Depends,)
  243. TITLE:=RAID0 Module
  244. KCONFIG:=CONFIG_MD_RAID0
  245. FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
  246. AUTOLOAD:=$(call AutoLoad,28,raid0)
  247. endef
  248. define KernelPackage/md-raid0/description
  249. RAID Level 0 (Striping) driver module (raid0.ko)
  250. endef
  251. $(eval $(call KernelPackage,md-raid0))
  252. define KernelPackage/md-raid1
  253. $(call KernelPackage/md/Depends,)
  254. TITLE:=RAID1 Module
  255. KCONFIG:=CONFIG_MD_RAID1
  256. FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
  257. AUTOLOAD:=$(call AutoLoad,28,raid1)
  258. endef
  259. define KernelPackage/md-raid1/description
  260. RAID Level 1 (Mirroring) driver (raid1.ko)
  261. endef
  262. $(eval $(call KernelPackage,md-raid1))
  263. define KernelPackage/md-raid10
  264. $(call KernelPackage/md/Depends,)
  265. TITLE:=RAID10 Module
  266. KCONFIG:=CONFIG_MD_RAID10
  267. FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
  268. AUTOLOAD:=$(call AutoLoad,28,raid10)
  269. endef
  270. define KernelPackage/md-raid10/description
  271. RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
  272. endef
  273. $(eval $(call KernelPackage,md-raid10))
  274. define KernelPackage/md-raid456
  275. $(call KernelPackage/md/Depends,+kmod-lib-raid6 +kmod-lib-xor +kmod-lib-crc32c)
  276. TITLE:=RAID Level 456 Driver
  277. KCONFIG:= \
  278. CONFIG_ASYNC_CORE \
  279. CONFIG_ASYNC_MEMCPY \
  280. CONFIG_ASYNC_XOR \
  281. CONFIG_ASYNC_PQ \
  282. CONFIG_ASYNC_RAID6_RECOV \
  283. CONFIG_ASYNC_RAID6_TEST=n \
  284. CONFIG_MD_RAID456 \
  285. CONFIG_MULTICORE_RAID456=n
  286. FILES:= \
  287. $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
  288. $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
  289. $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
  290. $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
  291. $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
  292. $(LINUX_DIR)/drivers/md/raid456.ko
  293. AUTOLOAD:=$(call AutoLoad,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456)
  294. endef
  295. define KernelPackage/md-raid456/description
  296. RAID Level 4,5,6 kernel module (raid456.ko)
  297. Includes the following modules required by
  298. raid456.ko:
  299. xor.ko
  300. async_tx.ko
  301. async_xor.ko
  302. async_memcpy.ko
  303. async_pq.ko
  304. async_raid5_recov.ko
  305. raid6_pq.ko
  306. endef
  307. $(eval $(call KernelPackage,md-raid456))
  308. define KernelPackage/md-multipath
  309. $(call KernelPackage/md/Depends,)
  310. TITLE:=MD Multipath Module
  311. KCONFIG:=CONFIG_MD_MULTIPATH
  312. FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
  313. AUTOLOAD:=$(call AutoLoad,29,multipath)
  314. endef
  315. define KernelPackage/md-multipath/description
  316. Multipath driver module (multipath.ko)
  317. endef
  318. $(eval $(call KernelPackage,md-multipath))
  319. define KernelPackage/libsas
  320. SUBMENU:=$(BLOCK_MENU)
  321. DEPENDS:=@TARGET_x86
  322. TITLE:=SAS Domain Transport Attributes
  323. KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
  324. CONFIG_SCSI_SAS_ATTRS \
  325. CONFIG_SCSI_SAS_ATA=y \
  326. CONFIG_SCSI_SAS_HOST_SMP=y \
  327. CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
  328. FILES:= \
  329. $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
  330. $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
  331. AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
  332. endef
  333. define KernelPackage/libsas/description
  334. SAS Domain Transport Attributes support
  335. endef
  336. $(eval $(call KernelPackage,libsas,1))
  337. define KernelPackage/loop
  338. SUBMENU:=$(BLOCK_MENU)
  339. TITLE:=Loopback device support
  340. KCONFIG:= \
  341. CONFIG_BLK_DEV_LOOP \
  342. CONFIG_BLK_DEV_CRYPTOLOOP=n
  343. FILES:=$(LINUX_DIR)/drivers/block/loop.ko
  344. AUTOLOAD:=$(call AutoLoad,30,loop)
  345. endef
  346. define KernelPackage/loop/description
  347. Kernel module for loopback device support
  348. endef
  349. $(eval $(call KernelPackage,loop))
  350. define KernelPackage/mvsas
  351. SUBMENU:=$(BLOCK_MENU)
  352. TITLE:=Marvell 88SE6440 SAS/SATA driver
  353. DEPENDS:=@TARGET_x86 +kmod-libsas
  354. KCONFIG:= \
  355. CONFIG_SCSI_MVSAS \
  356. CONFIG_SCSI_MVSAS_TASKLET=n
  357. FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
  358. AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
  359. endef
  360. define KernelPackage/mvsas/description
  361. Kernel support for the Marvell SAS SCSI adapters
  362. endef
  363. $(eval $(call KernelPackage,mvsas))
  364. define KernelPackage/nbd
  365. SUBMENU:=$(BLOCK_MENU)
  366. TITLE:=Network block device support
  367. KCONFIG:=CONFIG_BLK_DEV_NBD
  368. FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
  369. AUTOLOAD:=$(call AutoLoad,30,nbd)
  370. endef
  371. define KernelPackage/nbd/description
  372. Kernel module for network block device support
  373. endef
  374. $(eval $(call KernelPackage,nbd))
  375. define KernelPackage/scsi-core
  376. SUBMENU:=$(BLOCK_MENU)
  377. TITLE:=SCSI device support
  378. KCONFIG:= \
  379. CONFIG_SCSI \
  380. CONFIG_BLK_DEV_SD
  381. FILES:= \
  382. $(LINUX_DIR)/drivers/scsi/scsi_mod.ko \
  383. $(LINUX_DIR)/drivers/scsi/sd_mod.ko
  384. AUTOLOAD:=$(call AutoLoad,40,scsi_mod sd_mod,1)
  385. endef
  386. $(eval $(call KernelPackage,scsi-core))
  387. define KernelPackage/scsi-generic
  388. SUBMENU:=$(BLOCK_MENU)
  389. TITLE:=Kernel support for SCSI generic
  390. DEPENDS:=+kmod-scsi-core
  391. KCONFIG:= \
  392. CONFIG_CHR_DEV_SG
  393. FILES:= \
  394. $(LINUX_DIR)/drivers/scsi/sg.ko
  395. AUTOLOAD:=$(call AutoLoad,65,sg)
  396. endef
  397. $(eval $(call KernelPackage,scsi-generic))
  398. define KernelPackage/scsi-cdrom
  399. SUBMENU:=$(BLOCK_MENU)
  400. TITLE:=Kernel support for CD / DVD drives
  401. DEPENDS:=+kmod-scsi-core
  402. KCONFIG:= \
  403. CONFIG_BLK_DEV_SR \
  404. CONFIG_BLK_DEV_SR_VENDOR=n
  405. FILES:= \
  406. $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
  407. $(LINUX_DIR)/drivers/scsi/sr_mod.ko
  408. AUTOLOAD:=$(call AutoLoad,45,sr_mod)
  409. endef
  410. $(eval $(call KernelPackage,scsi-cdrom))
  411. define KernelPackage/scsi-tape
  412. SUBMENU:=$(BLOCK_MENU)
  413. TITLE:=Kernel support for scsi tape drives
  414. DEPENDS:=+kmod-scsi-core
  415. KCONFIG:= \
  416. CONFIG_CHR_DEV_ST
  417. FILES:= \
  418. $(LINUX_DIR)/drivers/scsi/st.ko
  419. AUTOLOAD:=$(call AutoLoad,45,st)
  420. endef
  421. $(eval $(call KernelPackage,scsi-tape))