From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 1 Jun 2007 22:22:02 +0200 From: Sam Ravnborg Subject: Re: [RFC 1/4] CONFIG_STABLE: Define it Message-ID: <20070601202202.GA4232@uranus.ravnborg.org> References: <20070531002047.702473071@sgi.com> <20070531003012.302019683@sgi.com> <20070531141147.423ad5e3.akpm@linux-foundation.org> <20070531213046.GA27923@uranus.ravnborg.org> <20070601180200.GA7968@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070601180200.GA7968@redhat.com> Sender: owner-linux-mm@kvack.org Return-Path: To: Dave Jones , Andrew Morton , clameter@sgi.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Roman Zippel List-ID: On Fri, Jun 01, 2007 at 02:02:00PM -0400, Dave Jones wrote: > On Thu, May 31, 2007 at 11:30:46PM +0200, Sam Ravnborg wrote: > > > + sym = sym_lookup("DEVEL_KERNEL", 0); > > > + sym->type = S_BOOLEAN; > > > + sym->flags |= SYMBOL_AUTO; > > > + p = getenv("DEVEL_KERNEL"); > > > + if (p && atoi(p)) > > > + sym_add_default(sym, "y"); > > > + else > > > + sym_add_default(sym, "n"); > > > + > > > > sym_set_tristate_value(sym, yes); > > else > > sym_set_tristate_value(sym, no); > > > > should do the trick (untested). > > Odd. What's the third state ? Undefined? no, mod, yes Representing: no, module, yes as the three config choices. Sam -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org