Skip to contentSkip to conversation

image: add lz4 zstd compression magic map

PATCH In review Artem Lapkin 2 participants 2 messages Aug 31, 2021 – Sep 24, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image: add lz4 zstd compression magic map

Add lz4 and zstd compression magic map. Already can decompress images with lz4 and zstd compression type.

---
 common/image.c | 2 ++
 1 file changed, 2 insertions(+)
common/image.c +2 -0
index 59c52a1f9a..e199d61a4c 100644
@@ -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",		{},	},
 };
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 4 lines · Artem Lapkin

Add lz4 and zstd compression magic map. Already can decompress images with lz4 and zstd compression type.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom