Skip to content

Commit fe1d45e

Browse files
lzufalconralfbaechle
authored andcommitted
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>
1 parent be8cde8 commit fe1d45e

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎arch/mips/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,6 +1311,7 @@ config SYS_SUPPORTS_ZBOOT
13111311
select HAVE_KERNEL_GZIP
13121312
select HAVE_KERNEL_BZIP2
13131313
select HAVE_KERNEL_LZMA
1314+
select HAVE_KERNEL_LZO
13141315

13151316
config SYS_SUPPORTS_ZBOOT_UART16550
13161317
bool

‎arch/mips/boot/compressed/Makefile‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ $(obj)/vmlinux.bin: $(KBUILD_IMAGE)
4141
suffix_$(CONFIG_KERNEL_GZIP) = gz
4242
suffix_$(CONFIG_KERNEL_BZIP2) = bz2
4343
suffix_$(CONFIG_KERNEL_LZMA) = lzma
44+
suffix_$(CONFIG_KERNEL_LZO) = lzo
4445
tool_$(CONFIG_KERNEL_GZIP) = gzip
4546
tool_$(CONFIG_KERNEL_BZIP2) = bzip2
4647
tool_$(CONFIG_KERNEL_LZMA) = lzma
48+
tool_$(CONFIG_KERNEL_LZO) = lzo
4749
$(obj)/vmlinux.$(suffix_y): $(obj)/vmlinux.bin
4850
$(call if_changed,$(tool_y))
4951

‎arch/mips/boot/compressed/decompress.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ void *memset(void *s, int c, size_t n)
7777
#include "../../../../lib/decompress_unlzma.c"
7878
#endif
7979

80+
#ifdef CONFIG_KERNEL_LZO
81+
#include "../../../../lib/decompress_unlzo.c"
82+
#endif
83+
8084
void decompress_kernel(unsigned long boot_heap_start)
8185
{
8286
int zimage_size;

0 commit comments

Comments
 (0)