block.mk 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  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||!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_IDE_GENERIC \
  151. CONFIG_BLK_DEV_GENERIC \
  152. CONFIG_BLK_DEV_IDE \
  153. CONFIG_BLK_DEV_IDEDISK \
  154. CONFIG_IDE_GD \
  155. CONFIG_IDE_GD_ATA=y \
  156. CONFIG_IDE_GD_ATAPI=n \
  157. CONFIG_BLK_DEV_IDEDMA_PCI=y \
  158. CONFIG_BLK_DEV_IDEPCI=y
  159. FILES:= \
  160. $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
  161. $(LINUX_DIR)/drivers/ide/ide-gd_mod.$(LINUX_KMOD_SUFFIX)
  162. AUTOLOAD:= \
  163. $(call AutoLoad,20,ide-core,1) \
  164. $(call AutoLoad,40,ide-gd_mod,1)
  165. endef
  166. define KernelPackage/ide-core/2.4
  167. FILES:= \
  168. $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
  169. $(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX) \
  170. $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
  171. AUTOLOAD:= \
  172. $(call AutoLoad,20,ide-core,1) \
  173. $(call AutoLoad,35,ide-detect,1) \
  174. $(call AutoLoad,40,ide-disk,1)
  175. endef
  176. ifneq ($(CONFIG_arm)$(CONFIG_powerpc),y)
  177. define KernelPackage/ide-core/2.6
  178. FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
  179. AUTOLOAD+=$(call AutoLoad,30,ide-generic,1)
  180. endef
  181. endif
  182. define KernelPackage/ide-core/description
  183. Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
  184. Includes:
  185. - ide-core
  186. - ide-detect
  187. - ide-gd_mod (or ide-disk)
  188. endef
  189. $(eval $(call KernelPackage,ide-core))
  190. define KernelPackage/ide/Depends
  191. SUBMENU:=$(BLOCK_MENU)
  192. DEPENDS:=kmod-ide-core $(1)
  193. endef
  194. define KernelPackage/ide-aec62xx
  195. $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
  196. TITLE:=Acard AEC62xx IDE driver
  197. KCONFIG:=CONFIG_BLK_DEV_AEC62XX
  198. FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.$(LINUX_KMOD_SUFFIX)
  199. AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
  200. endef
  201. define KernelPackage/ide-aec62xx/2.4
  202. FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
  203. endef
  204. define KernelPackage/ide-aec62xx/description
  205. Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
  206. endef
  207. $(eval $(call KernelPackage,ide-aec62xx,1))
  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,1)
  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,1)
  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. DEPENDS:=@!TARGET_x86
  238. KCONFIG:= \
  239. CONFIG_SCSI \
  240. CONFIG_BLK_DEV_SD
  241. FILES:= \
  242. $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX)) \
  243. $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
  244. AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
  245. endef
  246. $(eval $(call KernelPackage,scsi-core))
  247. define KernelPackage/scsi-generic
  248. SUBMENU:=$(BLOCK_MENU)
  249. TITLE:=Kernel support for SCSI generic
  250. KCONFIG:= \
  251. CONFIG_CHR_DEV_SG
  252. FILES:= \
  253. $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
  254. AUTOLOAD:=$(call AutoLoad,65,sg)
  255. endef
  256. $(eval $(call KernelPackage,scsi-generic))
  257. define KernelPackage/loop
  258. SUBMENU:=$(BLOCK_MENU)
  259. TITLE:=Loopback device support
  260. KCONFIG:= \
  261. CONFIG_BLK_DEV_LOOP \
  262. CONFIG_BLK_DEV_CRYPTOLOOP=n
  263. FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
  264. AUTOLOAD:=$(call AutoLoad,30,loop)
  265. endef
  266. define KernelPackage/loop/description
  267. Kernel module for loopback device support
  268. endef
  269. $(eval $(call KernelPackage,loop))
  270. define KernelPackage/nbd
  271. SUBMENU:=$(BLOCK_MENU)
  272. TITLE:=Network block device support
  273. KCONFIG:=CONFIG_BLK_DEV_NBD
  274. FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
  275. AUTOLOAD:=$(call AutoLoad,30,nbd)
  276. endef
  277. define KernelPackage/nbd/description
  278. Kernel module for network block device support
  279. endef
  280. $(eval $(call KernelPackage,nbd))
  281. define KernelPackage/dm
  282. SUBMENU:=$(BLOCK_MENU)
  283. TITLE:=Device Mapper
  284. # All the "=n" are unnecessary, they're only there
  285. # to stop the config from asking the question.
  286. # MIRROR is M because I've needed it for pvmove.
  287. KCONFIG:= \
  288. CONFIG_BLK_DEV_MD=n \
  289. CONFIG_DM_DEBUG=n \
  290. CONFIG_DM_CRYPT=n \
  291. CONFIG_DM_UEVENT=n \
  292. CONFIG_DM_DELAY=n \
  293. CONFIG_DM_MULTIPATH=n \
  294. CONFIG_DM_ZERO=n \
  295. CONFIG_DM_SNAPSHOT=n \
  296. CONFIG_DM_LOG_USERSPACE=n \
  297. CONFIG_MD=y \
  298. CONFIG_BLK_DEV_DM \
  299. CONFIG_DM_MIRROR
  300. FILES:=$(LINUX_DIR)/drivers/md/dm-*.$(LINUX_KMOD_SUFFIX)
  301. AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-region-hash dm-mirror dm-log)
  302. endef
  303. define KernelPackage/dm/description
  304. Kernel module necessary for LVM2 support
  305. endef
  306. $(eval $(call KernelPackage,dm))
  307. define KernelPackage/pata-rb153-cf
  308. $(call KernelPackage/ata/Depends,@TARGET_adm5120_router_le)
  309. TITLE:=RouterBOARD 153 CF Slot support
  310. KCONFIG:=CONFIG_PATA_RB153_CF
  311. FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
  312. AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf,1)
  313. endef
  314. define KernelPackage/pata-rb153-cf/description
  315. Kernel support for the RouterBoard 153 CF slot.
  316. endef
  317. $(eval $(call KernelPackage,pata-rb153-cf,1))
  318. define KernelPackage/aoe
  319. SUBMENU:=$(BLOCK_MENU)
  320. TITLE:=ATA over Ethernet support
  321. KCONFIG:=CONFIG_ATA_OVER_ETH
  322. FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.$(LINUX_KMOD_SUFFIX)
  323. AUTOLOAD:=$(call AutoLoad,30,aoe)
  324. endef
  325. define KernelPackage/aoe/description
  326. Kernel support for ATA over Ethernet
  327. endef
  328. $(eval $(call KernelPackage,aoe))
  329. define KernelPackage/ps3vram
  330. SUBMENU:=$(BLOCK_MENU)
  331. TITLE:=PS3 Video RAM Storage Driver
  332. DEPENDS:=@TARGET_ps3||TARGET_ps3chk
  333. KCONFIG:=CONFIG_PS3_VRAM
  334. FILES:=$(LINUX_DIR)/drivers/block/ps3vram.$(LINUX_KMOD_SUFFIX)
  335. AUTOLOAD:=$(call AutoLoad,01,ps3vram)
  336. endef
  337. define KernelPackage/ps3vram/description
  338. Kernel support for PS3 Video RAM Storage
  339. endef
  340. $(eval $(call KernelPackage,ps3vram))
  341. define KernelPackage/axonram
  342. SUBMENU:=$(BLOCK_MENU)
  343. TITLE:=Axon DDR2 memory device driver
  344. DEPENDS:=@TARGET_pxcab
  345. KCONFIG:=CONFIG_AXON_RAM
  346. FILES:=$(LINUX_DIR)/arch/powerpc/sysdev/axonram.$(LINUX_KMOD_SUFFIX)
  347. AUTOLOAD:=$(call AutoLoad,01,axonram)
  348. endef
  349. define KernelPackage/axonram/description
  350. Kernel support for Axon DDR2 memory device
  351. endef
  352. $(eval $(call KernelPackage,axonram))
  353. define KernelPackage/libsas
  354. SUBMENU:=$(BLOCK_MENU)
  355. TITLE:=SAS Domain Transport Attributes
  356. DEPENDS:=@TARGET_x86
  357. KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
  358. CONFIG_SCSI_SAS_ATTRS \
  359. CONFIG_SCSI_SAS_ATA=y \
  360. CONFIG_SCSI_SAS_HOST_SMP=y \
  361. CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
  362. FILES:= \
  363. $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.$(LINUX_KMOD_SUFFIX) \
  364. $(LINUX_DIR)/drivers/scsi/libsas/libsas.$(LINUX_KMOD_SUFFIX)
  365. AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
  366. endef
  367. define KernelPackage/libsas/description
  368. SAS Domain Transport Attributes support.
  369. endef
  370. $(eval $(call KernelPackage,libsas,1))
  371. define KernelPackage/mvsas
  372. SUBMENU:=$(BLOCK_MENU)
  373. TITLE:=Marvell 88SE6440 SAS/SATA driver
  374. DEPENDS:=@TARGET_x86 +kmod-libsas
  375. KCONFIG:=CONFIG_SCSI_MVSAS
  376. FILES:=$(LINUX_DIR)/drivers/scsi/mvsas.$(LINUX_KMOD_SUFFIX)
  377. AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
  378. endef
  379. define KernelPackage/mvsas/description
  380. Kernel support for the Marvell SAS SCSI adapters
  381. endef
  382. $(eval $(call KernelPackage,mvsas))