Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S271378AbTHHPaJ (ORCPT ); Fri, 8 Aug 2003 11:30:09 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S271401AbTHHPaJ (ORCPT ); Fri, 8 Aug 2003 11:30:09 -0400 Received: from scrub.xs4all.nl ([194.109.195.176]:34834 "EHLO scrub.xs4all.nl") by vger.kernel.org with ESMTP id S271378AbTHHPaF (ORCPT ); Fri, 8 Aug 2003 11:30:05 -0400 Date: Fri, 8 Aug 2003 17:30:03 +0200 (CEST) From: Roman Zippel X-X-Sender: roman@serv To: Adrian Bunk cc: linux-kernel@vger.kernel.org Subject: Re: 2.6: kconfig handling of recursive dependencies could be improved In-Reply-To: <20030808145758.GZ16091@fs.tum.de> Message-ID: References: <20030808145758.GZ16091@fs.tum.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 947 Lines: 36 Hi, On Fri, 8 Aug 2003, Adrian Bunk wrote: > I tried to implement a "select at least one of these options" using the > following Kconfig snippet: > > config A > bool "a" > > config B > bool "b" > > config C > bool > default y if A=n && B=n > select A > select B This sort of dependency would be better handled with another choice option, but this is not really 2.6 material. > Yes, there is a limited recursion, but it's a finite recursion and I > don't know of any other way to express this in the current kconfig > language. It's not really possible. You can show a comment if nothing is selected and use a reasonable default. bye, Roman - 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/