Skip to content

Commit 69f0554

Browse files
Christian Rupperttorvalds
authored andcommitted
init/Kconfig: add option to disable kernel compression
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>
1 parent bb67093 commit 69f0554

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎init/Kconfig‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ config HAVE_KERNEL_LZ4
118118
choice
119119
prompt "Kernel compression mode"
120120
default KERNEL_GZIP
121-
depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4
122121
help
123122
The linux kernel is a kind of self-extracting executable.
124123
Several compression algorithms are available, which differ
@@ -137,6 +136,13 @@ choice
137136

138137
If in doubt, select 'gzip'
139138

139+
config KERNEL_UNCOMPRESSED
140+
bool "No compression"
141+
help
142+
No compression at all. The kernel is huge but the compression and
143+
decompression times are zero.
144+
This is usually not what you want.
145+
140146
config KERNEL_GZIP
141147
bool "Gzip"
142148
depends on HAVE_KERNEL_GZIP

0 commit comments

Comments
 (0)