lib: add support for LZO-compressed kernels
This patch series adds generic support for creating and extracting LZO-compressed kernel images, as well as support for using such images on the x86 and ARM architectures, and support for creating and using LZO-compressed initrd and initramfs images. Russell King said: : Testing on a Cortex A9 model: : - lzo decompressor is 65% of the time gzip takes to decompress a kernel : - lzo kernel is 9% larger than a gzip kernel : : which I'm happy to say confirms your figures when comparing the two. : : However, when comparing your new gzip code to the old gzip code: : - new is 99% of the size of the old code : - new takes 42% of the time to decompress than the old code : : What this means is that for a proper comparison, the results get even better: : - lzo is 7.5% larger than the old gzip'd kernel image : - lzo takes 28% of the time that the old gzip code took : : So the expense seems definitely worth the effort. The only reason I : can think of ever using gzip woul...
Showing
- include/linux/decompress/unlzo.h 10 additions, 0 deletionsinclude/linux/decompress/unlzo.h
- init/Kconfig 14 additions, 4 deletionsinit/Kconfig
- lib/decompress_unlzo.c 209 additions, 0 deletionslib/decompress_unlzo.c
- lib/lzo/lzo1x_decompress.c 6 additions, 3 deletionslib/lzo/lzo1x_decompress.c
- scripts/Makefile.lib 5 additions, 0 deletionsscripts/Makefile.lib
Please register or sign in to comment