From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 3.mo5.mail-out.ovh.net ([46.105.40.108] helo=mo5.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W1A9s-0003uS-RN for barebox@lists.infradead.org; Thu, 09 Jan 2014 07:36:06 +0000 Received: from mail26.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo5.mail-out.ovh.net (Postfix) with SMTP id 001B5FF89F6 for ; Thu, 9 Jan 2014 08:31:21 +0100 (CET) Date: Thu, 9 Jan 2014 08:29:14 +0100 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20140109072914.GA21626@ns203013.ovh.net> References: <20140108024539.GA13274@san0.fossix.org> <20140108140748.GL6750@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20140108140748.GL6750@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] Make number of GPT partitions a configurable option To: Sascha Hauer Cc: barebox@lists.infradead.org On 15:07 Wed 08 Jan , Sascha Hauer wrote: > Hi Santosh, > > On Wed, Jan 08, 2014 at 08:15:39AM +0530, Santosh Sivaraj wrote: > > Theoritically there is no limit for the partitions that can be created > > based on EFI/GPT, so make the number of partitions that can be visible > > in barebox a configurable option. > > > > Signed-off-by: Santosh Sivaraj > > --- > > common/partitions/Kconfig | 5 +++++ > > common/partitions/parser.h | 2 +- > > 2 files changed, 6 insertions(+), 1 deletion(-) > > > > diff --git a/common/partitions/Kconfig b/common/partitions/Kconfig > > index 90238ad..f3353dd 100644 > > --- a/common/partitions/Kconfig > > +++ b/common/partitions/Kconfig > > @@ -31,3 +31,8 @@ config PARTITION_DISK_EFI_GPT_COMPARE > > depends on PARTITION_DISK_EFI > > default y > > bool "EFI: GPT: compare primary and Alternate GPT header for validity" > > + > > +config MAX_PARTITIONS > > + depends on PARTITION_DISK_EFI > > + int "Maximum of partitions needed to be supported on a GPT" > > + default 8 > > Can we instead allocate the partitions dynamically? This limitation to > eight partitions we currently have is not nice, but making it > configurable is not a proper fix. agreed but a limit will be good too Best Regards, J. > > Sascha > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > _______________________________________________ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox