From: Adam Borowski Date: Sat, 7 Jul 2018 00:15:48 +0000 (+0200) Subject: scripts: teach extract-vmlinux about LZ4 and ZSTD X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=47a18a2dabba99c749b88867a9eef7ca48058e92;p=linux.git scripts: teach extract-vmlinux about LZ4 and ZSTD Note that the LZ4 signature is different than that of modern LZ4 as we use the "legacy" format which suffers from some downsides like inability to disable compression. Signed-off-by: Adam Borowski Signed-off-by: Masahiro Yamada --- diff --git a/scripts/extract-vmlinux b/scripts/extract-vmlinux index 5061abcc25409..e6239f39abadd 100755 --- a/scripts/extract-vmlinux +++ b/scripts/extract-vmlinux @@ -57,6 +57,8 @@ try_decompress '\3757zXZ\000' abcde unxz try_decompress 'BZh' xy bunzip2 try_decompress '\135\0\0\0' xxx unlzma try_decompress '\211\114\132' xy 'lzop -d' +try_decompress '\002!L\030' xxx 'lz4 -d' +try_decompress '(\265/\375' xxx unzstd # Bail out: echo "$me: Cannot find vmlinux." >&2