Hi,

Tom Rini wrote:

> How would I do this with the new syntax, other than:
> config FTR_A
>    bool
>    depends on BOARD_A || BOARD_B
>    default y
> ...
> 
> The desire is to be able to add in support for a new platform, without
> having to rely on much context to patch (or, have a file be
> automagically included.

You can do this:

config FTR_A
        bool
        default y if BOARD_A

...

config FTR_A
        bool
        default y if BOARD_B

lkc takes the first default where the dependency is different from 'n',
so the result is basically the same as "BOARD_A || BOARD_B".
BTW the type definition is also only needed once (it only must be the
same everywhere).
Does that would you need?

bye, Roman


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel

Reply via email to