Re: tristate and bool not enogh for Kconfig anymore

From: Roman Zippel
Date: Sat Oct 27 2007 - 19:40:33 EST


Hi,

On Monday 22 October 2007, Randy Dunlap wrote:

> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Another common idiom that we see (and sometimes have problems
> with) is this:
>
> When B (module or subsystem) uses interfaces from A (module or
> subsystem), A can be linked statically into the kernel image or
> can be built as loadable module(s). This limits how B can be
> built. If A is linked statically into the kernel image, B can be
> built statically or as loadable module(s). However, if A is built
> as loadable module(s), then B must be restricted to loadable
> module(s) also. This can be expressed in kconfig language as:
>
> config B
> depends on A = y || A = B

What you describe is a simple "depends on A" and your example won't work
because it adds a recursive dependency.

bye, Roman
-
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/