diff options
author | Kyungsik Lee <kyungsik.lee@lge.com> | 2013-07-08 19:01:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-09 13:33:30 -0400 |
commit | e76e1fdfa8f8dc1ea6699923cf5d92b5bee9c936 (patch) | |
tree | d216233bcf256a8a3d8912cebbbf82032bb7b715 /init | |
parent | cffb78b0e0b3a30b059b27a1d97500cf6464efa9 (diff) |
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')
-rw-r--r-- | init/Kconfig | 17 |
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 | |||
112 | config HAVE_KERNEL_LZO | 112 | config HAVE_KERNEL_LZO |
113 | bool | 113 | bool |
114 | 114 | ||
115 | config HAVE_KERNEL_LZ4 | ||
116 | bool | ||
117 | |||
115 | choice | 118 | choice |
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 | ||
188 | config 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 | |||
185 | endchoice | 200 | endchoice |
186 | 201 | ||
187 | config DEFAULT_HOSTNAME | 202 | config DEFAULT_HOSTNAME |