mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Russell King <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Yann Collet <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
cffb78b0e0
commit
e76e1fdfa8
10 changed files with 243 additions and 2 deletions
17
init/Kconfig
17
init/Kconfig
|
|
@ -112,10 +112,13 @@ config HAVE_KERNEL_XZ
|
|||
config HAVE_KERNEL_LZO
|
||||
bool
|
||||
|
||||
config HAVE_KERNEL_LZ4
|
||||
bool
|
||||
|
||||
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
|
||||
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
|
||||
|
|
@ -182,6 +185,18 @@ config KERNEL_LZO
|
|||
size is about 10% bigger than gzip; however its speed
|
||||
(both compression and decompression) is the fastest.
|
||||
|
||||
config KERNEL_LZ4
|
||||
bool "LZ4"
|
||||
depends on HAVE_KERNEL_LZ4
|
||||
help
|
||||
LZ4 is an LZ77-type compressor with a fixed, byte-oriented encoding.
|
||||
A preliminary version of LZ4 de/compression tool is available at
|
||||
<https://code.google.com/p/lz4/>.
|
||||
|
||||
Its compression ratio is worse than LZO. The size of the kernel
|
||||
is about 8% bigger than LZO. But the decompression speed is
|
||||
faster than LZO.
|
||||
|
||||
endchoice
|
||||
|
||||
config DEFAULT_HOSTNAME
|
||||
|
|
|
|||
Loading…
Reference in a new issue