scripts/extract-ikconfig: add zstd compression support
authorThitat Auareesuksakul <thitat@flux.ci>
Wed, 24 Aug 2022 20:03:40 +0000 (03:03 +0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 29 Aug 2022 04:58:47 +0000 (13:58 +0900)
Add extract-ikconfig support for kernel images compressed with zstd.

Signed-off-by: Thitat Auareesuksakul <thitat@flux.ci>
Tested-by: Nicolas Schier <n.schier@avm.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/extract-ikconfig

index 3b42f25..8df33e7 100755 (executable)
@@ -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