MIPS: Add support for ZSTD-compressed kernels
authorPaul Cercueil <paul@crapouillou.net>
Tue, 1 Sep 2020 14:26:51 +0000 (16:26 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 3 Sep 2020 08:13:24 +0000 (10:13 +0200)
commita510b616131f85215ba156ed67e5ed1c0701f80f
tree48a1c75c75ee4d4fb7633feba8b52ab8ef0752ae
parent1c4dd334df3a0627ff57b35612057e2b497e373b
MIPS: Add support for ZSTD-compressed kernels

Add support for self-extracting kernels with a ZSTD compression.

Tested on a kernel for the GCW-Zero, it allows to reduce the size of the
kernel file from 4.1 MiB with gzip to 3.5 MiB with ZSTD, and boots just
as fast.

Compressed kernels are now also compiled with -D__DISABLE_EXPORTS in
order to disable the EXPORT_SYMBOL() macros inside of
lib/zstd/decompress.c.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Kconfig
arch/mips/boot/compressed/Makefile
arch/mips/boot/compressed/decompress.c
arch/mips/boot/compressed/string.c