2da963d4de5ad842cc8ad80e7f84aeff010fd8c2
[openwrt.git] / package / kernel / modules / block.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 BLOCK_MENU:=Block Devices
10
11 define KernelPackage/ata-core
12 SUBMENU:=$(BLOCK_MENU)
13 TITLE:=Serial and Parallel ATA support
14 DEPENDS:=@PCI_SUPPORT @LINUX_2_6
15 KCONFIG:=CONFIG_ATA
16 FILES:=$(LINUX_DIR)/drivers/ata/libata.$(LINUX_KMOD_SUFFIX)
17 AUTOLOAD:=$(call AutoLoad,21,libata)
18 endef
19
20 $(eval $(call KernelPackage,ata-core))
21
22
23 define KernelPackage/ata-artop
24 SUBMENU:=$(BLOCK_MENU)
25 TITLE:=ARTOP 6210/6260 PATA support
26 DEPENDS:=kmod-ata-core +kmod-scsi-core
27 KCONFIG:=CONFIG_PATA_ARTOP
28 FILES:=$(LINUX_DIR)/drivers/ata/pata_artop.$(LINUX_KMOD_SUFFIX)
29 AUTOLOAD:=$(call AutoLoad,41,pata_artop)
30 endef
31
32 define KernelPackage/ata-artop/description
33 PATA support for ARTOP 6210/6260 host controllers.
34 endef
35
36 $(eval $(call KernelPackage,ata-artop))
37
38
39 define KernelPackage/ata-piix
40 SUBMENU:=$(BLOCK_MENU)
41 TITLE:=Intel PIIX PATA/SATA support
42 DEPENDS:=kmod-ata-core +kmod-ide-core +kmod-scsi-core
43 KCONFIG:=CONFIG_ATA_PIIX
44 FILES:=$(LINUX_DIR)/drivers/ata/ata_piix.$(LINUX_KMOD_SUFFIX)
45 AUTOLOAD:=$(call AutoLoad,41,ata_piix)
46 endef
47
48 define KernelPackage/ata-piix/description
49 SATA support for Intel ICH5/6/7/8 series host controllers and
50 PATA support for Intel ESB/ICH/PIIX3/PIIX4 series host controllers.
51 endef
52
53 $(eval $(call KernelPackage,ata-piix))
54
55
56 define KernelPackage/ide-core
57 SUBMENU:=$(BLOCK_MENU)
58 TITLE:=IDE (ATA/ATAPI) device support
59 KCONFIG:= \
60 CONFIG_IDE \
61 CONFIG_IDE_GENERIC \
62 CONFIG_BLK_DEV_IDE \
63 CONFIG_IDE_GENERIC \
64 CONFIG_BLK_DEV_IDEDISK
65 FILES:= \
66 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
67 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
68 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-disk)
69 endef
70
71 define KernelPackage/ide-core/2.4
72 FILES+=$(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX)
73 AUTOLOAD+=$(call AutoLoad,30,ide-detect)
74 endef
75
76 define KernelPackage/ide-core/2.6
77 # KCONFIG+=CONFIG_IDE_GENERIC
78 FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
79 AUTOLOAD+=$(call AutoLoad,30,ide-generic)
80 endef
81
82 define KernelPackage/ide-core/description
83 Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
84 Includes:
85 - ide-core
86 - ide-detect
87 - ide-disk
88 endef
89
90 $(eval $(call KernelPackage,ide-core))
91
92
93 define KernelPackage/ide-aec62xx
94 SUBMENU:=$(BLOCK_MENU)
95 TITLE:=Acard AEC62xx IDE driver
96 DEPENDS:=@PCI_SUPPORT
97 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
98 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
99 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
100 endef
101
102 define KernelPackage/ide-aec62xx/description
103 Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
104 endef
105
106 $(eval $(call KernelPackage,ide-aec62xx))
107
108
109 define KernelPackage/ide-pdc202xx
110 SUBMENU:=$(BLOCK_MENU)
111 TITLE:=Promise PDC202xx IDE driver
112 DEPENDS:=@LINUX_2_4
113 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
114 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
115 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
116 endef
117
118 define KernelPackage/ide-pdc202xx/description
119 Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
120 controllers.
121 endef
122
123 $(eval $(call KernelPackage,ide-pdc202xx))
124
125
126 define KernelPackage/scsi-core
127 SUBMENU:=$(BLOCK_MENU)
128 TITLE:=SCSI device support
129 KCONFIG:= \
130 CONFIG_SCSI \
131 CONFIG_BLK_DEV_SD
132 FILES:= \
133 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
134 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
135 AUTOLOAD:=$(call AutoLoad,20,scsi_mod) $(call AutoLoad,40,sd_mod)
136 endef
137
138 $(eval $(call KernelPackage,scsi-core))
139
140
141 define KernelPackage/scsi-generic
142 SUBMENU:=$(BLOCK_MENU)
143 TITLE:=Kernel support for SCSI generic
144 KCONFIG:= \
145 CONFIG_CHR_DEV_SG
146 FILES:= \
147 $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
148 AUTOLOAD:=$(call AutoLoad,65,sg)
149 endef
150
151 $(eval $(call KernelPackage,scsi-generic))
152
153
154 define KernelPackage/loop
155 SUBMENU:=$(BLOCK_MENU)
156 TITLE:=Loopback device support
157 KCONFIG:= \
158 CONFIG_BLK_DEV_LOOP \
159 CONFIG_BLK_DEV_CRYPTOLOOP=n
160 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
161 AUTOLOAD:=$(call AutoLoad,30,loop)
162 endef
163
164 define KernelPackage/loop/description
165 Kernel module for loopback device support
166 endef
167
168 $(eval $(call KernelPackage,loop))
169
170
171 define KernelPackage/nbd
172 SUBMENU:=$(BLOCK_MENU)
173 TITLE:=Network block device support
174 KCONFIG:=CONFIG_BLK_DEV_NBD
175 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
176 AUTOLOAD:=$(call AutoLoad,30,nbd)
177 endef
178
179 define KernelPackage/nbd/description
180 Kernel module for network block device support
181 endef
182
183 $(eval $(call KernelPackage,nbd))
This page took 0.04338 seconds and 3 git commands to generate.