
This patch series adds compression support for non-kernel FIT image nodes (e.g. FDTs). The first patch is a preparatory refactoring, the second adds the compression support itself, and the third adds a new feature to compatible string matching that allows it to be useful with compressed FDTs.
Sandbox-tested with FIT images with and without compressed FDTs, with and without overlays, in both compatible string matching and direct config selection modes. Also expanded the test_fit pytest to include a case with compressed kernel, FDT and ramdisk.
Julius Werner (3): common: Move bootm_decomp_image() to image.c (as image_decomp()) fit: Support compression for non-kernel components (e.g. FDT) fit: Support compat string property in configuration node
- Changes for v6 - Fixed test_fit.py (had a printf() without a newline) - Changes for v5 - Added first patch to support tools-only_defconfig (which doesn't build bootm.c) - Changes for v4 - Added documentation - Changes for v3 - Added tests, fixed a few minor issues - Changes for v2 - Changed to support all non-kernel image types (not just FDT)
common/bootm.c | 148 +++------------------- common/image-fit.c | 143 ++++++++++++--------- common/image.c | 111 ++++++++++++++++ doc/uImage.FIT/kernel_fdts_compressed.its | 73 +++++++++++ doc/uImage.FIT/source_file_format.txt | 7 + include/bootm.h | 17 --- include/image.h | 17 +++ test/compression.c | 24 ++-- test/py/tests/test_fit.py | 29 ++++- 9 files changed, 351 insertions(+), 218 deletions(-) create mode 100644 doc/uImage.FIT/kernel_fdts_compressed.its