diff options
author | Josh Boyer <jwboyer@linux.vnet.ibm.com> | 2006-11-20 21:15:36 -0500 |
---|---|---|
committer | Artem Bityutskiy <dedekind@infradead.org> | 2006-11-29 09:58:15 -0500 |
commit | f6a7ecb18dabd88bd9f28e7bece564cabe8ffe82 (patch) | |
tree | 030fee5005717d55e66b2e3f9ba367e774d631fa | |
parent | eb6cf7bb71baa109041c04357b930a0c0bfa0db7 (diff) |
[MTD] add MTD_BLKDEVS Kconfig option
Add a MTD_BLKDEVS Kconfig option to cleanup the makefile a bit
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Artem Bityutskiy <dedekind@infradead.org>
-rw-r--r-- | drivers/mtd/Kconfig | 12 | ||||
-rw-r--r-- | drivers/mtd/Makefile | 15 |
2 files changed, 20 insertions, 7 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 291660abe3a6..26f75c299440 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig | |||
@@ -164,9 +164,15 @@ config MTD_CHAR | |||
164 | memory chips, and also use ioctl() to obtain information about | 164 | memory chips, and also use ioctl() to obtain information about |
165 | the device, or to erase parts of it. | 165 | the device, or to erase parts of it. |
166 | 166 | ||
167 | config MTD_BLKDEVS | ||
168 | tristate "Common interface to block layer for MTD 'translation layers'" | ||
169 | depends on MTD && BLOCK | ||
170 | default n | ||
171 | |||
167 | config MTD_BLOCK | 172 | config MTD_BLOCK |
168 | tristate "Caching block device access to MTD devices" | 173 | tristate "Caching block device access to MTD devices" |
169 | depends on MTD && BLOCK | 174 | depends on MTD && BLOCK |
175 | select MTD_BLKDEVS | ||
170 | ---help--- | 176 | ---help--- |
171 | Although most flash chips have an erase size too large to be useful | 177 | Although most flash chips have an erase size too large to be useful |
172 | as block devices, it is possible to use MTD devices which are based | 178 | as block devices, it is possible to use MTD devices which are based |
@@ -189,6 +195,7 @@ config MTD_BLOCK | |||
189 | config MTD_BLOCK_RO | 195 | config MTD_BLOCK_RO |
190 | tristate "Readonly block device access to MTD devices" | 196 | tristate "Readonly block device access to MTD devices" |
191 | depends on MTD_BLOCK!=y && MTD && BLOCK | 197 | depends on MTD_BLOCK!=y && MTD && BLOCK |
198 | select MTD_BLKDEVS | ||
192 | help | 199 | help |
193 | This allows you to mount read-only file systems (such as cramfs) | 200 | This allows you to mount read-only file systems (such as cramfs) |
194 | from an MTD device, without the overhead (and danger) of the caching | 201 | from an MTD device, without the overhead (and danger) of the caching |
@@ -200,6 +207,7 @@ config MTD_BLOCK_RO | |||
200 | config FTL | 207 | config FTL |
201 | tristate "FTL (Flash Translation Layer) support" | 208 | tristate "FTL (Flash Translation Layer) support" |
202 | depends on MTD && BLOCK | 209 | depends on MTD && BLOCK |
210 | select MTD_BLKDEVS | ||
203 | ---help--- | 211 | ---help--- |
204 | This provides support for the original Flash Translation Layer which | 212 | This provides support for the original Flash Translation Layer which |
205 | is part of the PCMCIA specification. It uses a kind of pseudo- | 213 | is part of the PCMCIA specification. It uses a kind of pseudo- |
@@ -216,6 +224,7 @@ config FTL | |||
216 | config NFTL | 224 | config NFTL |
217 | tristate "NFTL (NAND Flash Translation Layer) support" | 225 | tristate "NFTL (NAND Flash Translation Layer) support" |
218 | depends on MTD && BLOCK | 226 | depends on MTD && BLOCK |
227 | select MTD_BLKDEVS | ||
219 | ---help--- | 228 | ---help--- |
220 | This provides support for the NAND Flash Translation Layer which is | 229 | This provides support for the NAND Flash Translation Layer which is |
221 | used on M-Systems' DiskOnChip devices. It uses a kind of pseudo- | 230 | used on M-Systems' DiskOnChip devices. It uses a kind of pseudo- |
@@ -239,6 +248,7 @@ config NFTL_RW | |||
239 | config INFTL | 248 | config INFTL |
240 | tristate "INFTL (Inverse NAND Flash Translation Layer) support" | 249 | tristate "INFTL (Inverse NAND Flash Translation Layer) support" |
241 | depends on MTD && BLOCK | 250 | depends on MTD && BLOCK |
251 | select MTD_BLKDEVS | ||
242 | ---help--- | 252 | ---help--- |
243 | This provides support for the Inverse NAND Flash Translation | 253 | This provides support for the Inverse NAND Flash Translation |
244 | Layer which is used on M-Systems' newer DiskOnChip devices. It | 254 | Layer which is used on M-Systems' newer DiskOnChip devices. It |
@@ -256,6 +266,7 @@ config INFTL | |||
256 | config RFD_FTL | 266 | config RFD_FTL |
257 | tristate "Resident Flash Disk (Flash Translation Layer) support" | 267 | tristate "Resident Flash Disk (Flash Translation Layer) support" |
258 | depends on MTD && BLOCK | 268 | depends on MTD && BLOCK |
269 | select MTD_BLKDEVS | ||
259 | ---help--- | 270 | ---help--- |
260 | This provides support for the flash translation layer known | 271 | This provides support for the flash translation layer known |
261 | as the Resident Flash Disk (RFD), as used by the Embedded BIOS | 272 | as the Resident Flash Disk (RFD), as used by the Embedded BIOS |
@@ -266,6 +277,7 @@ config RFD_FTL | |||
266 | config SSFDC | 277 | config SSFDC |
267 | tristate "NAND SSFDC (SmartMedia) read only translation layer" | 278 | tristate "NAND SSFDC (SmartMedia) read only translation layer" |
268 | depends on MTD && BLOCK | 279 | depends on MTD && BLOCK |
280 | select MTD_BLKDEVS | ||
269 | help | 281 | help |
270 | This enables read only access to SmartMedia formatted NAND | 282 | This enables read only access to SmartMedia formatted NAND |
271 | flash. You can mount it with FAT file system. | 283 | flash. You can mount it with FAT file system. |
diff --git a/drivers/mtd/Makefile b/drivers/mtd/Makefile index 1e36b9aed98b..c130e6261adf 100644 --- a/drivers/mtd/Makefile +++ b/drivers/mtd/Makefile | |||
@@ -15,13 +15,14 @@ obj-$(CONFIG_MTD_AFS_PARTS) += afs.o | |||
15 | 15 | ||
16 | # 'Users' - code which presents functionality to userspace. | 16 | # 'Users' - code which presents functionality to userspace. |
17 | obj-$(CONFIG_MTD_CHAR) += mtdchar.o | 17 | obj-$(CONFIG_MTD_CHAR) += mtdchar.o |
18 | obj-$(CONFIG_MTD_BLOCK) += mtdblock.o mtd_blkdevs.o | 18 | obj-$(CONFIG_MTD_BLKDEVS) += mtd_blkdevs.o |
19 | obj-$(CONFIG_MTD_BLOCK_RO) += mtdblock_ro.o mtd_blkdevs.o | 19 | obj-$(CONFIG_MTD_BLOCK) += mtdblock.o |
20 | obj-$(CONFIG_FTL) += ftl.o mtd_blkdevs.o | 20 | obj-$(CONFIG_MTD_BLOCK_RO) += mtdblock_ro.o |
21 | obj-$(CONFIG_NFTL) += nftl.o mtd_blkdevs.o | 21 | obj-$(CONFIG_FTL) += ftl.o |
22 | obj-$(CONFIG_INFTL) += inftl.o mtd_blkdevs.o | 22 | obj-$(CONFIG_NFTL) += nftl.o |
23 | obj-$(CONFIG_RFD_FTL) += rfd_ftl.o mtd_blkdevs.o | 23 | obj-$(CONFIG_INFTL) += inftl.o |
24 | obj-$(CONFIG_SSFDC) += ssfdc.o mtd_blkdevs.o | 24 | obj-$(CONFIG_RFD_FTL) += rfd_ftl.o |
25 | obj-$(CONFIG_SSFDC) += ssfdc.o | ||
25 | 26 | ||
26 | nftl-objs := nftlcore.o nftlmount.o | 27 | nftl-objs := nftlcore.o nftlmount.o |
27 | inftl-objs := inftlcore.o inftlmount.o | 28 | inftl-objs := inftlcore.o inftlmount.o |