diff options
| author | Artem Lapkin <[email protected]> | 2021-08-31 18:22:18 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2021-09-23 14:15:32 -0400 |
| commit | 2ddb8fcd2e587f13a9b6f837518e64be6c44c29f (patch) | |
| tree | 78fe40e99488b93e380c88830c0fe11ef9d4739e | |
| parent | 270f8710f92fff3911a830b6c0bcb6fd229ccddd (diff) | |
image: add lz4 zstd compression magic map
Add lz4 and zstd compression magic map. Already can decompress images
with lz4 and zstd compression type.
Signed-off-by: Artem Lapkin <[email protected]>
| -rw-r--r-- | common/image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/image.c b/common/image.c index 59c52a1f9ad..e199d61a4c3 100644 --- a/common/image.c +++ b/common/image.c @@ -216,6 +216,8 @@ static const struct comp_magic_map image_comp[] = { { IH_COMP_GZIP, "gzip", {0x1f, 0x8b},}, { IH_COMP_LZMA, "lzma", {0x5d, 0x00},}, { IH_COMP_LZO, "lzo", {0x89, 0x4c},}, + { IH_COMP_LZ4, "lz4", {0x04, 0x22},}, + { IH_COMP_ZSTD, "zstd", {0x28, 0xb5},}, { IH_COMP_NONE, "none", {}, }, }; |
