block.mk 16 KB

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