Add support for LZ4 decompression algorithm
authorJulius Werner <jwerner@chromium.org>
Wed, 7 Oct 2015 03:03:53 +0000 (20:03 -0700)
committerTom Rini <trini@konsulko.com>
Sun, 11 Oct 2015 21:12:10 +0000 (17:12 -0400)
commit027b728d4aafb5cf97abc804944a77b837b0f07f
treee7078c28ab243f5397584eba3aace01fbdd0d208
parentb6b5e394db62ac17e496dce9e6e9451435c8be62
Add support for LZ4 decompression algorithm

This patch adds support for LZ4-compressed FIT image contents. This
algorithm has a slightly worse compression ration than LZO while being
nearly twice as fast to decompress. When loading images from a fast
storage medium this usually results in a boot time win.

Sandbox-tested only since I don't have a U-Boot development system set
up right now. The code was imported unchanged from coreboot where it's
proven to work, though. I'm mostly interested in getting this recognized
by mkImage for use in a downstream project.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
common/bootm.c
common/image.c
configs/sandbox_defconfig
include/common.h
include/image.h
lib/Kconfig
lib/Makefile
lib/lz4.c [new file with mode: 0644]
lib/lz4_wrapper.c [new file with mode: 0644]
test/compression.c