Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752244Ab3JHMeL (ORCPT ); Tue, 8 Oct 2013 08:34:11 -0400 Received: from mail.abilis.ch ([195.70.19.74]:19736 "EHLO mail.abilis.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751635Ab3JHMeH (ORCPT ); Tue, 8 Oct 2013 08:34:07 -0400 X-Greylist: delayed 714 seconds by postgrey-1.27 at vger.kernel.org; Tue, 08 Oct 2013 08:34:05 EDT From: Christian Ruppert To: linux-kernel@vger.kernel.org Cc: alexander.stein@systec-electronic.com, Vineet Gupta , "Eric W. Biederman" , Serge Hallyn , "Paul E. McKenney" , "David S. Miller" , Frederic Weisbecker , Noam Camus , pierrick hascoet , Andrew Morton , Christian Ruppert Subject: [PATCH REBASE] Add option to disable kernel compression Date: Tue, 8 Oct 2013 14:33:32 +0200 Message-Id: <1381235612-23988-1-git-send-email-christian.ruppert@abilis.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <2065777.DKEM6dSyjc@ws-stein> References: <2065777.DKEM6dSyjc@ws-stein> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1496 Lines: 45 Until now, kernel compression can only be disabled by deselecting HAVE_ in the architecture Kconfig. However, some users/platforms within the same architecture might want to use compression while others might want to disable it. This patch is a solution to the dilemma. Signed-off-by: Christian Ruppert --- init/Kconfig | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/init/Kconfig b/init/Kconfig index fed81b5..7db419b 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -118,7 +118,6 @@ config HAVE_KERNEL_LZ4 choice prompt "Kernel compression mode" default KERNEL_GZIP - depends on HAVE_KERNEL_GZIP || HAVE_KERNEL_BZIP2 || HAVE_KERNEL_LZMA || HAVE_KERNEL_XZ || HAVE_KERNEL_LZO || HAVE_KERNEL_LZ4 help The linux kernel is a kind of self-extracting executable. Several compression algorithms are available, which differ @@ -137,6 +136,13 @@ choice If in doubt, select 'gzip' +config KERNEL_UNCOMPRESSED + bool "No compression" + help + No compression at all. The kernel is huge but the compression and + decompression times are zero. + This is usually not what you want. + config KERNEL_GZIP bool "Gzip" depends on HAVE_KERNEL_GZIP -- 1.7.1 -- 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/