block.mk 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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. ifeq ($(CONFIG_PCI_SUPPORT),y)
  179. FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX) \
  180. $(LINUX_DIR)/drivers/ide/ide-pci-generic.$(LINUX_KMOD_SUFFIX)
  181. AUTOLOAD+=$(call AutoLoad,30,ide-generic ide-pci-generic,1)
  182. else
  183. FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
  184. AUTOLOAD+=$(call AutoLoad,30,ide-generic,1)
  185. endif
  186. endef
  187. endif
  188. define KernelPackage/ide-core/description
  189. Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
  190. Includes:
  191. - ide-core
  192. - ide-detect
  193. - ide-gd_mod (or ide-disk)
  194. endef
  195. $(eval $(call KernelPackage,ide-core))
  196. define KernelPackage/ide/Depends
  197. SUBMENU:=$(BLOCK_MENU)
  198. DEPENDS:=kmod-ide-core $(1)
  199. endef
  200. define KernelPackage/ide-aec62xx
  201. $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
  202. TITLE:=Acard AEC62xx IDE driver
  203. KCONFIG:=CONFIG_BLK_DEV_AEC62XX
  204. FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.$(LINUX_KMOD_SUFFIX)
  205. AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
  206. endef
  207. define KernelPackage/ide-aec62xx/2.4
  208. FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
  209. endef
  210. define KernelPackage/ide-aec62xx/description
  211. Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
  212. endef
  213. $(eval $(call KernelPackage,ide-aec62xx,1))
  214. define KernelPackage/ide-pdc202xx
  215. $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
  216. TITLE:=Promise PDC202xx IDE driver
  217. KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
  218. FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
  219. AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
  220. endef
  221. define KernelPackage/ide-pdc202xx/2.4
  222. FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
  223. endef
  224. define KernelPackage/ide-pdc202xx/description
  225. Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
  226. controllers.
  227. endef
  228. $(eval $(call KernelPackage,ide-pdc202xx))
  229. define KernelPackage/ide-it821x
  230. $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
  231. TITLE:=ITE IT821x IDE driver
  232. KCONFIG:=CONFIG_BLK_DEV_IT821X
  233. FILES=$(LINUX_DIR)/drivers/ide/it821x.$(LINUX_KMOD_SUFFIX)
  234. AUTOLOAD:=$(call AutoLoad,30,it821x,1)
  235. endef
  236. define KernelPackage/ide-it821x/description
  237. Kernel module for the ITE IDE821x IDE controllers.
  238. endef
  239. $(eval $(call KernelPackage,ide-it821x))
  240. define KernelPackage/scsi-core
  241. SUBMENU:=$(BLOCK_MENU)
  242. TITLE:=SCSI device support
  243. DEPENDS:=@!TARGET_x86
  244. KCONFIG:= \
  245. CONFIG_SCSI \
  246. CONFIG_BLK_DEV_SD
  247. FILES:= \
  248. $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX)) \
  249. $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
  250. AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
  251. endef
  252. $(eval $(call KernelPackage,scsi-core))
  253. define KernelPackage/scsi-generic
  254. SUBMENU:=$(BLOCK_MENU)
  255. TITLE:=Kernel support for SCSI generic
  256. KCONFIG:= \
  257. CONFIG_CHR_DEV_SG
  258. FILES:= \
  259. $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
  260. AUTOLOAD:=$(call AutoLoad,65,sg)
  261. endef
  262. $(eval $(call KernelPackage,scsi-generic))
  263. define KernelPackage/loop
  264. SUBMENU:=$(BLOCK_MENU)
  265. TITLE:=Loopback device support
  266. KCONFIG:= \
  267. CONFIG_BLK_DEV_LOOP \
  268. CONFIG_BLK_DEV_CRYPTOLOOP=n
  269. FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
  270. AUTOLOAD:=$(call AutoLoad,30,loop)
  271. endef
  272. define KernelPackage/loop/description
  273. Kernel module for loopback device support
  274. endef
  275. $(eval $(call KernelPackage,loop))
  276. define KernelPackage/nbd
  277. SUBMENU:=$(BLOCK_MENU)
  278. TITLE:=Network block device support
  279. KCONFIG:=CONFIG_BLK_DEV_NBD
  280. FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
  281. AUTOLOAD:=$(call AutoLoad,30,nbd)
  282. endef
  283. define KernelPackage/nbd/description
  284. Kernel module for network block device support
  285. endef
  286. $(eval $(call KernelPackage,nbd))
  287. define KernelPackage/dm
  288. SUBMENU:=$(BLOCK_MENU)
  289. TITLE:=Device Mapper
  290. # All the "=n" are unnecessary, they're only there
  291. # to stop the config from asking the question.
  292. # MIRROR is M because I've needed it for pvmove.
  293. KCONFIG:= \
  294. CONFIG_BLK_DEV_MD=n \
  295. CONFIG_DM_DEBUG=n \
  296. CONFIG_DM_CRYPT=n \
  297. CONFIG_DM_UEVENT=n \
  298. CONFIG_DM_DELAY=n \
  299. CONFIG_DM_MULTIPATH=n \
  300. CONFIG_DM_ZERO=n \
  301. CONFIG_DM_SNAPSHOT=n \
  302. CONFIG_DM_LOG_USERSPACE=n \
  303. CONFIG_MD=y \
  304. CONFIG_BLK_DEV_DM \
  305. CONFIG_DM_MIRROR
  306. FILES:=$(LINUX_DIR)/drivers/md/dm-*.$(LINUX_KMOD_SUFFIX)
  307. AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-log dm-region-hash dm-mirror)
  308. endef
  309. define KernelPackage/dm/description
  310. Kernel module necessary for LVM2 support
  311. endef
  312. $(eval $(call KernelPackage,dm))
  313. define KernelPackage/pata-rb153-cf
  314. $(call KernelPackage/ata/Depends,@TARGET_adm5120_router_le)
  315. TITLE:=RouterBOARD 153 CF Slot support
  316. KCONFIG:=CONFIG_PATA_RB153_CF
  317. FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
  318. AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf,1)
  319. endef
  320. define KernelPackage/pata-rb153-cf/description
  321. Kernel support for the RouterBoard 153 CF slot.
  322. endef
  323. $(eval $(call KernelPackage,pata-rb153-cf,1))
  324. define KernelPackage/aoe
  325. SUBMENU:=$(BLOCK_MENU)
  326. TITLE:=ATA over Ethernet support
  327. KCONFIG:=CONFIG_ATA_OVER_ETH
  328. FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.$(LINUX_KMOD_SUFFIX)
  329. AUTOLOAD:=$(call AutoLoad,30,aoe)
  330. endef
  331. define KernelPackage/aoe/description
  332. Kernel support for ATA over Ethernet
  333. endef
  334. $(eval $(call KernelPackage,aoe))
  335. define KernelPackage/ps3vram
  336. SUBMENU:=$(BLOCK_MENU)
  337. TITLE:=PS3 Video RAM Storage Driver
  338. DEPENDS:=@TARGET_ps3||TARGET_ps3chk
  339. KCONFIG:=CONFIG_PS3_VRAM
  340. FILES:=$(LINUX_DIR)/drivers/block/ps3vram.$(LINUX_KMOD_SUFFIX)
  341. AUTOLOAD:=$(call AutoLoad,01,ps3vram)
  342. endef
  343. define KernelPackage/ps3vram/description
  344. Kernel support for PS3 Video RAM Storage
  345. endef
  346. $(eval $(call KernelPackage,ps3vram))
  347. define KernelPackage/axonram
  348. SUBMENU:=$(BLOCK_MENU)
  349. TITLE:=Axon DDR2 memory device driver
  350. DEPENDS:=@TARGET_pxcab
  351. KCONFIG:=CONFIG_AXON_RAM
  352. FILES:=$(LINUX_DIR)/arch/powerpc/sysdev/axonram.$(LINUX_KMOD_SUFFIX)
  353. AUTOLOAD:=$(call AutoLoad,01,axonram)
  354. endef
  355. define KernelPackage/axonram/description
  356. Kernel support for Axon DDR2 memory device
  357. endef
  358. $(eval $(call KernelPackage,axonram))
  359. define KernelPackage/libsas
  360. SUBMENU:=$(BLOCK_MENU)
  361. TITLE:=SAS Domain Transport Attributes
  362. DEPENDS:=@TARGET_x86
  363. KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
  364. CONFIG_SCSI_SAS_ATTRS \
  365. CONFIG_SCSI_SAS_ATA=y \
  366. CONFIG_SCSI_SAS_HOST_SMP=y \
  367. CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
  368. FILES:= \
  369. $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.$(LINUX_KMOD_SUFFIX) \
  370. $(LINUX_DIR)/drivers/scsi/libsas/libsas.$(LINUX_KMOD_SUFFIX)
  371. AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
  372. endef
  373. define KernelPackage/libsas/description
  374. SAS Domain Transport Attributes support.
  375. endef
  376. $(eval $(call KernelPackage,libsas,1))
  377. define KernelPackage/mvsas
  378. SUBMENU:=$(BLOCK_MENU)
  379. TITLE:=Marvell 88SE6440 SAS/SATA driver
  380. DEPENDS:=@TARGET_x86 +kmod-libsas
  381. KCONFIG:=CONFIG_SCSI_MVSAS
  382. ifneq ($(CONFIG_LINUX_2_6_25)$(CONFIG_LINUX_2_6_30),)
  383. FILES:=$(LINUX_DIR)/drivers/scsi/mvsas.$(LINUX_KMOD_SUFFIX)
  384. else
  385. FILES:=$(LINUX_DIR)/drivers/scsi/mvsas/mvsas.$(LINUX_KMOD_SUFFIX)
  386. endif
  387. AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
  388. endef
  389. define KernelPackage/mvsas/description
  390. Kernel support for the Marvell SAS SCSI adapters
  391. endef
  392. $(eval $(call KernelPackage,mvsas))