diff options
author | Dimitri Gorokhovik <dimitri.gorokhovik@free.fr> | 2007-03-06 04:42:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-06 12:30:25 -0500 |
commit | f991633de626a5f16069d00e26b45142e037ce24 (patch) | |
tree | 0cce772cb0bd4fbd7de8647950dab2ac66883c18 /init/Kconfig | |
parent | de69fee82c5962fb7bdaf6eb8a81302f418d1a1d (diff) |
[PATCH] initramfs should not depend on CONFIG_BLOCK
initramfs ended up depending on BLOCK:
INITRAMFS_SOURCE <-- BLK_DEV_INITRD <-- BLOCK
This inhibits use of customized-initramfs-over-ramfs without block layer
(ramfs would still be enabled), useful in embedded applications.
Move BLK_DEV_INITRD out of 'drivers/block/Kconfig' and into 'init/Kconfig',
make it unconditional.
Signed-off-by: Dimitri Gorokhovik <dimitri.gorokhovik@free.fr>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init/Kconfig')
-rw-r--r-- | init/Kconfig | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/init/Kconfig b/init/Kconfig index f977086e118a..b170aa1d43bd 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
@@ -304,6 +304,22 @@ config RELAY | |||
304 | 304 | ||
305 | If unsure, say N. | 305 | If unsure, say N. |
306 | 306 | ||
307 | config BLK_DEV_INITRD | ||
308 | bool "Initial RAM filesystem and RAM disk (initramfs/initrd) support" | ||
309 | depends on BROKEN || !FRV | ||
310 | help | ||
311 | The initial RAM filesystem is a ramfs which is loaded by the | ||
312 | boot loader (loadlin or lilo) and that is mounted as root | ||
313 | before the normal boot procedure. It is typically used to | ||
314 | load modules needed to mount the "real" root file system, | ||
315 | etc. See <file:Documentation/initrd.txt> for details. | ||
316 | |||
317 | If RAM disk support (BLK_DEV_RAM) is also included, this | ||
318 | also enables initial RAM disk (initrd) support and adds | ||
319 | 15 Kbytes (more on some other architectures) to the kernel size. | ||
320 | |||
321 | If unsure say Y. | ||
322 | |||
307 | if BLK_DEV_INITRD | 323 | if BLK_DEV_INITRD |
308 | 324 | ||
309 | source "usr/Kconfig" | 325 | source "usr/Kconfig" |