fit: Support compression for non-kernel components (e.g. FDT)
authorJulius Werner <jwerner@chromium.org>
Thu, 25 Jul 2019 02:37:55 +0000 (19:37 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jul 2019 13:32:07 +0000 (09:32 -0400)
commitb1307f884a913f52a201491053b6d221c4204f60
treec4add1ac191f83f4bc3858a1b3c50feb8fca9b75
parent2090854cd2f228bab546f2718ccdbe1664830d3c
fit: Support compression for non-kernel components (e.g. FDT)

This patch adds support for compressing non-kernel image nodes in a FIT
image (kernel nodes could already be compressed previously). This can
reduce the size of FIT images and therefore improve boot times
(especially when an image bundles many different kernel FDTs). The
images will automatically be decompressed on load.

This patch does not support extracting compatible strings from
compressed FDTs, so it's not very helpful in conjunction with
CONFIG_FIT_BEST_MATCH yet, but it can already be used in environments
that select the configuration to load explicitly.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
common/image-fit.c
test/py/tests/test_fit.py