2 # Copyright (C) 2006-2010 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
/aoe
11 SUBMENU
:=$(BLOCK_MENU
)
12 TITLE
:=ATA over Ethernet support
14 KCONFIG
:=CONFIG_ATA_OVER_ETH
15 FILES
:=$(LINUX_DIR
)/drivers
/block
/aoe
/aoe.
$(LINUX_KMOD_SUFFIX
)
16 AUTOLOAD
:=$(call AutoLoad
,30,aoe
)
19 define KernelPackage
/aoe
/description
20 Kernel support for ATA over Ethernet
23 $(eval
$(call KernelPackage
,aoe
))
26 define KernelPackage
/ata-core
27 SUBMENU
:=$(BLOCK_MENU
)
28 TITLE
:=Serial and Parallel ATA support
29 DEPENDS
:=@PCI_SUPPORT @LINUX_2_6
+kmod-scsi-core @
(!TARGET_ubicom32||
!TARGET_etrax||
!TARGET_x86
)
31 FILES
:=$(LINUX_DIR
)/drivers
/ata
/libata.
$(LINUX_KMOD_SUFFIX
)
32 AUTOLOAD
:=$(call AutoLoad
,21,libata
,1)
35 $(eval
$(call KernelPackage
,ata-core
))
39 SUBMENU
:=$(BLOCK_MENU
)
40 DEPENDS
+=!TARGET_x86
:kmod-ata-core
$(1)
44 define KernelPackage
/ata-ahci
45 TITLE
:=AHCI Serial ATA support
46 KCONFIG
:=CONFIG_SATA_AHCI
47 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ahci.
$(LINUX_KMOD_SUFFIX
)
48 AUTOLOAD
:=$(call AutoLoad
,41,ahci
,1)
49 $(call AddDepends
/ata
)
52 define KernelPackage
/ata-ahci
/description
53 Support for AHCI Serial ATA controllers.
56 $(eval
$(call KernelPackage
,ata-ahci
))
59 define KernelPackage
/ata-artop
60 TITLE
:=ARTOP
6210/6260 PATA support
61 KCONFIG
:=CONFIG_PATA_ARTOP
62 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_artop.
$(LINUX_KMOD_SUFFIX
)
63 AUTOLOAD
:=$(call AutoLoad
,41,pata_artop
,1)
64 $(call AddDepends
/ata
)
67 define KernelPackage
/ata-artop
/description
68 PATA support for ARTOP
6210/6260 host controllers.
71 $(eval
$(call KernelPackage
,ata-artop
))
74 define KernelPackage
/ata-nvidia-sata
75 TITLE
:=Nvidia Serial ATA support
76 KCONFIG
:=CONFIG_SATA_NV
77 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_nv.
$(LINUX_KMOD_SUFFIX
)
78 AUTOLOAD
:=$(call AutoLoad
,41,sata_nv
,1)
79 $(call AddDepends
/ata
)
82 $(eval
$(call KernelPackage
,ata-nvidia-sata
))
85 define KernelPackage
/ata-pdc202xx-old
86 SUBMENU
:=$(BLOCK_MENU
)
87 TITLE
:=Older Promise PATA controller support
88 DEPENDS
:=kmod-ata-core
92 FILES
:=$(LINUX_DIR
)/drivers
/ata
/pata_pdc202xx_old.
$(LINUX_KMOD_SUFFIX
)
93 AUTOLOAD
:=$(call AutoLoad
,41,pata_pdc202xx_old
,1)
96 define KernelPackage
/ata-pdc202xx-old
/description
97 This option enables support for the Promise
20246, 20262, 20263,
98 20265 and
20267 adapters.
101 $(eval
$(call KernelPackage
,ata-pdc202xx-old
))
104 define KernelPackage
/ata-piix
105 TITLE
:=Intel PIIX PATA
/SATA support
106 KCONFIG
:=CONFIG_ATA_PIIX
107 FILES
:=$(LINUX_DIR
)/drivers
/ata
/ata_piix.
$(LINUX_KMOD_SUFFIX
)
108 AUTOLOAD
:=$(call AutoLoad
,41,ata_piix
,1)
109 $(call AddDepends
/ata
)
112 define KernelPackage
/ata-piix
/description
113 SATA support for Intel ICH5
/6/7/8 series host controllers and
114 PATA support for Intel ESB
/ICH
/PIIX3
/PIIX4 series host controllers.
117 $(eval
$(call KernelPackage
,ata-piix
))
120 define KernelPackage
/ata-sil
121 TITLE
:=Silicon Image SATA support
122 KCONFIG
:=CONFIG_SATA_SIL
123 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil.
$(LINUX_KMOD_SUFFIX
)
124 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil
,1)
125 $(call AddDepends
/ata
)
128 define KernelPackage
/ata-sil
/description
129 Support for Silicon Image Serial ATA controllers.
132 $(eval
$(call KernelPackage
,ata-sil
))
135 define KernelPackage
/ata-sil24
136 TITLE
:=Silicon Image
3124/3132 SATA support
137 KCONFIG
:=CONFIG_SATA_SIL24
138 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_sil24.
$(LINUX_KMOD_SUFFIX
)
139 AUTOLOAD
:=$(call AutoLoad
,41,sata_sil24
,1)
140 $(call AddDepends
/ata
)
143 define KernelPackage
/ata-sil24
/description
144 Support for Silicon Image
3124/3132 Serial ATA controllers.
147 $(eval
$(call KernelPackage
,ata-sil24
))
150 define KernelPackage
/ata-via-sata
151 TITLE
:=VIA SATA support
152 KCONFIG
:=CONFIG_SATA_VIA
153 FILES
:=$(LINUX_DIR
)/drivers
/ata
/sata_via.
$(LINUX_KMOD_SUFFIX
)
154 AUTOLOAD
:=$(call AutoLoad
,41,sata_via
,1)
155 $(call AddDepends
/ata
)
158 define KernelPackage
/ata-via-sata
/description
159 This option enables support for VIA Serial ATA.
162 $(eval
$(call KernelPackage
,ata-via-sata
))
165 define KernelPackage
/block2mtd
166 SUBMENU
:=$(BLOCK_MENU
)
167 TITLE
:=Block device MTD emulation
169 KCONFIG
:=CONFIG_MTD_BLOCK2MTD
170 FILES
:=$(LINUX_DIR
)/drivers
/mtd
/devices
/block2mtd.
$(LINUX_KMOD_SUFFIX
)
173 $(eval
$(call KernelPackage
,block2mtd
))
176 define KernelPackage
/dm
177 SUBMENU
:=$(BLOCK_MENU
)
180 # All the "=n" are unnecessary, they're only there
181 # to stop the config from asking the question.
182 # MIRROR is M because I've needed it for pvmove.
184 CONFIG_BLK_DEV_MD
=n \
189 CONFIG_DM_MULTIPATH
=n \
191 CONFIG_DM_SNAPSHOT
=n \
192 CONFIG_DM_LOG_USERSPACE
=n \
196 FILES
:=$(LINUX_DIR
)/drivers
/md
/dm-
*.
$(LINUX_KMOD_SUFFIX
)
197 AUTOLOAD
:=$(call AutoLoad
,30,dm-mod dm-log dm-region-hash dm-mirror
)
200 define KernelPackage
/dm
/description
201 Kernel module necessary for LVM2 support
204 $(eval
$(call KernelPackage
,dm
))
207 define KernelPackage
/ide-core
208 SUBMENU
:=$(BLOCK_MENU
)
209 TITLE
:=IDE
(ATA
/ATAPI
) device support
210 DEPENDS
:=@PCI_SUPPORT
214 CONFIG_BLK_DEV_IDEDISK \
216 CONFIG_IDE_GD_ATA
=y \
217 CONFIG_IDE_GD_ATAPI
=n \
218 CONFIG_BLK_DEV_IDEDMA_PCI
=y \
219 CONFIG_BLK_DEV_IDEPCI
=y
221 $(LINUX_DIR
)/drivers
/ide
/ide-core.
$(LINUX_KMOD_SUFFIX
)
223 $(call AutoLoad
,20,ide-core
,1)
226 define KernelPackage
/ide-core
/2.4
228 $(LINUX_DIR
)/drivers
/ide
/ide-detect.
$(LINUX_KMOD_SUFFIX
) \
229 $(LINUX_DIR
)/drivers
/ide
/ide-disk.
$(LINUX_KMOD_SUFFIX
)
231 $(call AutoLoad
,35,ide-detect
,1) \
232 $(call AutoLoad
,40,ide-disk
,1)
235 define KernelPackage
/ide-core
/2.6
237 $(LINUX_DIR
)/drivers
/ide
/ide-gd_mod.
$(LINUX_KMOD_SUFFIX
)
239 $(call AutoLoad
,40,ide-gd_mod
,1)
242 define KernelPackage
/ide-core
/description
243 Kernel support for IDE
, useful for usb mass storage devices
(e.g. on WL-HDD
)
247 - ide-gd_mod
(or ide-disk
)
250 $(eval
$(call KernelPackage
,ide-core
))
253 define AddDepends
/ide
254 SUBMENU
:=$(BLOCK_MENU
)
255 DEPENDS
+=kmod-ide-core
$(1)
259 define KernelPackage
/ide-generic
260 SUBMENU
:=$(BLOCK_MENU
)
261 DEPENDS
:=@PCI_SUPPORT
262 TITLE
:=Kernel support for generic PCI IDE chipsets
263 KCONFIG
:=CONFIG_BLK_DEV_GENERIC
264 $(call AddDepends
/ide
)
267 define KernelPackage
/ide-generic
/2.4
269 $(LINUX_DIR
)/drivers
/ide
/pci
/generic.
$(LINUX_KMOD_SUFFIX
)
271 $(call AutoLoad
,30,generic
,1)
274 define KernelPackage
/ide-generic
/2.6
276 $(LINUX_DIR
)/drivers
/ide
/ide-pci-generic.
$(LINUX_KMOD_SUFFIX
)
278 $(call AutoLoad
,30,ide-pci-generic
,1)
281 $(eval
$(call KernelPackage
,ide-generic
))
284 define KernelPackage
/ide-generic-old
285 SUBMENU
:=$(BLOCK_MENU
)
287 TITLE
:=Kernel support for generic
(legacy
) IDE chipsets
288 KCONFIG
:=CONFIG_IDE_GENERIC
289 FILES
:=$(LINUX_DIR
)/drivers
/ide
/ide-generic.
$(LINUX_KMOD_SUFFIX
)
290 AUTOLOAD
:=$(call AutoLoad
,30,ide-generic
,1)
291 $(call AddDepends
/ide
)
294 $(eval
$(call KernelPackage
,ide-generic-old
))
297 define KernelPackage
/ide-aec62xx
298 TITLE
:=Acard AEC62xx IDE driver
299 DEPENDS
:=@PCI_SUPPORT
300 KCONFIG
:=CONFIG_BLK_DEV_AEC62XX
301 FILES
:=$(LINUX_DIR
)/drivers
/ide
/aec62xx.
$(LINUX_KMOD_SUFFIX
)
302 AUTOLOAD
:=$(call AutoLoad
,30,aec62xx
,1)
303 $(call AddDepends
/ide
)
306 define KernelPackage
/ide-aec62xx
/2.4
307 FILES
:=$(LINUX_DIR
)/drivers
/ide
/pci
/aec62xx.
$(LINUX_KMOD_SUFFIX
)
310 define KernelPackage
/ide-aec62xx
/description
311 Support for Acard AEC62xx
(Artop ATP8xx
) IDE controllers.
314 $(eval
$(call KernelPackage
,ide-aec62xx
,1))
317 define KernelPackage
/ide-pdc202xx
318 TITLE
:=Promise PDC202xx IDE driver
319 DEPENDS
:=@PCI_SUPPORT
320 KCONFIG
:=CONFIG_BLK_DEV_PDC202XX_OLD
321 FILES
:=$(LINUX_DIR
)/drivers
/ide
/pdc202xx_old.
$(LINUX_KMOD_SUFFIX
)
322 AUTOLOAD
:=$(call AutoLoad
,30,pdc202xx_old
,1)
323 $(call AddDepends
/ide
)
326 define KernelPackage
/ide-pdc202xx
/2.4
327 FILES
:=$(LINUX_DIR
)/drivers
/ide
/pci
/pdc202xx_old.
$(LINUX_KMOD_SUFFIX
)
330 define KernelPackage
/ide-pdc202xx
/description
331 Support for the Promise Ultra
33/66/100 (PDC202
{46|
62|
65|
67|
68}) IDE
335 $(eval
$(call KernelPackage
,ide-pdc202xx
))
338 define KernelPackage
/ide-it821x
339 TITLE
:=ITE IT821x IDE driver
340 DEPENDS
:=@LINUX_2_6 @PCI_SUPPORT
341 KCONFIG
:=CONFIG_BLK_DEV_IT821X
342 FILES
=$(LINUX_DIR
)/drivers
/ide
/it821x.
$(LINUX_KMOD_SUFFIX
)
343 AUTOLOAD
:=$(call AutoLoad
,30,it821x
,1)
344 $(call AddDepends
/ide
)
347 define KernelPackage
/ide-it821x
/description
348 Kernel module for the ITE IDE821x IDE controllers.
351 $(eval
$(call KernelPackage
,ide-it821x
))
354 define KernelPackage
/libsas
355 SUBMENU
:=$(BLOCK_MENU
)
356 TITLE
:=SAS Domain Transport Attributes
358 KCONFIG
:=CONFIG_SCSI_SAS_LIBSAS \
359 CONFIG_SCSI_SAS_ATTRS \
360 CONFIG_SCSI_SAS_ATA
=y \
361 CONFIG_SCSI_SAS_HOST_SMP
=y \
362 CONFIG_SCSI_SAS_LIBSAS_DEBUG
=y
364 $(LINUX_DIR
)/drivers
/scsi
/scsi_transport_sas.
$(LINUX_KMOD_SUFFIX
) \
365 $(LINUX_DIR
)/drivers
/scsi
/libsas
/libsas.
$(LINUX_KMOD_SUFFIX
)
366 AUTOLOAD
:=$(call AutoLoad
,29,scsi_transport_sas libsas
,1)
369 define KernelPackage
/libsas
/description
370 SAS Domain Transport Attributes support.
373 $(eval
$(call KernelPackage
,libsas
,1))
376 define KernelPackage
/loop
377 SUBMENU
:=$(BLOCK_MENU
)
378 TITLE
:=Loopback device support
380 CONFIG_BLK_DEV_LOOP \
381 CONFIG_BLK_DEV_CRYPTOLOOP
=n
382 FILES
:=$(LINUX_DIR
)/drivers
/block
/loop.
$(LINUX_KMOD_SUFFIX
)
383 AUTOLOAD
:=$(call AutoLoad
,30,loop
)
386 define KernelPackage
/loop
/description
387 Kernel module for loopback device support
390 $(eval
$(call KernelPackage
,loop
))
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
)
401 FILES
:=$(LINUX_DIR
)/drivers
/scsi
/mvsas
/mvsas.
$(LINUX_KMOD_SUFFIX
)
403 AUTOLOAD
:=$(call AutoLoad
,40,mvsas
,1)
406 define KernelPackage
/mvsas
/description
407 Kernel support for the Marvell SAS SCSI adapters
410 $(eval
$(call KernelPackage
,mvsas
))
413 define KernelPackage
/nbd
414 SUBMENU
:=$(BLOCK_MENU
)
415 TITLE
:=Network block device support
416 KCONFIG
:=CONFIG_BLK_DEV_NBD
417 FILES
:=$(LINUX_DIR
)/drivers
/block
/nbd.
$(LINUX_KMOD_SUFFIX
)
418 AUTOLOAD
:=$(call AutoLoad
,30,nbd
)
421 define KernelPackage
/nbd
/description
422 Kernel module for network block device support
425 $(eval
$(call KernelPackage
,nbd
))
428 define KernelPackage
/scsi-core
429 SUBMENU
:=$(BLOCK_MENU
)
430 TITLE
:=SCSI device support
431 DEPENDS
:=@
!TARGET_x86
436 $(if
$(findstring y
,$(CONFIG_SCSI
)),,$(LINUX_DIR
)/drivers
/scsi
/scsi_mod.
$(LINUX_KMOD_SUFFIX
)) \
437 $(LINUX_DIR
)/drivers
/scsi
/sd_mod.
$(LINUX_KMOD_SUFFIX
)
438 AUTOLOAD
:=$(call AutoLoad
,20,scsi_mod
,1) $(call AutoLoad
,40,sd_mod
,1)
441 $(eval
$(call KernelPackage
,scsi-core
))
444 define KernelPackage
/scsi-generic
445 SUBMENU
:=$(BLOCK_MENU
)
446 TITLE
:=Kernel support for SCSI generic
450 $(LINUX_DIR
)/drivers
/scsi
/sg.
$(LINUX_KMOD_SUFFIX
)
451 AUTOLOAD
:=$(call AutoLoad
,65,sg
)
454 $(eval
$(call KernelPackage
,scsi-generic
))