1 diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
2 index 350921d..34163da 100644
6 select HAVE_GENERIC_DMA_COHERENT
7 select HAVE_KERNEL_GZIP
9 + select HAVE_KERNEL_LZMA
10 select HAVE_PERF_EVENTS
11 select PERF_USE_VMALLOC
13 diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile
14 index 2d4d88b..3906432 100644
15 --- a/arch/arm/boot/compressed/Makefile
16 +++ b/arch/arm/boot/compressed/Makefile
17 @@ -65,6 +65,7 @@ SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/BSS_START/$(ZBSSADDR)/
19 suffix_$(CONFIG_KERNEL_GZIP) = gzip
20 suffix_$(CONFIG_KERNEL_LZO) = lzo
21 +suffix_$(CONFIG_KERNEL_LZMA) = lzma
23 targets := vmlinux vmlinux.lds \
24 piggy.$(suffix_y) piggy.$(suffix_y).o \
25 diff --git a/arch/arm/boot/compressed/misc.c b/arch/arm/boot/compressed/misc.c
26 index 7e0fe4d..4e35a10 100644
27 --- a/arch/arm/boot/compressed/decompress.c
28 +++ b/arch/arm/boot/compressed/decompress.c
30 #include "../../../../lib/decompress_unlzo.c"
33 +#ifdef CONFIG_KERNEL_LZMA
34 +#include "../../../../lib/decompress_unlzma.c"
37 void do_decompress(u8 *input, int len, u8 *output, void (*error)(char *x))
39 decompress(input, len, NULL, NULL, output, NULL, error);
40 diff --git a/arch/arm/boot/compressed/piggy.lzma.S b/arch/arm/boot/compressed/piggy.lzma.S
42 index 0000000..d7e69cf
44 +++ b/arch/arm/boot/compressed/piggy.lzma.S
46 + .section .piggydata,#alloc
49 + .incbin "arch/arm/boot/compressed/piggy.lzma"
50 + .globl input_data_end