From: Alex Pilon Date: Tue, 14 Apr 2015 04:38:33 +0000 (-0400) Subject: scripts/extract-ikconfig: Support LZ4-compressed images. X-Git-Tag: v4.14-rc1~5530^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99b2cdde83726a89daadbfd1264fb9a3b91eed0b;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Michal Marek --- diff --git a/scripts/extract-ikconfig b/scripts/extract-ikconfig index e186242..3b42f25 100755 --- a/scripts/extract-ikconfig +++ b/scripts/extract-ikconfig @@ -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