Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Add support of LZO-compressed kernels

The necessary changes to the x86 Kconfig and boot/compressed to allow the
use of this new compression method.

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Patchwork: http://patchwork.linux-mips.org/patch/857/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Wu Zhangjin and committed by
Ralf Baechle
fe1d45e0 be8cde8b

+7
+1
arch/mips/Kconfig
··· 1311 1311 select HAVE_KERNEL_GZIP 1312 1312 select HAVE_KERNEL_BZIP2 1313 1313 select HAVE_KERNEL_LZMA 1314 + select HAVE_KERNEL_LZO 1314 1315 1315 1316 config SYS_SUPPORTS_ZBOOT_UART16550 1316 1317 bool
+2
arch/mips/boot/compressed/Makefile
··· 41 41 suffix_$(CONFIG_KERNEL_GZIP) = gz 42 42 suffix_$(CONFIG_KERNEL_BZIP2) = bz2 43 43 suffix_$(CONFIG_KERNEL_LZMA) = lzma 44 + suffix_$(CONFIG_KERNEL_LZO) = lzo 44 45 tool_$(CONFIG_KERNEL_GZIP) = gzip 45 46 tool_$(CONFIG_KERNEL_BZIP2) = bzip2 46 47 tool_$(CONFIG_KERNEL_LZMA) = lzma 48 + tool_$(CONFIG_KERNEL_LZO) = lzo 47 49 $(obj)/vmlinux.$(suffix_y): $(obj)/vmlinux.bin 48 50 $(call if_changed,$(tool_y)) 49 51
+4
arch/mips/boot/compressed/decompress.c
··· 77 77 #include "../../../../lib/decompress_unlzma.c" 78 78 #endif 79 79 80 + #ifdef CONFIG_KERNEL_LZO 81 + #include "../../../../lib/decompress_unlzo.c" 82 + #endif 83 + 80 84 void decompress_kernel(unsigned long boot_heap_start) 81 85 { 82 86 int zimage_size;