summaryrefslogtreecommitdiff
path: root/arch/powerpc/boot/decompress.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2016-09-22 09:54:34 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2016-09-28 07:35:14 +0300
commitc762c69e106f2b41ef39981ba46bda0ae8119db5 (patch)
tree5cc3b8264952c39f8c57a1f7cb467c1a38f24824 /arch/powerpc/boot/decompress.c
parentf1e510bbb9f265acb4147a3a650882876a76d48b (diff)
downloadlinux-c762c69e106f2b41ef39981ba46bda0ae8119db5.tar.xz
powerpc/boot: Add support for XZ compression
This patch adds an option to use XZ compression for the kernel image. Currently this is only enabled for 64-bit Book3S targets, which is roughly equivalent to the platforms that use the kernel's zImage wrapper, and that have been tested. The bulk of the 32-bit platforms and 64-bit BookE use uboot images, which relies on uboot implementing XZ. In future we can enable XZ support for those targets once someone has tested it. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot/decompress.c')
-rw-r--r--arch/powerpc/boot/decompress.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/powerpc/boot/decompress.c b/arch/powerpc/boot/decompress.c
index 3b414d425f16..3aff4423ad01 100644
--- a/arch/powerpc/boot/decompress.c
+++ b/arch/powerpc/boot/decompress.c
@@ -37,6 +37,11 @@
# include "decompress_inflate.c"
#endif
+#ifdef CONFIG_KERNEL_XZ
+# include "xz_config.h"
+# include "../../../lib/decompress_unxz.c"
+#endif
+
/* globals for tracking the state of the decompression */
static unsigned long decompressed_bytes;
static unsigned long limit;