Skip to content

Commit

Permalink
scripts/extract-ikconfig: Support LZ4-compressed images.
Browse files Browse the repository at this point in the history
Support for kernel image LZ4 compression was added around 3.11, but not
the corresponding kernel .config extraction.

This makes possible extracting the kernel config for LZ4-compressed
kernels you're not running, or the current LZ4-compressed kernel if
compiled without /proc/config.gz support.

Signed-off-by: Alex Pilon <alp+linux@alexpilon.ca>
Signed-off-by: Michal Marek <mmarek@suse.cz>
  • Loading branch information
Alex Pilon authored and michal42 committed Apr 15, 2015
1 parent 2c2b913 commit 99b2cdd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/extract-ikconfig
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ 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\041\114\030' xyy 'lz4 -d -l'

# Bail out:
echo "$me: Cannot find kernel config." >&2
Expand Down

0 comments on commit 99b2cdd

Please sign in to comment.