Peter Samuelson wrote:
> * 'or' placed between dependencies functions as a logical OR, and
> takes very low precedence. This complements the implicit AND
> performed between every pair of dependencies.
>
> x or x -> x, for any x
> n or m == m or n -> m
> n or y == y or n -> y
> m or y == y or m -> y
I don't like calling it "or"... It is error prone because it is a non binary system,
thus can confuse the lazy developers.
Better "min".
Also I don't like the construct if_dep that parse multiple lines.
IMHO better a single line statment:
if_dep ..cond.. then ..cml1_statment..
ciao
giacomo
>
> * A=B evaluates to either Y or N, depending on whether A is logically
> equivalent to B. It has higher precedence than the ! operator.
> Thus:
>
> CONFIG_FOO=m evaluates to 'y' if CONFIG_FOO is m, 'n' otherwise
> CONFIG_BAR=n evaluates to 'y' if CONFIG_BAR is n or empty, 'n' otherwise
> !CONFIG_BAZ=y evaluates to 'n' if CONFIG_BAZ is y, 'y' otherwise
>
>
> This syntax is fully backward-compatible. Examples of use:
>
> if_dep CONFIG_X86 or CONFIG_X86_64 or CONFIG_IA64
> bool 'ACPI support' CONFIG_ACPI
> endif
>
> if_dep CONFIG_SOUND !CONFIG_SOUND_ALSA
> source sound/oss/Config.in
> endif
>
> dep_tristate 'Adaptec (new driver)' CONFIG_AIC7XXX_NEW !CONFIG_AIC7XXX_OLD
> dep_tristate 'Adaptec (old driver)' CONFIG_AIC7XXX_OLD !CONFIG_AIC7XXX_NEW
>
>
> The one thing I wanted to specify but didn't is an 'else' statement.
> The problem is that I can't think what to call it - can't use 'else'
> because the shell-based parsers (Configure, Menuconfig) will choke on
> it. Any ideas?
>
> Any other comments? Am I going in totally the wrong direction?
>
> Peter
>
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel