mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
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>
This commit is contained in:
@@ -167,6 +167,7 @@ static const table_entry_t uimage_comp[] = {
|
||||
{ IH_COMP_GZIP, "gzip", "gzip compressed", },
|
||||
{ IH_COMP_LZMA, "lzma", "lzma compressed", },
|
||||
{ IH_COMP_LZO, "lzo", "lzo compressed", },
|
||||
{ IH_COMP_LZ4, "lz4", "lz4 compressed", },
|
||||
{ -1, "", "", },
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user