Commit ab94e4666d5cee0e393367671eeab4111105bffb
Committed by
Michal Marek
1 parent
f4ed1009fc
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 5 additions and 4 deletions Side-by-side Diff
scripts/extract-ikconfig
... | ... | @@ -56,10 +56,11 @@ |
56 | 56 | dump_config "$img" |
57 | 57 | |
58 | 58 | # That didn't work, so retry after decompression. |
59 | -try_decompress '\037\213\010' xy gunzip | |
60 | -try_decompress 'BZh' xy bunzip2 | |
61 | -try_decompress '\135\0\0\0' xxx unlzma | |
62 | -try_decompress '\211\114\132' xy 'lzop -d' | |
59 | +try_decompress '\037\213\010' xy gunzip | |
60 | +try_decompress '\3757zXZ\000' abcde unxz | |
61 | +try_decompress 'BZh' xy bunzip2 | |
62 | +try_decompress '\135\0\0\0' xxx unlzma | |
63 | +try_decompress '\211\114\132' xy 'lzop -d' | |
63 | 64 | |
64 | 65 | # Bail out: |
65 | 66 | echo "$me: Cannot find kernel config." >&2 |