block.mk 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. #
  2. # Copyright (C) 2006-2010 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/ata-core
  9. SUBMENU:=$(BLOCK_MENU)
  10. TITLE:=Serial and Parallel ATA support
  11. DEPENDS:=@PCI_SUPPORT @LINUX_2_6 +kmod-scsi-core @(!TARGET_ubicom32||!TARGET_etrax||!TARGET_x86)
  12. KCONFIG:=CONFIG_ATA
  13. FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
  14. AUTOLOAD:=$(call AutoLoad,21,libata,1)
  15. endef
  16. $(eval $(call KernelPackage,ata-core))
  17. define KernelPackage/ata/Depends
  18. SUBMENU:=$(BLOCK_MENU)
  19. DEPENDS:=!TARGET_x86:kmod-ata-core $(1)
  20. endef
  21. define KernelPackage/ata-ahci
  22. $(call KernelPackage/ata/Depends,)
  23. TITLE:=AHCI Serial ATA support
  24. KCONFIG:=CONFIG_SATA_AHCI
  25. FILES:=$(LINUX_DIR)/drivers/ata/ahci.$(LINUX_KMOD_SUFFIX)
  26. AUTOLOAD:=$(call AutoLoad,41,ahci,1)
  27. endef
  28. define KernelPackage/ata-ahci/description
  29. Support for AHCI Serial ATA controllers.
  30. endef
  31. $(eval $(call KernelPackage,ata-ahci))
  32. define KernelPackage/ata-sil
  33. $(call KernelPackage/ata/Depends,)
  34. TITLE:=Silicon Image SATA support
  35. KCONFIG:=CONFIG_SATA_SIL
  36. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.$(LINUX_KMOD_SUFFIX)
  37. AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
  38. endef
  39. define KernelPackage/ata-sil/description
  40. Support for Silicon Image Serial ATA controllers.
  41. endef
  42. $(eval $(call KernelPackage,ata-sil))
  43. define KernelPackage/ata-sil24
  44. $(call KernelPackage/ata/Depends,)
  45. TITLE:=Silicon Image 3124/3132 SATA support
  46. KCONFIG:=CONFIG_SATA_SIL24
  47. FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.$(LINUX_KMOD_SUFFIX)
  48. AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
  49. endef
  50. define KernelPackage/ata-sil24/description
  51. Support for Silicon Image 3124/3132 Serial ATA controllers.
  52. endef
  53. $(eval $(call KernelPackage,ata-sil24))
  54. define KernelPackage/ata-artop
  55. $(call KernelPackage/ata/Depends,)
  56. TITLE:=ARTOP 6210/6260 PATA support
  57. KCONFIG:=CONFIG_PATA_ARTOP
  58. FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
  59. AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
  60. endef
  61. define KernelPackage/ata-artop/description
  62. PATA support for ARTOP 6210/6260 host controllers.
  63. endef
  64. $(eval $(call KernelPackage,ata-artop))
  65. define KernelPackage/ata-octeon-cf
  66. $(call KernelPackage/ata/Depends,@TARGET_octeon)
  67. TITLE:=Octeon Compact Flash support
  68. KCONFIG:=CONFIG_PATA_OCTEON_CF
  69. FILES:=$(LINUX_DIR)/drivers/ata/pata_octeon_cf.$(LINUX_KMOD_SUFFIX)
  70. AUTOLOAD:=$(call AutoLoad,41,pata_octeon_cf,1)
  71. endef
  72. define KernelPackage/ata-octeon-cf/description
  73. Octeon Compact Flash support.
  74. endef
  75. $(eval $(call KernelPackage,ata-octeon-cf))
  76. define KernelPackage/ata-ixp4xx-cf
  77. $(call KernelPackage/ata/Depends,@TARGET_ixp4xx)
  78. TITLE:=IXP4XX Compact Flash support
  79. KCONFIG:=CONFIG_PATA_IXP4XX_CF
  80. FILES:=$(LINUX_DIR)/drivers/ata/pata_ixp4xx_cf.$(LINUX_KMOD_SUFFIX)
  81. AUTOLOAD:=$(call AutoLoad,41,pata_ixp4xx_cf,1)
  82. endef
  83. define KernelPackage/ata-ixp4xx-cf/description
  84. IXP4XX Compact Flash support.
  85. endef
  86. $(eval $(call KernelPackage,ata-ixp4xx-cf))
  87. define KernelPackage/ata-rb532-cf
  88. $(call KernelPackage/ata/Depends,@TARGET_rb532 @BROKEN)
  89. TITLE:=RB532 Compact Flash support
  90. KCONFIG:= \
  91. CONFIG_PATA_PLATFORM \
  92. CONFIG_PATA_RB532
  93. FILES:=\
  94. $(LINUX_DIR)/drivers/ata/pata_platform.$(LINUX_KMOD_SUFFIX) \
  95. $(LINUX_DIR)/drivers/ata/pata_rb532_cf.$(LINUX_KMOD_SUFFIX)
  96. AUTOLOAD:=$(call AutoLoad,41,pata_platform pata_rb532_cf,1)
  97. endef
  98. define KernelPackage/ata-rb532-cf/description
  99. RB532 Compact Flash support.
  100. endef
  101. $(eval $(call KernelPackage,ata-rb532-cf))
  102. define KernelPackage/ata-nvidia-sata
  103. $(call KernelPackage/ata/Depends,)
  104. TITLE:=Nvidia Serial ATA support
  105. KCONFIG:=CONFIG_SATA_NV
  106. FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.$(LINUX_KMOD_SUFFIX)
  107. AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
  108. endef
  109. $(eval $(call KernelPackage,ata-nvidia-sata))
  110. define KernelPackage/ata-magicbox-cf
  111. $(call KernelPackage/ata/Depends,@TARGET_ppc40x)
  112. TITLE:=Magicbox v2/OpenRB Compact flash support
  113. KCONFIG:=CONFIG_PATA_MAGICBOX_CF
  114. FILES:=$(LINUX_DIR)/drivers/ata/pata_magicbox_cf.$(LINUX_KMOD_SUFFIX)
  115. AUTOLOAD:=$(call AutoLoad,41,pata_magicbox_cf,1)
  116. endef
  117. define KernelPackage/ata-magicbox-cf/description
  118. Support for Magicbox v2/OpenRB on-board CF slot.
  119. endef
  120. $(eval $(call KernelPackage,ata-magicbox-cf))
  121. define KernelPackage/ata-piix
  122. $(call KernelPackage/ata/Depends,)
  123. TITLE:=Intel PIIX PATA/SATA support
  124. KCONFIG:=CONFIG_ATA_PIIX
  125. FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
  126. AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
  127. endef
  128. define KernelPackage/ata-piix/description
  129. SATA support for Intel ICH5/6/7/8 series host controllers and
  130. PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers.
  131. endef
  132. $(eval $(call KernelPackage,ata-piix))
  133. define KernelPackage/ata-via-sata
  134. $(call KernelPackage/ata/Depends,)
  135. TITLE:=VIA SATA support
  136. KCONFIG:=CONFIG_SATA_VIA
  137. FILES:=$(LINUX_DIR)/drivers/ata/sata_via.$(LINUX_KMOD_SUFFIX)
  138. AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
  139. endef
  140. define KernelPackage/ata-via-sata/description
  141. This option enables support for VIA Serial ATA.
  142. endef
  143. $(eval $(call KernelPackage,ata-via-sata))
  144. define KernelPackage/ide-core
  145. SUBMENU:=$(BLOCK_MENU)
  146. TITLE:=IDE (ATA/ATAPI) device support
  147. DEPENDS:=@PCI_SUPPORT
  148. KCONFIG:= \
  149. CONFIG_IDE \
  150. CONFIG_BLK_DEV_IDE \
  151. CONFIG_BLK_DEV_IDEDISK \
  152. CONFIG_IDE_GD \
  153. CONFIG_IDE_GD_ATA=y \
  154. CONFIG_IDE_GD_ATAPI=n \
  155. CONFIG_BLK_DEV_IDEDMA_PCI=y \
  156. CONFIG_BLK_DEV_IDEPCI=y
  157. FILES:= \
  158. $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX)
  159. AUTOLOAD:= \
  160. $(call AutoLoad,20,ide-core,1)
  161. endef
  162. define KernelPackage/ide-core/2.4
  163. FILES+= \
  164. $(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX) \
  165. $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
  166. AUTOLOAD+= \
  167. $(call AutoLoad,35,ide-detect,1) \
  168. $(call AutoLoad,40,ide-disk,1)
  169. endef
  170. define KernelPackage/ide-core/2.6
  171. FILES+= \
  172. $(LINUX_DIR)/drivers/ide/ide-gd_mod.$(LINUX_KMOD_SUFFIX)
  173. AUTOLOAD+= \
  174. $(call AutoLoad,40,ide-gd_mod,1)
  175. endef
  176. define KernelPackage/ide-core/description
  177. Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
  178. Includes:
  179. - ide-core
  180. - ide-detect
  181. - ide-gd_mod (or ide-disk)
  182. endef
  183. $(eval $(call KernelPackage,ide-core))
  184. define KernelPackage/ide/Depends
  185. SUBMENU:=$(BLOCK_MENU)
  186. DEPENDS:=kmod-ide-core $(1)
  187. endef
  188. define KernelPackage/ide-generic
  189. $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
  190. SUBMENU:=$(BLOCK_MENU)
  191. TITLE:=Kernel support for generic PCI IDE chipsets
  192. KCONFIG:=CONFIG_BLK_DEV_GENERIC
  193. endef
  194. define KernelPackage/ide-generic/2.4
  195. FILES+= \
  196. $(LINUX_DIR)/drivers/ide/pci/generic.$(LINUX_KMOD_SUFFIX)
  197. AUTOLOAD+= \
  198. $(call AutoLoad,30,generic,1)
  199. endef
  200. define KernelPackage/ide-generic/2.6
  201. FILES+= \
  202. $(LINUX_DIR)/drivers/ide/ide-pci-generic.$(LINUX_KMOD_SUFFIX)
  203. AUTOLOAD+= \
  204. $(call AutoLoad,30,ide-pci-generic,1)
  205. endef
  206. $(eval $(call KernelPackage,ide-generic))
  207. define KernelPackage/ide-generic-old
  208. $(call KernelPackage/ide/Depends,@LINUX_2_6)
  209. SUBMENU:=$(BLOCK_MENU)
  210. TITLE:=Kernel support for generic (legacy) IDE chipsets
  211. KCONFIG:=CONFIG_IDE_GENERIC
  212. FILES:=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
  213. AUTOLOAD:=$(call AutoLoad,30,ide-generic,1)
  214. endef
  215. $(eval $(call KernelPackage,ide-generic-old))
  216. define KernelPackage/ide-aec62xx
  217. $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
  218. TITLE:=Acard AEC62xx IDE driver
  219. KCONFIG:=CONFIG_BLK_DEV_AEC62XX
  220. FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.$(LINUX_KMOD_SUFFIX)
  221. AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
  222. endef
  223. define KernelPackage/ide-aec62xx/2.4
  224. FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
  225. endef
  226. define KernelPackage/ide-aec62xx/description
  227. Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
  228. endef
  229. $(eval $(call KernelPackage,ide-aec62xx,1))
  230. define KernelPackage/ide-pdc202xx
  231. $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
  232. TITLE:=Promise PDC202xx IDE driver
  233. KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
  234. FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
  235. AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
  236. endef
  237. define KernelPackage/ide-pdc202xx/2.4
  238. FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
  239. endef
  240. define KernelPackage/ide-pdc202xx/description
  241. Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
  242. controllers.
  243. endef
  244. $(eval $(call KernelPackage,ide-pdc202xx))
  245. define KernelPackage/ide-it821x
  246. $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
  247. TITLE:=ITE IT821x IDE driver
  248. KCONFIG:=CONFIG_BLK_DEV_IT821X
  249. FILES=$(LINUX_DIR)/drivers/ide/it821x.$(LINUX_KMOD_SUFFIX)
  250. AUTOLOAD:=$(call AutoLoad,30,it821x,1)
  251. endef
  252. define KernelPackage/ide-it821x/description
  253. Kernel module for the ITE IDE821x IDE controllers.
  254. endef
  255. $(eval $(call KernelPackage,ide-it821x))
  256. define KernelPackage/scsi-core
  257. SUBMENU:=$(BLOCK_MENU)
  258. TITLE:=SCSI device support
  259. DEPENDS:=@!TARGET_x86
  260. KCONFIG:= \
  261. CONFIG_SCSI \
  262. CONFIG_BLK_DEV_SD
  263. FILES:= \
  264. $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX)) \
  265. $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
  266. AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
  267. endef
  268. $(eval $(call KernelPackage,scsi-core))
  269. define KernelPackage/scsi-generic
  270. SUBMENU:=$(BLOCK_MENU)
  271. TITLE:=Kernel support for SCSI generic
  272. KCONFIG:= \
  273. CONFIG_CHR_DEV_SG
  274. FILES:= \
  275. $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
  276. AUTOLOAD:=$(call AutoLoad,65,sg)
  277. endef
  278. $(eval $(call KernelPackage,scsi-generic))
  279. define KernelPackage/loop
  280. SUBMENU:=$(BLOCK_MENU)
  281. TITLE:=Loopback device support
  282. KCONFIG:= \
  283. CONFIG_BLK_DEV_LOOP \
  284. CONFIG_BLK_DEV_CRYPTOLOOP=n
  285. FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
  286. AUTOLOAD:=$(call AutoLoad,30,loop)
  287. endef
  288. define KernelPackage/loop/description
  289. Kernel module for loopback device support
  290. endef
  291. $(eval $(call KernelPackage,loop))
  292. define KernelPackage/nbd
  293. SUBMENU:=$(BLOCK_MENU)
  294. TITLE:=Network block device support
  295. KCONFIG:=CONFIG_BLK_DEV_NBD
  296. FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
  297. AUTOLOAD:=$(call AutoLoad,30,nbd)
  298. endef
  299. define KernelPackage/nbd/description
  300. Kernel module for network block device support
  301. endef
  302. $(eval $(call KernelPackage,nbd))
  303. define KernelPackage/dm
  304. SUBMENU:=$(BLOCK_MENU)
  305. TITLE:=Device Mapper
  306. # All the "=n" are unnecessary, they're only there
  307. # to stop the config from asking the question.
  308. # MIRROR is M because I've needed it for pvmove.
  309. KCONFIG:= \
  310. CONFIG_BLK_DEV_MD=n \
  311. CONFIG_DM_DEBUG=n \
  312. CONFIG_DM_CRYPT=n \
  313. CONFIG_DM_UEVENT=n \
  314. CONFIG_DM_DELAY=n \
  315. CONFIG_DM_MULTIPATH=n \
  316. CONFIG_DM_ZERO=n \
  317. CONFIG_DM_SNAPSHOT=n \
  318. CONFIG_DM_LOG_USERSPACE=n \
  319. CONFIG_MD=y \
  320. CONFIG_BLK_DEV_DM \
  321. CONFIG_DM_MIRROR
  322. FILES:=$(LINUX_DIR)/drivers/md/dm-*.$(LINUX_KMOD_SUFFIX)
  323. AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror)
  324. endef
  325. define KernelPackage/dm/description
  326. Kernel module necessary for LVM2 support
  327. endef
  328. $(eval $(call KernelPackage,dm))
  329. define KernelPackage/pata-rb153-cf
  330. $(call KernelPackage/ata/Depends,@TARGET_adm5120_router_le)
  331. TITLE:=RouterBOARD 153 CF Slot support
  332. KCONFIG:=CONFIG_PATA_RB153_CF
  333. FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
  334. AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf,1)
  335. endef
  336. define KernelPackage/pata-rb153-cf/description
  337. Kernel support for the RouterBoard 153 CF slot.
  338. endef
  339. $(eval $(call KernelPackage,pata-rb153-cf,1))
  340. define KernelPackage/aoe
  341. SUBMENU:=$(BLOCK_MENU)
  342. TITLE:=ATA over Ethernet support
  343. KCONFIG:=CONFIG_ATA_OVER_ETH
  344. FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.$(LINUX_KMOD_SUFFIX)
  345. AUTOLOAD:=$(call AutoLoad,30,aoe)
  346. endef
  347. define KernelPackage/aoe/description
  348. Kernel support for ATA over Ethernet
  349. endef
  350. $(eval $(call KernelPackage,aoe))
  351. define KernelPackage/ps3vram
  352. SUBMENU:=$(BLOCK_MENU)
  353. TITLE:=PS3 Video RAM Storage Driver
  354. DEPENDS:=@TARGET_ps3||TARGET_ps3chk
  355. KCONFIG:=CONFIG_PS3_VRAM
  356. FILES:=$(LINUX_DIR)/drivers/block/ps3vram.$(LINUX_KMOD_SUFFIX)
  357. AUTOLOAD:=$(call AutoLoad,01,ps3vram)
  358. endef
  359. define KernelPackage/ps3vram/description
  360. Kernel support for PS3 Video RAM Storage
  361. endef
  362. $(eval $(call KernelPackage,ps3vram))
  363. define KernelPackage/axonram
  364. SUBMENU:=$(BLOCK_MENU)
  365. TITLE:=Axon DDR2 memory device driver
  366. DEPENDS:=@TARGET_pxcab
  367. KCONFIG:=CONFIG_AXON_RAM
  368. FILES:=$(LINUX_DIR)/arch/powerpc/sysdev/axonram.$(LINUX_KMOD_SUFFIX)
  369. AUTOLOAD:=$(call AutoLoad,01,axonram)
  370. endef
  371. define KernelPackage/axonram/description
  372. Kernel support for Axon DDR2 memory device
  373. endef
  374. $(eval $(call KernelPackage,axonram))
  375. define KernelPackage/libsas
  376. SUBMENU:=$(BLOCK_MENU)
  377. TITLE:=SAS Domain Transport Attributes
  378. DEPENDS:=@TARGET_x86
  379. KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
  380. CONFIG_SCSI_SAS_ATTRS \
  381. CONFIG_SCSI_SAS_ATA=y \
  382. CONFIG_SCSI_SAS_HOST_SMP=y \
  383. CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
  384. FILES:= \
  385. $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.$(LINUX_KMOD_SUFFIX) \
  386. $(LINUX_DIR)/drivers/scsi/libsas/libsas.$(LINUX_KMOD_SUFFIX)
  387. AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
  388. endef
  389. define KernelPackage/libsas/description
  390. SAS Domain Transport Attributes support.
  391. endef
  392. $(eval $(call KernelPackage,libsas,1))
  393. define KernelPackage/mvsas
  394. SUBMENU:=$(BLOCK_MENU)
  395. TITLE:=Marvell 88SE6440 SAS/SATA driver
  396. DEPENDS:=@TARGET_x86 +kmod-libsas
  397. KCONFIG:=CONFIG_SCSI_MVSAS
  398. ifneq ($(CONFIG_LINUX_2_6_25)$(CONFIG_LINUX_2_6_30),)
  399. FILES:=$(LINUX_DIR)/drivers/scsi/mvsas.$(LINUX_KMOD_SUFFIX)
  400. else
  401. FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.$(LINUX_KMOD_SUFFIX)
  402. endif
  403. AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
  404. endef
  405. define KernelPackage/mvsas/description
  406. Kernel support for the Marvell SAS SCSI adapters
  407. endef
  408. $(eval $(call KernelPackage,mvsas))