Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S271845AbTHHTGS (ORCPT ); Fri, 8 Aug 2003 15:06:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S271807AbTHHTEN (ORCPT ); Fri, 8 Aug 2003 15:04:13 -0400 Received: from scrub.xs4all.nl ([194.109.195.176]:4627 "EHLO scrub.xs4all.nl") by vger.kernel.org with ESMTP id S271808AbTHHS6O (ORCPT ); Fri, 8 Aug 2003 14:58:14 -0400 Date: Fri, 8 Aug 2003 20:58:09 +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: <20030808183020.GD16091@fs.tum.de> Message-ID: References: <20030808144408.GX16091@fs.tum.de> <20030808183020.GD16091@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: 1171 Lines: 37 Hi, On Fri, 8 Aug 2003, Adrian Bunk wrote: > > This is probably the easiest solution: > > > > default INPUT_KEYBOARD && SERIO > > > > (INPUT_KEYBOARD already depends on INPUT) > > I'll send a > default INPUT && INPUT_KEYBOARD && SERIO > patch (to address the things James said, in any cases it doesn't do any > harm). His comment didn't make much sense, INPUT_KEYBOARD is still independent of SERIO. > But it stays strange that a default can assign a value that isn't > allowed by the depends, and you therefore have to write the depends > twice in this case: > > config KEYBOARD_ATKBD > tristate "AT keyboard support" if EMBEDDED || !X86 > default INPUT && INPUT_KEYBOARD && SERIO > depends on INPUT && INPUT_KEYBOARD && SERIO The easier solution is probably to force SERIO to 'y' as well, as the point of hiding it behind EMBEDDED is to get it compiled into the kernel. 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/