Browse files

scripts/extract-ikconfig: add xz compression support

Add support for kernels compressed with xz to the extract-ikconfig script.

Signed-off-by: Dick Streefland <>
Acked-by: WANG Cong <>
Signed-off-by: Michal Marek <>
  • Loading branch information...
1 parent f4ed100 commit ab94e4666d5cee0e393367671eeab4111105bffb @streef streef committed with michal42 Jan 23, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 scripts/extract-ikconfig
@@ -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

0 comments on commit ab94e46

Please sign in to comment.