mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Arjan van de Ven <arjan@infradead.org>
To: David Miller <davem@davemloft.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kconfig 'depend' vs. 'select'
Date: Sun, 27 Apr 2008 21:58:40 -0700	[thread overview]
Message-ID: <20080427215840.0961be81@laptopd505.fenrus.org> (raw)
In-Reply-To: <20080427.174536.62560212.davem@davemloft.net>

On Sun, 27 Apr 2008 17:45:36 -0700 (PDT)
David Miller <davem@davemloft.net> wrote:

> 
> I'm trying to stir up interest in solving a problem that seems to pop
> up frequently. :)
> 
> The short story is:
> 
> 1) If you say your driver "depend"s on a subsystem providing a set of
>    interfaces you need, this doesn't work properly if your driver is
>    marked built-in and that subsystem you need is modular for some
>    reason.
> 
> 2) If you say "select" on some subsystem, to try and solve the
>    conflict in #1, that doesn't take care of any dependencies the
>    subsystem may have.  This can also break the build.
> 
> There should be an elegant solution to this problem.  But I don't
> think changing how 'select' or 'depend' works is it.
> 
> 'depend' as it stands now works fine for purely boolean things like
> "this architecture has or wants FOO".  There is no reason to remove
> it or change it's semantics, I think.

how far would "if you DEPENDS on FOO, and FOO is =m, you can only be =m or =n" get us?
or are there hidden traps on this?
(the hard case is if a non-tristate DEPENDS on a tristate, but... that's a trap anyway)

-- 
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

  reply	other threads:[~2008-04-28  4:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-28  0:45 David Miller
2008-04-28  4:58 ` Arjan van de Ven [this message]
2008-04-28  6:32   ` Seewer Philippe
2008-04-28  6:40   ` David Miller
2008-04-28  6:39 ` Adrian Bunk
2008-04-28  6:42   ` David Miller
2008-04-28  8:13     ` Adrian Bunk
2008-04-28  8:54       ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080427215840.0961be81@laptopd505.fenrus.org \
    --to=arjan@infradead.org \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®