From patchwork Sun Jan 23 23:44:57 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dick Streefland X-Patchwork-Id: 499541 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0NNv7ZV028504 for ; Sun, 23 Jan 2011 23:57:07 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752772Ab1AWX4j (ORCPT ); Sun, 23 Jan 2011 18:56:39 -0500 Received: from 59-72-223.ftth.xms.internl.net ([85.223.72.59]:39456 "EHLO salamandra.streefland.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752748Ab1AWX4i (ORCPT ); Sun, 23 Jan 2011 18:56:38 -0500 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 23 Jan 2011 23:57:07 +0000 (UTC) X-Greylist: delayed 699 seconds by postgrey-1.27 at vger.kernel.org; Sun, 23 Jan 2011 18:56:38 EST Received: from zarniwoop (zarniwoop [10.0.0.5]) by salamandra.streefland.net (Postfix) with ESMTP id 9E1B1407B9; Mon, 24 Jan 2011 00:44:57 +0100 (CET) Received: by zarniwoop (Postfix, from userid 1000) id 8055DE1030; Mon, 24 Jan 2011 00:44:57 +0100 (CET) Date: Mon, 24 Jan 2011 00:44:57 +0100 From: Dick Streefland To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Arkadiusz Miskiewicz Subject: [PATCH] scripts/extract-ikconfig: add xz compression support Message-ID: <20110123234457.GB2321@streefland.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org diff --git a/scripts/extract-ikconfig b/scripts/extract-ikconfig index 1512c0a..e186242 100755 --- a/scripts/extract-ikconfig +++ b/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