43 lines
1.2 KiB
Diff
43 lines
1.2 KiB
Diff
--- a/arch/arm/Kconfig
|
|
+++ b/arch/arm/Kconfig
|
|
@@ -20,6 +20,7 @@
|
|
select HAVE_FUNCTION_TRACER if (!XIP_KERNEL)
|
|
select HAVE_GENERIC_DMA_COHERENT
|
|
select HAVE_KERNEL_GZIP
|
|
+ select HAVE_KERNEL_LZMA
|
|
select HAVE_KERNEL_LZO
|
|
select HAVE_PERF_EVENTS
|
|
select PERF_USE_VMALLOC
|
|
--- a/arch/arm/boot/compressed/Makefile
|
|
+++ b/arch/arm/boot/compressed/Makefile
|
|
@@ -64,6 +64,7 @@ endif
|
|
SEDFLAGS = s/TEXT_START/$(ZTEXTADDR)/;s/BSS_START/$(ZBSSADDR)/
|
|
|
|
suffix_$(CONFIG_KERNEL_GZIP) = gzip
|
|
+suffix_$(CONFIG_KERNEL_LZMA) = lzma
|
|
suffix_$(CONFIG_KERNEL_LZO) = lzo
|
|
|
|
targets := vmlinux vmlinux.lds \
|
|
--- a/arch/arm/boot/compressed/decompress.c 2010-05-18 14:20:38.000000000 +0000
|
|
+++ b/arch/arm/boot/compressed/decompress.c 2010-05-18 14:21:06.000000000 +0000
|
|
@@ -36,6 +36,10 @@
|
|
#include "../../../../lib/decompress_inflate.c"
|
|
#endif
|
|
|
|
+#ifdef CONFIG_KERNEL_LZMA
|
|
+#include "../../../../lib/decompress_unlzma.c"
|
|
+#endif
|
|
+
|
|
#ifdef CONFIG_KERNEL_LZO
|
|
#include "../../../../lib/decompress_unlzo.c"
|
|
#endif
|
|
--- /dev/null
|
|
+++ b/arch/arm/boot/compressed/piggy.lzma.S
|
|
@@ -0,0 +1,6 @@
|
|
+ .section .piggydata,#alloc
|
|
+ .globl input_data
|
|
+input_data:
|
|
+ .incbin "arch/arm/boot/compressed/piggy.lzma"
|
|
+ .globl input_data_end
|
|
+input_data_end:
|