Skip to content

Commit

Permalink
init/Kconfig: add option to disable kernel compression
Browse files Browse the repository at this point in the history
Some ARC users say they can boot faster with without kernel compression.
This probably depends on things like the FLASH chip they use etc.

Until now, kernel compression can only be disabled by removing "select
HAVE_<compression>" lines from the architecture Kconfig.  So add the
Kconfig logic to permit disabling of kernel compression.

Signed-off-by: Christian Ruppert <christian.ruppert@abilis.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Christian Ruppert authored and Linus Torvalds committed Nov 13, 2013
1 parent bb67093 commit 69f0554
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ config HAVE_KERNEL_LZ4
choice
prompt "Kernel compression mode"
default KERNEL_GZIP
depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4
help
The linux kernel is a kind of self-extracting executable.
Several compression algorithms are available, which differ
Expand All @@ -137,6 +136,13 @@ choice

If in doubt, select 'gzip'

config KERNEL_UNCOMPRESSED
bool "No compression"
help
No compression at all. The kernel is huge but the compression and
decompression times are zero.
This is usually not what you want.

config KERNEL_GZIP
bool "Gzip"
depends on HAVE_KERNEL_GZIP
Expand Down

0 comments on commit 69f0554

Please sign in to comment.