From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034412AbcJ1WJN (ORCPT ); Fri, 28 Oct 2016 18:09:13 -0400 Received: from lb3-smtp-cloud6.xs4all.net ([194.109.24.31]:48508 "EHLO lb3-smtp-cloud6.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030290AbcJ1WJK (ORCPT ); Fri, 28 Oct 2016 18:09:10 -0400 Message-ID: <1477692545.2167.42.camel@tiscali.nl> Subject: Re: [PATCH v2 1/5] kconfig: introduce the "imply" keyword From: Paul Bolle To: Nicolas Pitre Cc: John Stultz , Richard Cochran , Michal Marek , Thomas Gleixner , Josh Triplett , Edward Cree , netdev@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 29 Oct 2016 00:09:05 +0200 In-Reply-To: References: <1477448931-29051-1-git-send-email-nicolas.pitre@linaro.org> <1477448931-29051-2-git-send-email-nicolas.pitre@linaro.org> <1477613871.2121.92.camel@tiscali.nl> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5 (3.20.5-1.fc24) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2016-10-27 at 23:10 -0400, Nicolas Pitre wrote: > On Fri, 28 Oct 2016, Paul Bolle wrote: > > And in your example BAR is bool, right? Does the above get more > > complicated if BAR would be tristate? > > If BAR=m then implying BAZ from FOO=y will force BAZ to y or n,  > bypassing the restriction provided by BAR like "select" does.  This is  > somewhat questionable for "select" to do that, and the code emits a  > warning when "select" bypasses a direct dependency set to n, but not  > when set to m. For now "imply" simply tries to be consistent with  > the "select" behavior. Side note: yes, one can select a symbol that's missing one or more dependencies. But since Kconfig has two separate methods to describe relations (ie, selecting and depending) there's logically the possibility of conflict. So we need a rule to resolve that conflict. That rule is: "select" beats "depends on". I don't think that this rule is less plausible than the opposite rule. Paul Bolle