Skip to content

Commit

Permalink
scripts: teach extract-vmlinux about LZ4 and ZSTD
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
kilobyte authored and masahir0y committed Jul 8, 2018
1 parent 6916162 commit 47a18a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/extract-vmlinux
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 47a18a2

Please sign in to comment.