projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
270f871
)
image: add lz4 zstd compression magic map
author
Artem Lapkin
<email2tema@gmail.com>
Tue, 31 Aug 2021 10:22:18 +0000
(18:22 +0800)
committer
Tom Rini
<trini@konsulko.com>
Thu, 23 Sep 2021 18:15:32 +0000
(14:15 -0400)
Add lz4 and zstd compression magic map. Already can decompress images
with lz4 and zstd compression type.
Signed-off-by: Artem Lapkin <art@khadas.com>
common/image.c
patch
|
blob
|
history
diff --git
a/common/image.c
b/common/image.c
index
59c52a1
..
e199d61
100644
(file)
--- 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", {}, },
};