powerpc/boot: Use the pre-boot decompression API
authorOliver O'Halloran <oohall@gmail.com>
Thu, 22 Sep 2016 06:54:31 +0000 (16:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 28 Sep 2016 04:31:43 +0000 (14:31 +1000)
commit1b7898ee276b39e54d870dc4ef3374f663d0b426
tree1c41ed5b37a1214816eb732c7d75cd4326e82deb
parent22750d98b00bd704694224d6df69a1a6f29ea22c
powerpc/boot: Use the pre-boot decompression API

Currently the powerpc boot wrapper has its own wrapper around zlib to
handle decompressing gzipped kernels. The kernel decompressor library
functions now provide a generic interface that can be used in the
pre-boot environment. This allows boot wrappers to easily support
different compression algorithms. This patch converts the wrapper to use
this new API, but does not add support for using new algorithms.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/boot/Makefile
arch/powerpc/boot/decompress.c [new file with mode: 0644]
arch/powerpc/boot/main.c
arch/powerpc/boot/ops.h