diff options
author | Dick Streefland <dick@streefland.net> | 2011-01-23 18:44:57 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-02-10 09:23:03 -0500 |
commit | ab94e4666d5cee0e393367671eeab4111105bffb (patch) | |
tree | ac4752e7b07c5ff65d766e1f4cdda94577363bad /scripts | |
parent | f4ed1009fcea8502d1191ef3e435e9d83c286b80 (diff) |
scripts/extract-ikconfig: add xz compression support
Add support for kernels compressed with xz to the extract-ikconfig script.
Signed-off-by: Dick Streefland <dick@streefland.net>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/extract-ikconfig | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/extract-ikconfig b/scripts/extract-ikconfig index 1512c0a755ac..e1862429ccda 100755 --- a/scripts/extract-ikconfig +++ b/scripts/extract-ikconfig | |||
@@ -56,10 +56,11 @@ trap "rm -f $tmp1 $tmp2" 0 | |||
56 | dump_config "$img" | 56 | dump_config "$img" |
57 | 57 | ||
58 | # That didn't work, so retry after decompression. | 58 | # That didn't work, so retry after decompression. |
59 | try_decompress '\037\213\010' xy gunzip | 59 | try_decompress '\037\213\010' xy gunzip |
60 | try_decompress 'BZh' xy bunzip2 | 60 | try_decompress '\3757zXZ\000' abcde unxz |
61 | try_decompress '\135\0\0\0' xxx unlzma | 61 | try_decompress 'BZh' xy bunzip2 |
62 | try_decompress '\211\114\132' xy 'lzop -d' | 62 | try_decompress '\135\0\0\0' xxx unlzma |
63 | try_decompress '\211\114\132' xy 'lzop -d' | ||
63 | 64 | ||
64 | # Bail out: | 65 | # Bail out: |
65 | echo "$me: Cannot find kernel config." >&2 | 66 | echo "$me: Cannot find kernel config." >&2 |