Skip to contentSkip to conversation

scripts/extract-ikconfig: add zstd compression support

PATCH In review Thitat Auareesuksakul 3 participants 3 messages Aug 24, 2022 – Aug 27, 2022 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts/extract-ikconfig: add zstd compression support

Add extract-ikconfig support for kernel images compressed with zstd.

---
 scripts/extract-ikconfig | 1 +
 1 file changed, 1 insertion(+)
scripts/extract-ikconfig +1 -0
index 3b42f255e2ba..8df33e7d6daa 100755
@@ -62,6 +62,7 @@ try_decompress 'BZh'          xy    bunzip2
 try_decompress '\135\0\0\0'   xxx   unlzma
 try_decompress '\211\114\132' xy    'lzop -d'
 try_decompress '\002\041\114\030' xyy 'lz4 -d -l'
+try_decompress '\050\265\057\375' xxx unzstd
 
 # Bail out:
 echo "$me: Cannot find kernel config." >&2
Signature · 1 line
2.37.2
Tested-by on v1 1/1
#1 lore raw
Quoted 4 lines · Thitat Auareesuksakul

Add extract-ikconfig support for kernel images compressed with zstd.

---

Quoted 18 lines
 scripts/extract-ikconfig | 1 +
 1 file changed, 1 insertion(+)
scripts/extract-ikconfig +1 -0
index 3b42f255e2ba..8df33e7d6daa 100755
@@ -62,6 +62,7 @@ try_decompress 'BZh'          xy    bunzip2
 try_decompress '\135\0\0\0'   xxx   unlzma
 try_decompress '\211\114\132' xy    'lzop -d'
 try_decompress '\002\041\114\030' xyy 'lz4 -d -l'
+try_decompress '\050\265\057\375' xxx unzstd
 
 # Bail out:
 echo "$me: Cannot find kernel config." >&2
Signature · 1 line
2.37.2
#2 lore raw
Quoted 22 lines · Nicolas Schier
Quoted 4 lines · Thitat Auareesuksakul

Add extract-ikconfig support for kernel images compressed with zstd.

---

Quoted 13 lines
 scripts/extract-ikconfig | 1 +
 1 file changed, 1 insertion(+)
scripts/extract-ikconfig +1 -0
index 3b42f255e2ba..8df33e7d6daa 100755
@@ -62,6 +62,7 @@ try_decompress 'BZh'          xy    bunzip2
 try_decompress '\135\0\0\0'   xxx   unlzma
 try_decompress '\211\114\132' xy    'lzop -d'
 try_decompress '\002\041\114\030' xyy 'lz4 -d -l'
+try_decompress '\050\265\057\375' xxx unzstd
 
Quoted 5 lines
Quoted 5 lines
scripts/extract-ikconfig +0 -1
 # Bail out:
 echo "$me: Cannot find kernel config." >&2
--

2.37.2

Applied to linux-kbuild. Thanks.

Signature · 2 lines
Best Regards
Masahiro Yamada