On Sat, 23 Jun 2007, Satyam Sharma wrote:
> On 6/23/07, Trent Piepho <xyzzy@xxxxxxxxxxxxx> wrote:
> > [...]
> > Now all the usb drivers will gain USB as a dependency directly and can't be
> > set to something higher than USB.
>
> Ok, so we add this as solution 2.(c) to the reply I just sent to Jan :-)
>
> But I still prefer 2.(b) -- making the config scripts intelligent so that if a
> given "menuconfig FOO depends on BAR", then all the "config BAZ"s
> inside this menuconfig also automatically "depend on" BAR too.
Of course, there currently is no "inside" a menuconfig. You would have to do
something like make everything inside an "if FOO / endif" gain not just a
dependency on FOO, but also gain a dependency on all of FOO's dependencies.
> This is simpler in the long run because it requires least amount
> (actually none) of redundant typing and would continue to work in
> the future if/when the:
> [...]
> configmenu FOO
> ...
> endconfigmenu # FOO
>
> kind of idiom ...
Like that I suggested here?
http://article.gmane.org/gmane.linux.kernel/524823
Basically, make menuconfig work like menu does, except the menu itself can be
turned on and off. Instead of having menuconfig work like a config, but with
some kind of "menu" hint. It seems like the former is more in line with what
menuconfig is actually used for.