Skip to content

Commit

Permalink
scripts/extract-ikconfig: add xz compression support
Browse files Browse the repository at this point in the history
Add support for kernels compressed with xz to the extract-ikconfig script.

Signed-off-by: Dick Streefland <[email protected]>
Acked-by: WANG Cong <[email protected]>
Signed-off-by: Michal Marek <[email protected]>
  • Loading branch information
streef authored and michal42 committed Feb 10, 2011
1 parent f4ed100 commit ab94e46
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/extract-ikconfig
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,11 @@ trap "rm -f $tmp1 $tmp2" 0
dump_config "$img"

# That didn't work, so retry after decompression.
try_decompress '\037\213\010' xy gunzip
try_decompress 'BZh' xy bunzip2
try_decompress '\135\0\0\0' xxx unlzma
try_decompress '\211\114\132' xy 'lzop -d'
try_decompress '\037\213\010' xy gunzip
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'

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

0 comments on commit ab94e46

Please sign in to comment.