Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S271379AbTHHPNz (ORCPT ); Fri, 8 Aug 2003 11:13:55 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S271384AbTHHPNz (ORCPT ); Fri, 8 Aug 2003 11:13:55 -0400 Received: from scrub.xs4all.nl ([194.109.195.176]:30482 "EHLO scrub.xs4all.nl") by vger.kernel.org with ESMTP id S271379AbTHHPNx (ORCPT ); Fri, 8 Aug 2003 11:13:53 -0400 Date: Fri, 8 Aug 2003 17:13:48 +0200 (CEST) From: Roman Zippel X-X-Sender: roman@serv To: Adrian Bunk cc: linux-kernel@vger.kernel.org Subject: Re: Surprising Kconfig depends semantics In-Reply-To: <20030808144408.GX16091@fs.tum.de> Message-ID: References: <20030808144408.GX16091@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: 793 Lines: 34 Hi, On Fri, 8 Aug 2003, Adrian Bunk wrote: > CONFIG_SERIO=m with CONFIG_KEYBOARD_ATKBD=y shouldn't be a valid > combination. > > The correct solution is most likely a > default y if INPUT=y && INPUT_KEYBOARD=y && SERIO=y > default m if INPUT!=n && INPUT_KEYBOARD!=n && SERIO!=n This is probably the easiest solution: default INPUT_KEYBOARD && SERIO (INPUT_KEYBOARD already depends on INPUT) > The semantics that in > > config FOO > tristate > default y if BAR > > FOO will be set to y if BAR=m is a bit surprising. Why? 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/