Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751559AbbDNEoO (ORCPT ); Tue, 14 Apr 2015 00:44:14 -0400 Received: from alexpilon.ca ([69.165.220.233]:35345 "EHLO alexpilon.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751002AbbDNEoH (ORCPT ); Tue, 14 Apr 2015 00:44:07 -0400 X-Greylist: delayed 317 seconds by postgrey-1.27 at vger.kernel.org; Tue, 14 Apr 2015 00:44:07 EDT Date: Tue, 14 Apr 2015 00:38:33 -0400 From: Alex Pilon To: linux-kernel@vger.kernel.org Subject: [PATCH] scripts/extract-ikconfig: Support LZ4-compressed images. Message-ID: <20150414043833.GA7941@alexpilon.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1135 Lines: 32 Support for kernel image LZ4 compression was added around 3.11, but not the corresponding kernel .config extraction. This makes possible extracting the kernel config for LZ4-compressed kernels you're not running, or the current LZ4-compressed kernel if compiled without /proc/config.gz support. Signed-off-by: Alex Pilon --- scripts/extract-ikconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/extract-ikconfig b/scripts/extract-ikconfig index e186242..3b42f25 100755 --- a/scripts/extract-ikconfig +++ b/scripts/extract-ikconfig @@ -61,6 +61,7 @@ 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' +try_decompress '\002\041\114\030' xyy 'lz4 -d -l' # Bail out: echo "$me: Cannot find kernel config." >&2 -- 2.3.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/