aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/extract-ikconfig
diff options
context:
space:
mode:
authorAlex Pilon <alp+linux@alexpilon.ca>2015-04-14 00:38:33 -0400
committerMichal Marek <mmarek@suse.cz>2015-04-15 08:01:12 -0400
commit99b2cdde83726a89daadbfd1264fb9a3b91eed0b (patch)
treefd3a9518816096e89217776fb08f7aff4d7f05f7 /scripts/extract-ikconfig
parent2c2b913d19e149bf7c4ae5f62634fc3b46a06306 (diff)
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 <alp+linux@alexpilon.ca> Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/extract-ikconfig')
-rwxr-xr-xscripts/extract-ikconfig1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/extract-ikconfig b/scripts/extract-ikconfig
index e1862429ccda..3b42f255e2ba 100755
--- a/scripts/extract-ikconfig
+++ b/scripts/extract-ikconfig
@@ -61,6 +61,7 @@ try_decompress '\3757zXZ\000' abcde unxz
61try_decompress 'BZh' xy bunzip2 61try_decompress 'BZh' xy bunzip2
62try_decompress '\135\0\0\0' xxx unlzma 62try_decompress '\135\0\0\0' xxx unlzma
63try_decompress '\211\114\132' xy 'lzop -d' 63try_decompress '\211\114\132' xy 'lzop -d'
64try_decompress '\002\041\114\030' xyy 'lz4 -d -l'
64 65
65# Bail out: 66# Bail out:
66echo "$me: Cannot find kernel config." >&2 67echo "$me: Cannot find kernel config." >&2