[adm5120] new experimental driver for the CF slot on the RouterBOARD 153
[openwrt/svn-archive/archive.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 +kmod-scsi-core
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
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
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 CONFIG_BLK_DEV_IDEDMA_PCI=y \
66 CONFIG_BLK_DEV_IDEPCI=y
67 FILES:= \
68 $(LINUX_DIR)/drivers/ide/ide-core.$(LINUX_KMOD_SUFFIX) \
69 $(LINUX_DIR)/drivers/ide/ide-disk.$(LINUX_KMOD_SUFFIX)
70 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,40,ide-disk)
71 endef
72
73 define KernelPackage/ide-core/2.4
74 FILES+=$(LINUX_DIR)/drivers/ide/ide-detect.$(LINUX_KMOD_SUFFIX)
75 AUTOLOAD+=$(call AutoLoad,30,ide-detect)
76 endef
77
78 define KernelPackage/ide-core/2.6
79 FILES+=$(LINUX_DIR)/drivers/ide/ide-generic.$(LINUX_KMOD_SUFFIX)
80 AUTOLOAD+=$(call AutoLoad,30,ide-generic)
81 endef
82
83 define KernelPackage/ide-core/description
84 Kernel support for IDE, useful for usb mass storage devices (e.g. on WL-HDD)
85 Includes:
86 - ide-core
87 - ide-detect
88 - ide-disk
89 endef
90
91 $(eval $(call KernelPackage,ide-core))
92
93
94 define KernelPackage/ide-aec62xx
95 SUBMENU:=$(BLOCK_MENU)
96 TITLE:=Acard AEC62xx IDE driver
97 DEPENDS:=@PCI_SUPPORT +kmod-ide-core
98 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
99 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
100 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
101 endef
102
103 define KernelPackage/ide-aec62xx/description
104 Support for Acard AEC62xx (Artop ATP8xx) IDE controllers.
105 endef
106
107 $(eval $(call KernelPackage,ide-aec62xx))
108
109
110 define KernelPackage/ide-pdc202xx
111 SUBMENU:=$(BLOCK_MENU)
112 TITLE:=Promise PDC202xx IDE driver
113 DEPENDS:=@LINUX_2_4 +kmod-ide-core
114 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
115 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
116 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
117 endef
118
119 define KernelPackage/ide-pdc202xx/description
120 Support for the Promise Ultra 33/66/100 (PDC202{46|62|65|67|68}) IDE
121 controllers.
122 endef
123
124 $(eval $(call KernelPackage,ide-pdc202xx))
125
126
127 define KernelPackage/scsi-core
128 SUBMENU:=$(BLOCK_MENU)
129 TITLE:=SCSI device support
130 KCONFIG:= \
131 CONFIG_SCSI \
132 CONFIG_BLK_DEV_SD
133 FILES:= \
134 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
135 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
136 AUTOLOAD:=$(call AutoLoad,20,scsi_mod) $(call AutoLoad,40,sd_mod)
137 endef
138
139 $(eval $(call KernelPackage,scsi-core))
140
141
142 define KernelPackage/scsi-generic
143 SUBMENU:=$(BLOCK_MENU)
144 TITLE:=Kernel support for SCSI generic
145 KCONFIG:= \
146 CONFIG_CHR_DEV_SG
147 FILES:= \
148 $(LINUX_DIR)/drivers/scsi/sg.$(LINUX_KMOD_SUFFIX)
149 AUTOLOAD:=$(call AutoLoad,65,sg)
150 endef
151
152 $(eval $(call KernelPackage,scsi-generic))
153
154
155 define KernelPackage/loop
156 SUBMENU:=$(BLOCK_MENU)
157 TITLE:=Loopback device support
158 KCONFIG:= \
159 CONFIG_BLK_DEV_LOOP \
160 CONFIG_BLK_DEV_CRYPTOLOOP=n
161 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
162 AUTOLOAD:=$(call AutoLoad,30,loop)
163 endef
164
165 define KernelPackage/loop/description
166 Kernel module for loopback device support
167 endef
168
169 $(eval $(call KernelPackage,loop))
170
171
172 define KernelPackage/nbd
173 SUBMENU:=$(BLOCK_MENU)
174 TITLE:=Network block device support
175 KCONFIG:=CONFIG_BLK_DEV_NBD
176 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
177 AUTOLOAD:=$(call AutoLoad,30,nbd)
178 endef
179
180 define KernelPackage/nbd/description
181 Kernel module for network block device support
182 endef
183
184 $(eval $(call KernelPackage,nbd))
185
186
187 define KernelPackage/pata-rb153-cf
188 SUBMENU:=$(BLOCK_MENU)
189 DEPENDS:=kmod-ata-core @TARGET_adm5120_router_le
190 TITLE:=RouterBOARD 153 CF Slot support
191 KCONFIG:=CONFIG_PATA_RB153_CF
192 FILES:=$(LINUX_DIR)/drivers/ata/pata_rb153_cf.$(LINUX_KMOD_SUFFIX)
193 AUTOLOAD:=$(call AutoLoad,30,pata_rb153_cf)
194 endef
195
196 define KernelPackage/pata-rb153-cf/description
197 Kernel support for the RouterBoard 153 CF slot.
198 endef
199
200 $(eval $(call KernelPackage,pata-rb153-cf))