aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyungsik Lee2013-07-08 18:01:46 -0500
committerLinus Torvalds2013-07-09 12:33:30 -0500
commite76e1fdfa8f8dc1ea6699923cf5d92b5bee9c936 (patch)
treed216233bcf256a8a3d8912cebbbf82032bb7b715 /init/Kconfig
parentcffb78b0e0b3a30b059b27a1d97500cf6464efa9 (diff)
downloadkernel-e76e1fdfa8f8dc1ea6699923cf5d92b5bee9c936.tar.gz
kernel-e76e1fdfa8f8dc1ea6699923cf5d92b5bee9c936.tar.xz
kernel-e76e1fdfa8f8dc1ea6699923cf5d92b5bee9c936.zip
lib: add support for LZ4-compressed kernel
Add support for extracting LZ4-compressed kernel images, as well as LZ4-compressed ramdisk images in the kernel boot process. Signed-off-by: Kyungsik Lee <kyungsik.lee@lge.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Borislav Petkov <bp@alien8.de> Cc: Florian Fainelli <florian@openwrt.org> Cc: Yann Collet <yann.collet.73@gmail.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/Kconfig17
1 files changed, 16 insertions, 1 deletions
diff --git a/init/Kconfig b/init/Kconfig
index ea1be003275a..54d3fa5ae723 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -112,10 +112,13 @@ config HAVE_KERNEL_XZ
112config HAVE_KERNEL_LZO 112config HAVE_KERNEL_LZO
113 bool 113 bool
114 114
115config HAVE_KERNEL_LZ4
116 bool
117
115choice 118choice
116 prompt "Kernel compression mode" 119 prompt "Kernel compression mode"
117 default KERNEL_GZIP 120 default KERNEL_GZIP
118 depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO 121 depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4
119 help 122 help
120 The linux kernel is a kind of self-extracting executable. 123 The linux kernel is a kind of self-extracting executable.
121 Several compression algorithms are available, which differ 124 Several compression algorithms are available, which differ
@@ -182,6 +185,18 @@ config KERNEL_LZO
182 size is about 10% bigger than gzip; however its speed 185 size is about 10% bigger than gzip; however its speed
183 (both compression and decompression) is the fastest. 186 (both compression and decompression) is the fastest.
184 187
188config KERNEL_LZ4
189 bool "LZ4"
190 depends on HAVE_KERNEL_LZ4
191 help
192 LZ4 is an LZ77-type compressor with a fixed, byte-oriented encoding.
193 A preliminary version of LZ4 de/compression tool is available at
194 <https://code.google.com/p/lz4/>.
195
196 Its compression ratio is worse than LZO. The size of the kernel
197 is about 8% bigger than LZO. But the decompression speed is
198 faster than LZO.
199
185endchoice 200endchoice
186 201
187config DEFAULT_HOSTNAME 202config DEFAULT_HOSTNAME