2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 BLOCK_MENU:=Block Devices
10 define KernelPackage/ata-core
11 SUBMENU:=$(BLOCK_MENU)
12 TITLE:=Serial and Parallel ATA support
13 DEPENDS:=@PCI_SUPPORT @LINUX_2_6 +kmod-scsi-core @!TARGET_ubicom32
15 FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
16 AUTOLOAD:=$(call AutoLoad,21,libata,1)
19 $(eval $(call KernelPackage,ata-core))
22 define KernelPackage/ata/Depends
23 SUBMENU:=$(BLOCK_MENU)
24 DEPENDS:=kmod-ata-core $(1)
28 define KernelPackage/ata-ahci
29 $(call KernelPackage/ata/Depends,)
30 TITLE:=AHCI Serial ATA support
31 KCONFIG:=CONFIG_SATA_AHCI
32 FILES:=$(LINUX_DIR)/drivers/ata/ahci.$(LINUX_KMOD_SUFFIX)
33 AUTOLOAD:=$(call AutoLoad,41,ahci,1)
36 define KernelPackage/ata-ahci/description
37 Support for AHCI Serial ATA controllers.
40 $(eval $(call KernelPackage,ata-ahci))
42 define KernelPackage/ata-sil
43 $(call KernelPackage/ata/Depends,)
44 TITLE:=Silicon Image SATA support
45 KCONFIG:=CONFIG_SATA_SIL
46 FILES:=$(LINUX_DIR)/drivers/ata/sata_sil.$(LINUX_KMOD_SUFFIX)
47 AUTOLOAD:=$(call AutoLoad,41,sata_sil,1)
50 define KernelPackage/ata-sil/description
51 Support for Silicon Image Serial ATA controllers.
54 $(eval $(call KernelPackage,ata-sil))
57 define KernelPackage/ata-sil24
58 $(call KernelPackage/ata/Depends,)
59 TITLE:=Silicon Image 3124/3132 SATA support
60 KCONFIG:=CONFIG_SATA_SIL24
61 FILES:=$(LINUX_DIR)/drivers/ata/sata_sil24.$(LINUX_KMOD_SUFFIX)
62 AUTOLOAD:=$(call AutoLoad,41,sata_sil24,1)
65 define KernelPackage/ata-sil24/description
66 Support for Silicon Image 3124/3132 Serial ATA controllers.
69 $(eval $(call KernelPackage,ata-sil24))
72 define KernelPackage/ata-artop
73 $(call KernelPackage/ata/Depends,)
74 TITLE:=ARTOP 6210/6260 PATA support
75 KCONFIG:=CONFIG_PATA_ARTOP
76 FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
77 AUTOLOAD:=$(call AutoLoad,41,pata_artop,1)
80 define KernelPackage/ata-artop/description
81 PATA support for ARTOP 6210/6260 host controllers.
84 $(eval $(call KernelPackage,ata-artop))
86 define KernelPackage/ata-octeon-cf
87 $(call KernelPackage/ata/Depends,@TARGET_octeon)
88 TITLE:=Octeon Compact Flash support
89 KCONFIG:=CONFIG_PATA_OCTEON_CF
90 FILES:=$(LINUX_DIR)/drivers/ata/pata_octeon_cf.$(LINUX_KMOD_SUFFIX)
91 AUTOLOAD:=$(call AutoLoad,41,pata_octeon_cf,1)
94 define KernelPackage/ata-octeon-cf/description
95 Octeon Compact Flash support.
98 $(eval $(call KernelPackage,ata-octeon-cf))
101 define KernelPackage/ata-ixp4xx-cf
102 $(call KernelPackage/ata/Depends,@TARGET_ixp4xx)
103 TITLE:=IXP4XX Compact Flash support
104 KCONFIG:=CONFIG_PATA_IXP4XX_CF
105 FILES:=$(LINUX_DIR)/drivers/ata/pata_ixp4xx_cf.$(LINUX_KMOD_SUFFIX)
106 AUTOLOAD:=$(call AutoLoad,41,pata_ixp4xx_cf,1)
109 define KernelPackage/ata-ixp4xx-cf/description
110 IXP4XX Compact Flash support.
113 $(eval $(call KernelPackage,ata-ixp4xx-cf))
115 define KernelPackage/ata-rb532-cf
116 $(call KernelPackage/ata/Depends,@TARGET_rb532 @BROKEN)
117 TITLE:=RB532 Compact Flash support
119 CONFIG_PATA_PLATFORM \
122 $(LINUX_DIR)/drivers/ata/pata_platform.$(LINUX_KMOD_SUFFIX) \
123 $(LINUX_DIR)/drivers/ata/pata_rb532_cf.$(LINUX_KMOD_SUFFIX)
124 AUTOLOAD:=$(call AutoLoad,41,pata_platform pata_rb532_cf,1)
127 define KernelPackage/ata-rb532-cf/description
128 RB532 Compact Flash support.
131 $(eval $(call KernelPackage,ata-rb532-cf))
133 define KernelPackage/ata-nvidia-sata
134 $(call KernelPackage/ata/Depends,)
135 TITLE:=Nvidia Serial ATA support
136 KCONFIG:=CONFIG_SATA_NV
137 FILES:=$(LINUX_DIR)/drivers/ata/sata_nv.$(LINUX_KMOD_SUFFIX)
138 AUTOLOAD:=$(call AutoLoad,41,sata_nv,1)
141 $(eval $(call KernelPackage,ata-nvidia-sata))
144 define KernelPackage/ata-magicbox-cf
145 $(call KernelPackage/ata/Depends,@TARGET_ppc40x)
146 TITLE:=Magicbox v2/OpenRB Compact flash support (ATA)
147 KCONFIG:=CONFIG_PATA_MAGICBOX_CF
148 FILES:=$(LINUX_DIR)/drivers/ata/pata_magicbox_cf.$(LINUX_KMOD_SUFFIX)
149 AUTOLOAD:=$(call AutoLoad,41,pata_magicbox_cf,1)
152 define KernelPackage/ata-magicbox-cf/description
153 Support for Magicbox v2/OpenRB on-board CF slot. (ATA version).
156 $(eval $(call KernelPackage,ata-magicbox-cf))
159 define KernelPackage/ata-piix
160 $(call KernelPackage/ata/Depends,)
161 TITLE:=Intel PIIX PATA/SATA support
162 KCONFIG:=CONFIG_ATA_PIIX
163 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
164 AUTOLOAD:=$(call AutoLoad,41,ata_piix,1)
167 define KernelPackage/ata-piix/description
168 SATA support for Intel ICH5/6/7/8 series host controllers and
169 PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers.
172 $(eval $(call KernelPackage,ata-piix))
175 define KernelPackage/ata-via-sata
176 $(call KernelPackage/ata/Depends,)
177 TITLE:=VIA SATA support
178 KCONFIG:=CONFIG_SATA_VIA
179 FILES:=$(LINUX_DIR)/drivers/ata/sata_via.$(LINUX_KMOD_SUFFIX)
180 AUTOLOAD:=$(call AutoLoad,41,sata_via,1)
183 define KernelPackage/ata-via-sata/description
184 This option enables support for VIA Serial ATA.
187 $(eval $(call KernelPackage,ata-via-sata))
190 define KernelPackage/ide-core
191 SUBMENU:=$(BLOCK_MENU)
192 TITLE:=IDE (ATA/ATAPI) device support
193 DEPENDS:=@PCI_SUPPORT
197 CONFIG_BLK_DEV_GENERIC \
199 CONFIG_BLK_DEV_IDEDISK \
201 CONFIG_IDE_GD_ATA=y \
202 CONFIG_IDE_GD_ATAPI=n \
203 CONFIG_BLK_DEV_IDEDMA_PCI=y \
204 CONFIG_BLK_DEV_IDEPCI=y
206 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
207 $(LINUX_DIR)/drivers/ide/ide-gd_mod.$(LINUX_KMOD_SUFFIX)
209 $(call AutoLoad,20,ide-core,1) \
210 $(call AutoLoad,40,ide-gd_mod,1)
213 define KernelPackage/ide-core/2.4
215 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
216 $(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX) \
217 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
219 $(call AutoLoad,20,ide-core,1) \
220 $(call AutoLoad,35,ide-detect,1) \
221 $(call AutoLoad,40,ide-disk,1)
224 ifneq ($(CONFIG_arm)$(CONFIG_powerpc),y)
225 define KernelPackage/ide-core/2.6
226 FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
227 AUTOLOAD+=$(call AutoLoad,30,ide-generic,1)
231 define KernelPackage/ide-core/description
232 Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
236 - ide-gd_mod (or ide-disk)
239 $(eval $(call KernelPackage,ide-core))
242 define KernelPackage/ide/Depends
243 SUBMENU:=$(BLOCK_MENU)
244 DEPENDS:=kmod-ide-core $(1)
248 define KernelPackage/ide-aec62xx
249 $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
250 TITLE:=Acard AEC62xx IDE driver
251 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
252 FILES:=$(LINUX_DIR)/drivers/ide/aec62xx.$(LINUX_KMOD_SUFFIX)
253 AUTOLOAD:=$(call AutoLoad,30,aec62xx,1)
256 define KernelPackage/ide-aec62xx/2.4
257 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
260 define KernelPackage/ide-aec62xx/description
261 Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
264 $(eval $(call KernelPackage,ide-aec62xx,1))
267 define KernelPackage/ide-magicbox
268 $(call KernelPackage/ide/Depends,@TARGET_ppc40x @BROKEN)
269 TITLE:=Magicbox v2/OpenRB Compact flash support (IDE)
270 KCONFIG:=CONFIG_BLK_DEV_IDE_MAGICBOX
271 FILES:=$(LINUX_DIR)/drivers/ide/magicbox_ide.$(LINUX_KMOD_SUFFIX)
272 AUTOLOAD:=$(call AutoLoad,30,magicbox_ide,1)
275 define KernelPackage/ide-magicbox/description
276 Support for Magicbox v2/OpenRB on-board CF slot. (IDE version).
279 $(eval $(call KernelPackage,ide-magicbox))
282 define KernelPackage/ide-pdc202xx
283 $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
284 TITLE:=Promise PDC202xx IDE driver
285 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
286 FILES:=$(LINUX_DIR)/drivers/ide/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
287 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old,1)
290 define KernelPackage/ide-pdc202xx/2.4
291 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
294 define KernelPackage/ide-pdc202xx/description
295 Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
299 $(eval $(call KernelPackage,ide-pdc202xx))
302 define KernelPackage/ide-it821x
303 $(call KernelPackage/ide/Depends,@PCI_SUPPORT)
304 TITLE:=ITE IT821x IDE driver
305 KCONFIG:=CONFIG_BLK_DEV_IT821X
306 FILES=$(LINUX_DIR)/drivers/ide/it821x.$(LINUX_KMOD_SUFFIX)
307 AUTOLOAD:=$(call AutoLoad,30,it821x,1)
310 define KernelPackage/ide-it821x/description
311 Kernel module for the ITE IDE821x IDE controllers.
314 $(eval $(call KernelPackage,ide-it821x))
317 define KernelPackage/scsi-core
318 SUBMENU:=$(BLOCK_MENU)
319 TITLE:=SCSI device support
324 $(if $(findstring y,$(CONFIG_SCSI)),,$(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX)) \
325 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
326 AUTOLOAD:=$(call AutoLoad,20,scsi_mod,1) $(call AutoLoad,40,sd_mod,1)
329 $(eval $(call KernelPackage,scsi-core))
332 define KernelPackage/scsi-generic
333 SUBMENU:=$(BLOCK_MENU)
334 TITLE:=Kernel support for SCSI generic
338 $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
339 AUTOLOAD:=$(call AutoLoad,65,sg)
342 $(eval $(call KernelPackage,scsi-generic))
345 define KernelPackage/loop
346 SUBMENU:=$(BLOCK_MENU)
347 TITLE:=Loopback device support
349 CONFIG_BLK_DEV_LOOP \
350 CONFIG_BLK_DEV_CRYPTOLOOP=n
351 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
352 AUTOLOAD:=$(call AutoLoad,30,loop)
355 define KernelPackage/loop/description
356 Kernel module for loopback device support
359 $(eval $(call KernelPackage,loop))
362 define KernelPackage/nbd
363 SUBMENU:=$(BLOCK_MENU)
364 TITLE:=Network block device support
365 KCONFIG:=CONFIG_BLK_DEV_NBD
366 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
367 AUTOLOAD:=$(call AutoLoad,30,nbd)
370 define KernelPackage/nbd/description
371 Kernel module for network block device support
374 $(eval $(call KernelPackage,nbd))
377 define KernelPackage/dm
378 SUBMENU:=$(BLOCK_MENU)
380 # All the "=n" are unnecessary, they're only there
381 # to stop the config from asking the question.
382 # MIRROR is M because I've needed it for pvmove.
384 CONFIG_BLK_DEV_MD=n \
389 CONFIG_DM_MULTIPATH=n \
391 CONFIG_DM_SNAPSHOT=n \
392 CONFIG_DM_LOG_USERSPACE=n \
396 FILES:=$(LINUX_DIR)/drivers/md/dm-*.$(LINUX_KMOD_SUFFIX)
397 AUTOLOAD:=$(call AutoLoad,30,dm-mod dm-region-hash dm-mirror dm-log)
400 define KernelPackage/dm/description
401 Kernel module necessary for LVM2 support
404 $(eval $(call KernelPackage,dm))
407 define KernelPackage/pata-rb153-cf
408 $(call KernelPackage/ata/Depends,@TARGET_adm5120_router_le)
409 TITLE:=RouterBOARD 153 CF Slot support
410 KCONFIG:=CONFIG_PATA_RB153_CF
411 FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
412 AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf,1)
415 define KernelPackage/pata-rb153-cf/description
416 Kernel support for the RouterBoard 153 CF slot.
419 $(eval $(call KernelPackage,pata-rb153-cf,1))
422 define KernelPackage/aoe
423 SUBMENU:=$(BLOCK_MENU)
424 TITLE:=ATA over Ethernet support
425 KCONFIG:=CONFIG_ATA_OVER_ETH
426 FILES:=$(LINUX_DIR)/drivers/block/aoe/aoe.$(LINUX_KMOD_SUFFIX)
427 AUTOLOAD:=$(call AutoLoad,30,aoe)
430 define KernelPackage/aoe/description
431 Kernel support for ATA over Ethernet
434 $(eval $(call KernelPackage,aoe))
436 define KernelPackage/ps3vram
437 SUBMENU:=$(BLOCK_MENU)
438 TITLE:=PS3 Video RAM Storage Driver
439 DEPENDS:=@TARGET_ps3||TARGET_ps3chk
440 KCONFIG:=CONFIG_PS3_VRAM
441 FILES:=$(LINUX_DIR)/drivers/block/ps3vram.$(LINUX_KMOD_SUFFIX)
442 AUTOLOAD:=$(call AutoLoad,01,ps3vram)
445 define KernelPackage/ps3vram/description
446 Kernel support for PS3 Video RAM Storage
449 $(eval $(call KernelPackage,ps3vram))
451 define KernelPackage/axonram
452 SUBMENU:=$(BLOCK_MENU)
453 TITLE:=Axon DDR2 memory device driver
454 DEPENDS:=@TARGET_pxcab
455 KCONFIG:=CONFIG_AXON_RAM
456 FILES:=$(LINUX_DIR)/arch/powerpc/sysdev/axonram.$(LINUX_KMOD_SUFFIX)
457 AUTOLOAD:=$(call AutoLoad,01,axonram)
460 define KernelPackage/axonram/description
461 Kernel support for Axon DDR2 memory device
464 $(eval $(call KernelPackage,axonram))
466 define KernelPackage/libsas
467 SUBMENU:=$(BLOCK_MENU)
468 TITLE:=SAS Domain Transport Attributes
469 DEPENDS:=+kmod-scsi-core @TARGET_x86
470 KCONFIG:=CONFIG_SCSI_SAS_LIBSAS \
471 CONFIG_SCSI_SAS_ATTRS \
472 CONFIG_SCSI_SAS_ATA=y \
473 CONFIG_SCSI_SAS_HOST_SMP=y \
474 CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
476 $(LINUX_DIR)/drivers/scsi/scsi_transport_sas.$(LINUX_KMOD_SUFFIX) \
477 $(LINUX_DIR)/drivers/scsi/libsas/libsas.$(LINUX_KMOD_SUFFIX)
478 AUTOLOAD:=$(call AutoLoad,29,scsi_transport_sas libsas,1)
481 define KernelPackage/libsas/description
482 SAS Domain Transport Attributes support.
485 $(eval $(call KernelPackage,libsas,1))
487 define KernelPackage/mvsas
488 SUBMENU:=$(BLOCK_MENU)
489 TITLE:=Marvell 88SE6440 SAS/SATA driver
490 DEPENDS:=@TARGET_x86 +kmod-libsas
491 KCONFIG:=CONFIG_SCSI_MVSAS
492 FILES:=$(LINUX_DIR)/drivers/scsi/mvsas.$(LINUX_KMOD_SUFFIX)
493 AUTOLOAD:=$(call AutoLoad,40,mvsas,1)
496 define KernelPackage/mvsas/description
497 Kernel support for the Marvell SAS SCSI adapters
500 $(eval $(call KernelPackage,mvsas))