block.mk 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652
  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 +kmod-scsi-core
  23. KCONFIG:=CONFIG_ATA
  24. FILES:=$(LINUX_DIR)/drivers/ata/libata.ko
  25. endef
  26. $(eval $(call KernelPackage,ata-core))
  27. define AddDepends/ata
  28. SUBMENU:=$(BLOCK_MENU)
  29. DEPENDS+=kmod-ata-core $(1)
  30. endef
  31. define KernelPackage/ata-ahci
  32. TITLE:=AHCI Serial ATA support
  33. KCONFIG:=CONFIG_SATA_AHCI
  34. FILES:= \
  35. $(LINUX_DIR)/drivers/ata/ahci.ko \
  36. $(LINUX_DIR)/drivers/ata/libahci.ko
  37. AUTOLOAD:=$(call AutoLoad,41,libahci ahci,1)
  38. $(call AddDepends/ata)
  39. endef
  40. define KernelPackage/ata-ahci/description
  41. Support for AHCI Serial ATA controllers
  42. endef
  43. $(eval $(call KernelPackage,ata-ahci))
  44. define KernelPackage/ata-ahci-platform
  45. TITLE:=AHCI Serial ATA Platform support
  46. KCONFIG:=CONFIG_SATA_AHCI_PLATFORM
  47. FILES:= \
  48. $(LINUX_DIR)/drivers/ata/ahci_platform.ko \
  49. $(LINUX_DIR)/drivers/ata/libahci_platform.ko
  50. AUTOLOAD:=$(call AutoLoad,40,libahci_platform ahci_platform,1)
  51. $(call AddDepends/ata,@TARGET_ipq806x||TARGET_mvebu +kmod-ata-ahci)
  52. endef
  53. define KernelPackage/ata-ahci-platform/description
  54. Platform support for AHCI Serial ATA controllers
  55. endef
  56. $(eval $(call KernelPackage,ata-ahci-platform))
  57. define KernelPackage/ata-artop
  58. TITLE:=ARTOP 6210/6260 PATA support
  59. KCONFIG:=CONFIG_PATA_ARTOP
  60. FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.ko
  61. AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
  62. $(call AddDepends/ata)
  63. endef
  64. define KernelPackage/ata-artop/description
  65. PATA support for ARTOP 6210/6260 host controllers
  66. endef
  67. $(eval $(call KernelPackage,ata-artop))
  68. define KernelPackage/ata-imx
  69. TITLE:=Freescale i.MX AHCI SATA support
  70. DEPENDS:=@TARGET_imx6
  71. KCONFIG:=\
  72. CONFIG_AHCI_IMX \
  73. CONFIG_SATA_AHCI_PLATFORM \
  74. CONFIG_PATA_IMX=n
  75. FILES:=$(LINUX_DIR)/drivers/ata/ahci_imx.ko
  76. AUTOLOAD:=$(call AutoLoad,41,ahci_imx,1)
  77. $(call AddDepends/ata)
  78. endef
  79. define KernelPackage/ata-imx/description
  80. SATA support for the Freescale i.MX6 SoC's onboard AHCI SATA
  81. endef
  82. $(eval $(call KernelPackage,ata-imx))
  83. define KernelPackage/ata-marvell-sata
  84. TITLE:=Marvell Serial ATA support
  85. KCONFIG:=CONFIG_SATA_MV
  86. FILES:=$(LINUX_DIR)/drivers/ata/sata_mv.ko
  87. AUTOLOAD:=$(call AutoLoad,41,sata_mv,1)
  88. $(call AddDepends/ata)
  89. endef
  90. define KernelPackage/ata-marvell-sata/description
  91. SATA support for marvell chipsets
  92. endef
  93. $(eval $(call KernelPackage,ata-marvell-sata))
  94. define KernelPackage/ata-mvebu-ahci
  95. TITLE:=Marvell EBU AHCI support
  96. DEPENDS:=@TARGET_mvebu +kmod-ata-ahci-platform
  97. KCONFIG:=CONFIG_AHCI_MVEBU
  98. FILES:=$(LINUX_DIR)/drivers/ata/ahci_mvebu.ko
  99. AUTOLOAD:=$(call AutoLoad,41,ahci_mvebu,1)
  100. $(call AddDepends/ata)
  101. endef
  102. define KernelPackage/ata-mvebu-ahci/description
  103. AHCI support for Marvell EBU SoCs
  104. endef
  105. $(eval $(call KernelPackage,ata-mvebu-ahci))
  106. define KernelPackage/ata-nvidia-sata
  107. TITLE:=Nvidia Serial ATA support
  108. KCONFIG:=CONFIG_SATA_NV
  109. FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.ko
  110. AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
  111. $(call AddDepends/ata)
  112. endef
  113. $(eval $(call KernelPackage,ata-nvidia-sata))
  114. define KernelPackage/ata-oxnas-sata
  115. TITLE:=oxnas Serial ATA support
  116. KCONFIG:=CONFIG_SATA_OXNAS
  117. DEPENDS:=@TARGET_oxnas
  118. FILES:=$(LINUX_DIR)/drivers/ata/sata_oxnas.ko
  119. AUTOLOAD:=$(call AutoLoad,41,sata_oxnas,1)
  120. $(call AddDepends/ata)
  121. endef
  122. define KernelPackage/ata-oxnas-sata/description
  123. SATA support for OX934 core found in the OX82x/PLX782x SoCs
  124. endef
  125. $(eval $(call KernelPackage,ata-oxnas-sata))
  126. define KernelPackage/ata-pdc202xx-old
  127. SUBMENU:=$(BLOCK_MENU)
  128. TITLE:=Older Promise PATA controller support
  129. DEPENDS:=kmod-ata-core
  130. KCONFIG:= \
  131. CONFIG_ATA_SFF=y \
  132. CONFIG_PATA_PDC_OLD
  133. FILES:=$(LINUX_DIR)/drivers/ata/pata_pdc202xx_old.ko
  134. AUTOLOAD:=$(call AutoLoad,41,pata_pdc202xx_old,1)
  135. endef
  136. define KernelPackage/ata-pdc202xx-old/description
  137. This option enables support for the Promise 20246, 20262, 20263,
  138. 20265 and 20267 adapters
  139. endef
  140. $(eval $(call KernelPackage,ata-pdc202xx-old))
  141. define KernelPackage/ata-piix
  142. TITLE:=Intel PIIX PATA/SATA support
  143. KCONFIG:=CONFIG_ATA_PIIX
  144. FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.ko
  145. AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
  146. $(call AddDepends/ata)
  147. endef
  148. define KernelPackage/ata-piix/description
  149. SATA support for Intel ICH5/6/7/8 series host controllers and
  150. PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers
  151. endef
  152. $(eval $(call KernelPackage,ata-piix))
  153. define KernelPackage/ata-sil
  154. TITLE:=Silicon Image SATA support
  155. KCONFIG:=CONFIG_SATA_SIL
  156. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.ko
  157. AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
  158. $(call AddDepends/ata)
  159. endef
  160. define KernelPackage/ata-sil/description
  161. Support for Silicon Image Serial ATA controllers
  162. endef
  163. $(eval $(call KernelPackage,ata-sil))
  164. define KernelPackage/ata-sil24
  165. TITLE:=Silicon Image 3124/3132 SATA support
  166. KCONFIG:=CONFIG_SATA_SIL24
  167. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.ko
  168. AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
  169. $(call AddDepends/ata)
  170. endef
  171. define KernelPackage/ata-sil24/description
  172. Support for Silicon Image 3124/3132 Serial ATA controllers
  173. endef
  174. $(eval $(call KernelPackage,ata-sil24))
  175. define KernelPackage/ata-via-sata
  176. TITLE:=VIA SATA support
  177. KCONFIG:=CONFIG_SATA_VIA
  178. FILES:=$(LINUX_DIR)/drivers/ata/sata_via.ko
  179. AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
  180. $(call AddDepends/ata)
  181. endef
  182. define KernelPackage/ata-via-sata/description
  183. This option enables support for VIA Serial ATA
  184. endef
  185. $(eval $(call KernelPackage,ata-via-sata))
  186. define KernelPackage/block2mtd
  187. SUBMENU:=$(BLOCK_MENU)
  188. TITLE:=Block device MTD emulation
  189. KCONFIG:=CONFIG_MTD_BLOCK2MTD
  190. FILES:=$(LINUX_DIR)/drivers/mtd/devices/block2mtd.ko
  191. endef
  192. $(eval $(call KernelPackage,block2mtd))
  193. define KernelPackage/dm
  194. SUBMENU:=$(BLOCK_MENU)
  195. TITLE:=Device Mapper
  196. DEPENDS:=+kmod-crypto-manager
  197. # All the "=n" are unnecessary, they're only there
  198. # to stop the config from asking the question.
  199. # MIRROR is M because I've needed it for pvmove.
  200. KCONFIG:= \
  201. CONFIG_BLK_DEV_MD=n \
  202. CONFIG_DM_DEBUG=n \
  203. CONFIG_DM_UEVENT=n \
  204. CONFIG_DM_DELAY=n \
  205. CONFIG_DM_MULTIPATH=n \
  206. CONFIG_DM_ZERO=n \
  207. CONFIG_DM_SNAPSHOT=n \
  208. CONFIG_DM_LOG_USERSPACE=n \
  209. CONFIG_MD=y \
  210. CONFIG_BLK_DEV_DM \
  211. CONFIG_DM_CRYPT \
  212. CONFIG_DM_MIRROR
  213. FILES:=$(LINUX_DIR)/drivers/md/dm-*.ko
  214. AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror dm-crypt)
  215. endef
  216. define KernelPackage/dm/description
  217. Kernel module necessary for LVM2 support
  218. endef
  219. $(eval $(call KernelPackage,dm))
  220. define KernelPackage/md-mod
  221. SUBMENU:=$(BLOCK_MENU)
  222. TITLE:=MD RAID
  223. KCONFIG:= \
  224. CONFIG_MD=y \
  225. CONFIG_BLK_DEV_MD=m \
  226. CONFIG_MD_AUTODETECT=y \
  227. CONFIG_MD_FAULTY=n
  228. FILES:=$(LINUX_DIR)/drivers/md/md-mod.ko
  229. AUTOLOAD:=$(call AutoLoad,27,md-mod)
  230. endef
  231. define KernelPackage/md-mod/description
  232. Kernel RAID md module (md-mod.ko).
  233. You will need to select at least one RAID level module below.
  234. endef
  235. $(eval $(call KernelPackage,md-mod))
  236. define KernelPackage/md/Depends
  237. SUBMENU:=$(BLOCK_MENU)
  238. DEPENDS:=kmod-md-mod $(1)
  239. endef
  240. define KernelPackage/md-linear
  241. $(call KernelPackage/md/Depends,)
  242. TITLE:=RAID Linear Module
  243. KCONFIG:=CONFIG_MD_LINEAR
  244. FILES:=$(LINUX_DIR)/drivers/md/linear.ko
  245. AUTOLOAD:=$(call AutoLoad,28,linear)
  246. endef
  247. define KernelPackage/md-linear/description
  248. RAID "Linear" or "Append" driver module (linear.ko)
  249. endef
  250. $(eval $(call KernelPackage,md-linear))
  251. define KernelPackage/md-raid0
  252. $(call KernelPackage/md/Depends,)
  253. TITLE:=RAID0 Module
  254. KCONFIG:=CONFIG_MD_RAID0
  255. FILES:=$(LINUX_DIR)/drivers/md/raid0.ko
  256. AUTOLOAD:=$(call AutoLoad,28,raid0)
  257. endef
  258. define KernelPackage/md-raid0/description
  259. RAID Level 0 (Striping) driver module (raid0.ko)
  260. endef
  261. $(eval $(call KernelPackage,md-raid0))
  262. define KernelPackage/md-raid1
  263. $(call KernelPackage/md/Depends,)
  264. TITLE:=RAID1 Module
  265. KCONFIG:=CONFIG_MD_RAID1
  266. FILES:=$(LINUX_DIR)/drivers/md/raid1.ko
  267. AUTOLOAD:=$(call AutoLoad,28,raid1)
  268. endef
  269. define KernelPackage/md-raid1/description
  270. RAID Level 1 (Mirroring) driver (raid1.ko)
  271. endef
  272. $(eval $(call KernelPackage,md-raid1))
  273. define KernelPackage/md-raid10
  274. $(call KernelPackage/md/Depends,)
  275. TITLE:=RAID10 Module
  276. KCONFIG:=CONFIG_MD_RAID10
  277. FILES:=$(LINUX_DIR)/drivers/md/raid10.ko
  278. AUTOLOAD:=$(call AutoLoad,28,raid10)
  279. endef
  280. define KernelPackage/md-raid10/description
  281. RAID Level 10 (Mirroring+Striping) driver module (raid10.ko)
  282. endef
  283. $(eval $(call KernelPackage,md-raid10))
  284. define KernelPackage/md-raid456
  285. $(call KernelPackage/md/Depends,+kmod-lib-raid6 +kmod-lib-xor)
  286. TITLE:=RAID Level 456 Driver
  287. KCONFIG:= \
  288. CONFIG_ASYNC_CORE \
  289. CONFIG_ASYNC_MEMCPY \
  290. CONFIG_ASYNC_XOR \
  291. CONFIG_ASYNC_PQ \
  292. CONFIG_ASYNC_RAID6_RECOV \
  293. CONFIG_ASYNC_RAID6_TEST=n \
  294. CONFIG_MD_RAID456 \
  295. CONFIG_MULTICORE_RAID456=n
  296. FILES:= \
  297. $(LINUX_DIR)/crypto/async_tx/async_tx.ko \
  298. $(LINUX_DIR)/crypto/async_tx/async_memcpy.ko \
  299. $(LINUX_DIR)/crypto/async_tx/async_xor.ko \
  300. $(LINUX_DIR)/crypto/async_tx/async_pq.ko \
  301. $(LINUX_DIR)/crypto/async_tx/async_raid6_recov.ko \
  302. $(LINUX_DIR)/drivers/md/raid456.ko
  303. AUTOLOAD:=$(call AutoLoad,28, async_tx async_memcpy async_xor async_pq async_raid6_recov raid456)
  304. endef
  305. define KernelPackage/md-raid456/description
  306. RAID Level 4,5,6 kernel module (raid456.ko)
  307. Includes the following modules required by
  308. raid456.ko:
  309. xor.ko
  310. async_tx.ko
  311. async_xor.ko
  312. async_memcpy.ko
  313. async_pq.ko
  314. async_raid5_recov.ko
  315. raid6_pq.ko
  316. endef
  317. $(eval $(call KernelPackage,md-raid456))
  318. define KernelPackage/md-multipath
  319. $(call KernelPackage/md/Depends,)
  320. TITLE:=MD Multipath Module
  321. KCONFIG:=CONFIG_MD_MULTIPATH
  322. FILES:=$(LINUX_DIR)/drivers/md/multipath.ko
  323. AUTOLOAD:=$(call AutoLoad,29,multipath)
  324. endef
  325. define KernelPackage/md-multipath/description
  326. Multipath driver module (multipath.ko)
  327. endef
  328. $(eval $(call KernelPackage,md-multipath))
  329. define KernelPackage/ide-core
  330. SUBMENU:=$(BLOCK_MENU)
  331. TITLE:=IDE (ATA/ATAPI) device support
  332. DEPENDS:=@PCI_SUPPORT
  333. KCONFIG:= \
  334. CONFIG_IDE \
  335. CONFIG_BLK_DEV_IDE \
  336. CONFIG_BLK_DEV_IDEDISK \
  337. CONFIG_IDE_GD \
  338. CONFIG_IDE_GD_ATA=y \
  339. CONFIG_IDE_GD_ATAPI=n \
  340. CONFIG_IDEPCI_PCIBUS_ORDER=y \
  341. CONFIG_BLK_DEV_IDEDMA_PCI=y \
  342. CONFIG_BLK_DEV_IDEPCI=y
  343. FILES:= \
  344. $(LINUX_DIR)/drivers/ide/ide-core.ko \
  345. $(LINUX_DIR)/drivers/ide/ide-gd_mod.ko
  346. endef
  347. define KernelPackage/ide-core/description
  348. Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
  349. Includes:
  350. - ide-core
  351. - ide-gd_mod
  352. endef
  353. $(eval $(call KernelPackage,ide-core))
  354. define AddDepends/ide
  355. SUBMENU:=$(BLOCK_MENU)
  356. DEPENDS+=kmod-ide-core $(1)
  357. endef
  358. define KernelPackage/ide-generic
  359. SUBMENU:=$(BLOCK_MENU)
  360. DEPENDS:=@PCI_SUPPORT
  361. TITLE:=Kernel support for generic PCI IDE chipsets
  362. KCONFIG:=CONFIG_BLK_DEV_GENERIC
  363. FILES:=$(LINUX_DIR)/drivers/ide/ide-pci-generic.ko
  364. AUTOLOAD:=$(call AutoLoad,30,ide-pci-generic,1)
  365. $(call AddDepends/ide)
  366. endef
  367. $(eval $(call KernelPackage,ide-generic))
  368. define KernelPackage/ide-generic-old
  369. SUBMENU:=$(BLOCK_MENU)
  370. TITLE:=Kernel support for generic (legacy) IDE chipsets
  371. KCONFIG:=CONFIG_IDE_GENERIC
  372. FILES:=$(LINUX_DIR)/drivers/ide/ide-generic.ko
  373. AUTOLOAD:=$(call AutoLoad,30,ide-generic,1)
  374. $(call AddDepends/ide)
  375. endef
  376. $(eval $(call KernelPackage,ide-generic-old))
  377. define KernelPackage/ide-aec62xx
  378. TITLE:=Acard AEC62xx IDE driver
  379. DEPENDS:=@PCI_SUPPORT
  380. KCONFIG:=CONFIG_BLK_DEV_AEC62XX
  381. FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.ko
  382. AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
  383. $(call AddDepends/ide)
  384. endef
  385. define KernelPackage/ide-aec62xx/description
  386. Support for Acard AEC62xx (Artop ATP8xx) IDE controllers
  387. endef
  388. $(eval $(call KernelPackage,ide-aec62xx,1))
  389. define KernelPackage/ide-pdc202xx
  390. TITLE:=Promise PDC202xx IDE driver
  391. DEPENDS:=@PCI_SUPPORT
  392. KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
  393. FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.ko
  394. AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
  395. $(call AddDepends/ide)
  396. endef
  397. define KernelPackage/ide-pdc202xx/description
  398. Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
  399. controllers.
  400. endef
  401. $(eval $(call KernelPackage,ide-pdc202xx))
  402. define KernelPackage/ide-it821x
  403. TITLE:=ITE IT821x IDE driver
  404. DEPENDS:=@PCI_SUPPORT
  405. KCONFIG:=CONFIG_BLK_DEV_IT821X
  406. FILES=$(LINUX_DIR)/drivers/ide/it821x.ko
  407. AUTOLOAD:=$(call AutoLoad,30,it821x,1)
  408. $(call AddDepends/ide)
  409. endef
  410. define KernelPackage/ide-it821x/description
  411. Kernel module for the ITE IDE821x IDE controllers
  412. endef
  413. $(eval $(call KernelPackage,ide-it821x))
  414. define KernelPackage/libsas
  415. SUBMENU:=$(BLOCK_MENU)
  416. DEPENDS:=@TARGET_x86
  417. TITLE:=SAS Domain Transport Attributes
  418. KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
  419. CONFIG_SCSI_SAS_ATTRS \
  420. CONFIG_SCSI_SAS_ATA=y \
  421. CONFIG_SCSI_SAS_HOST_SMP=y \
  422. CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
  423. FILES:= \
  424. $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.ko \
  425. $(LINUX_DIR)/drivers/scsi/libsas/libsas.ko
  426. AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
  427. endef
  428. define KernelPackage/libsas/description
  429. SAS Domain Transport Attributes support
  430. endef
  431. $(eval $(call KernelPackage,libsas,1))
  432. define KernelPackage/loop
  433. SUBMENU:=$(BLOCK_MENU)
  434. TITLE:=Loopback device support
  435. KCONFIG:= \
  436. CONFIG_BLK_DEV_LOOP \
  437. CONFIG_BLK_DEV_CRYPTOLOOP=n
  438. FILES:=$(LINUX_DIR)/drivers/block/loop.ko
  439. AUTOLOAD:=$(call AutoLoad,30,loop)
  440. endef
  441. define KernelPackage/loop/description
  442. Kernel module for loopback device support
  443. endef
  444. $(eval $(call KernelPackage,loop))
  445. define KernelPackage/mvsas
  446. SUBMENU:=$(BLOCK_MENU)
  447. TITLE:=Marvell 88SE6440 SAS/SATA driver
  448. DEPENDS:=@TARGET_x86 +kmod-libsas
  449. KCONFIG:= \
  450. CONFIG_SCSI_MVSAS \
  451. CONFIG_SCSI_MVSAS_TASKLET=n
  452. FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.ko
  453. AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
  454. endef
  455. define KernelPackage/mvsas/description
  456. Kernel support for the Marvell SAS SCSI adapters
  457. endef
  458. $(eval $(call KernelPackage,mvsas))
  459. define KernelPackage/nbd
  460. SUBMENU:=$(BLOCK_MENU)
  461. TITLE:=Network block device support
  462. KCONFIG:=CONFIG_BLK_DEV_NBD
  463. FILES:=$(LINUX_DIR)/drivers/block/nbd.ko
  464. AUTOLOAD:=$(call AutoLoad,30,nbd)
  465. endef
  466. define KernelPackage/nbd/description
  467. Kernel module for network block device support
  468. endef
  469. $(eval $(call KernelPackage,nbd))
  470. define KernelPackage/scsi-core
  471. SUBMENU:=$(BLOCK_MENU)
  472. TITLE:=SCSI device support
  473. KCONFIG:= \
  474. CONFIG_SCSI \
  475. CONFIG_BLK_DEV_SD
  476. FILES:= \
  477. $(LINUX_DIR)/drivers/scsi/scsi_mod.ko \
  478. $(LINUX_DIR)/drivers/scsi/sd_mod.ko
  479. AUTOLOAD:=$(call AutoLoad,40,scsi_mod sd_mod,1)
  480. endef
  481. $(eval $(call KernelPackage,scsi-core))
  482. define KernelPackage/scsi-generic
  483. SUBMENU:=$(BLOCK_MENU)
  484. TITLE:=Kernel support for SCSI generic
  485. DEPENDS:=+kmod-scsi-core
  486. KCONFIG:= \
  487. CONFIG_CHR_DEV_SG
  488. FILES:= \
  489. $(LINUX_DIR)/drivers/scsi/sg.ko
  490. AUTOLOAD:=$(call AutoLoad,65,sg)
  491. endef
  492. $(eval $(call KernelPackage,scsi-generic))
  493. define KernelPackage/scsi-cdrom
  494. SUBMENU:=$(BLOCK_MENU)
  495. TITLE:=Kernel support for CD / DVD drives
  496. DEPENDS:=+kmod-scsi-core
  497. KCONFIG:= \
  498. CONFIG_BLK_DEV_SR \
  499. CONFIG_BLK_DEV_SR_VENDOR=n
  500. FILES:= \
  501. $(LINUX_DIR)/drivers/cdrom/cdrom.ko \
  502. $(LINUX_DIR)/drivers/scsi/sr_mod.ko
  503. AUTOLOAD:=$(call AutoLoad,45,sr_mod)
  504. endef
  505. $(eval $(call KernelPackage,scsi-cdrom))