Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762845AbYBVSe3 (ORCPT ); Fri, 22 Feb 2008 13:34:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756246AbYBVSdv (ORCPT ); Fri, 22 Feb 2008 13:33:51 -0500 Received: from rgminet01.oracle.com ([148.87.113.118]:15406 "EHLO rgminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753823AbYBVSds (ORCPT ); Fri, 22 Feb 2008 13:33:48 -0500 Message-ID: <47BF1492.20901@oracle.com> Date: Fri, 22 Feb 2008 10:29:38 -0800 From: Randy Dunlap User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Sam Ravnborg 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 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> In-Reply-To: <20080222182737.GC6434@uranus.ravnborg.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1144 Lines: 34 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. -- ~Randy -- 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/