MIPS: ZBOOT: Support XZ compression scheme
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 11 Sep 2013 10:51:41 +0000 (11:51 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 29 Oct 2013 20:24:28 +0000 (21:24 +0100)
commit4e23eb631c84090d2122a0f8c4a331b8e0ba0d99
tree0ed81e2bca50f3badeadefb2f4352f1dfcffc13e
parent26fca83a22f66e2ea0339e6b1ee1bdc628c1508b
MIPS: ZBOOT: Support XZ compression scheme

Add support for the XZ compression scheme in the ZBOOT decompression
stub, in order to support it we need to:

- select the "xzkern" compression tool to compress the vmlinux.bin
  payload
- link with ashldi3.o for xz_dec_run() to work
- memcpy() is also required for decompress_unxz.c so we share the
  implementation between GZIP and XZ

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: blogic@openwrt.org
Cc: james.hogan@imgtec.com
Patchwork: https://patchwork.linux-mips.org/patch/5818/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/boot/compressed/Makefile
arch/mips/boot/compressed/decompress.c