Re: kconfig: report select on a depending option

From: AmÃrico Wang
Date: Thu Mar 18 2010 - 05:31:40 EST


On Thu, Mar 18, 2010 at 5:21 PM, Jan Engelhardt <jengelh@xxxxxxxxxx> 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".
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/