Skip to content

Commit 99b2cdd

Browse files
Alex Pilonmichal42
Alex Pilon
authored andcommitted
scripts/extract-ikconfig: Support LZ4-compressed images.
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 <[email protected]> Signed-off-by: Michal Marek <[email protected]>
1 parent 2c2b913 commit 99b2cdd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: scripts/extract-ikconfig

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ try_decompress '\3757zXZ\000' abcde unxz
6161
try_decompress 'BZh' xy bunzip2
6262
try_decompress '\135\0\0\0' xxx unlzma
6363
try_decompress '\211\114\132' xy 'lzop -d'
64+
try_decompress '\002\041\114\030' xyy 'lz4 -d -l'
6465

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

0 commit comments

Comments
 (0)