Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762888AbYBVS4q (ORCPT ); Fri, 22 Feb 2008 13:56:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756600AbYBVS4i (ORCPT ); Fri, 22 Feb 2008 13:56:38 -0500 Received: from pasmtpa.tele.dk ([80.160.77.114]:51421 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754846AbYBVS4h (ORCPT ); Fri, 22 Feb 2008 13:56:37 -0500 Date: Fri, 22 Feb 2008 19:56:48 +0100 From: Sam Ravnborg To: Randy Dunlap Cc: Nish Aravamudan , Len Brown , Kamalesh Babulal , Andrew Morton , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Andy Whitcroft Subject: Re: [BUILD_FAILURE] 2.6.25-rc2-mm1 - Build Failure at acpi_os Message-ID: <20080222185648.GA6843@uranus.ravnborg.org> References: <20080216002522.9c4bd0fb.akpm@linux-foundation.org> <47B73DD8.4030405@linux.vnet.ibm.com> <200802210208.47487.lenb@kernel.org> <29495f1d0802211054s26665d3cy1609d3347867cb16@mail.gmail.com> <20080221222245.GB30976@uranus.ravnborg.org> <29495f1d0802211738leb47f9ayf9b3ab6aa51b66cb@mail.gmail.com> <20080222180815.GB6434@uranus.ravnborg.org> <20080222101344.821ea02a.randy.dunlap@oracle.com> <20080222182737.GC6434@uranus.ravnborg.org> <47BF1492.20901@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47BF1492.20901@oracle.com> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1374 Lines: 38 On Fri, Feb 22, 2008 at 10:29:38AM -0800, Randy Dunlap wrote: > Sam Ravnborg wrote: > >>Is there a way to generate (in Kconfig language) the boolean > >>CONFIG_ACPI_CUSTOM_DSDT based on whether CONFIG_ACPI_CUSTOM_DSDT_FILE > >>== "" or != "" ? I tried to muck around with that last night but > >>couldn't get it to work. I.e., just present the ACPI_CUSTOM_DSDT_FILE > >>config symbol to the user and then generate the ACPI_CUSTOM_DSDT bool > >>based on the string value. > > > >Something following this example? > > > >config STRING > > string > > prompt "What string" > > default "" > > > >config STRING_IS_NOT_EMPTY > > bool > > default STRING != "" > > > > > >But that seems too easy - were you trying to do something > >more complex than this? > > Yes, that's almost what I had. I used def_bool n on the second config > symbol, > but the bool value never changed when I changed the string value. > I'll be glad to look at it again though. I tested that above in a small Kconfig file and it works as expected. When I set the string to something STRING_IS_NOT_EMPTY is equal to y. Sam -- 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/