From: "Américo Wang" <xiyou.wangcong@gmail.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Michal Marek <mmarek@suse.cz>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: kconfig: report select on a depending option
Date: Thu, 18 Mar 2010 17:31:33 +0800 [thread overview]
Message-ID: <2375c9f91003180231n85501e2u951e6d8bbffce5d3@mail.gmail.com> (raw)
In-Reply-To: <alpine.LSU.2.01.1003181015060.9334@obet.zrqbmnf.qr>
On Thu, Mar 18, 2010 at 5:21 PM, Jan Engelhardt <jengelh@medozas.de> wrote:
> Hi,
>
>
> With the following combination of Kconfig config options, I can select
> TEST_Z, which will select TEST_X, even if TEST_Y=n. It also allows for
> awkward situations like TEST_Y=M, TEST_X=y, TEST_Z=y, which would yield
> a link time error when X uses Y's symbols.
> Is there a way to have such potential errors reported with kconfig?
>
> config TEST_Y
> tristate "Y"
>
> config TEST_X
> depends on Y
> tristate "X"
>
> config TEST_Z
> select TEST_Y
You mean "select TEST_X" here, right?
> tristate "Z"
>
I think you should use "depends on X" instead of "select X".
next prev parent reply other threads:[~2010-03-18 9:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-18 9:21 Jan Engelhardt
2010-03-18 9:31 ` Américo Wang [this message]
2010-03-18 10:12 ` Michal Marek
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=2375c9f91003180231n85501e2u951e6d8bbffce5d3@mail.gmail.com \
--to=xiyou.wangcong@gmail.com \
--cc=jengelh@medozas.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
/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®