From: Pavel Machek <pavel@ucw.cz>
To: Tilman Schmidt <tilman@imap.cc>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Kconfig Q: expressing a modularity dependency
Date: Fri, 14 Aug 2009 18:32:51 +0200 [thread overview]
Message-ID: <20090814163250.GD1626@ucw.cz> (raw)
In-Reply-To: <4A8448B7.6030007@imap.cc>
Hi!
> /me wrote, four months ago:
> > My current attempts to port the Gigaset driver from isdn4linux
> > to CAPI require the following Kconfig dependency:
> >
> > - If isdn4linux or kernelcapi or both are built as a module
> > (CONFIG_ISDN_I4L=m || CONFIG_ISDN_CAPI=m)
> > then gigaset can only be built as a module
> > (CONFIG_ISDN_DRV_GIGASET depends on m).
> >
> > - If neither isdn4linux nor kernelcapi ar built as a module
> > (CONFIG_ISDN_I4L!=m && CONFIG_ISDN_CAPI!=m),
> > including the case that neither is being built at all
> > (CONFIG_ISDN_I4L=n && CONFIG_ISDN_CAPI=n),
> > then gigaset may be built statically or as a module
> > (all three tristate settings for CONFIG_ISDN_DRV_GIGASET are
> > legal).
> >
> > How is that best expressed in Kconfig?
>
> Judging from the complete silence following that question, the
> answer is, apparently: not at all.
>
> So I'll just put a notice in the help text then, warning people
> not to set CONFIG_ISDN_DRV_GIGASET=y if their ISDN subsystem
> is built as a module. If anybody has a better idea I'll be
> glad to hear it.
That will break randconfig testing, AFAICT.
AFAIK Kconfig supports if statement just fine, so can you just
if something
bool GIGASET
else
tristate GIGASET
?
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2009-08-15 16:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-15 14:01 Kconfig Q: expressing a modularity dependency Tilman Schmidt
2009-08-13 17:09 ` Tilman Schmidt
2009-08-14 16:32 ` Pavel Machek [this message]
2009-08-23 16:52 ` Tilman Schmidt
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=20090814163250.GD1626@ucw.cz \
--to=pavel@ucw.cz \
--cc=linux-kernel@vger.kernel.org \
--cc=tilman@imap.cc \
/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