block.mk 12 KB

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