kconfig: fix forward dependencies
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 22 17:44:34 2011 +0200 (2011-05-22)
changeset 2474230d50dd2323
parent 2473 f3f2fa66706b
child 2475 62c563f492ec
kconfig: fix forward dependencies

In case a set of options are conditional to two different paths,
the forward dependencies in these options is wrong, but in the
first path.

Fix by Arnaud Lacombe on linux-kbuild ML:
http://www.spinics.net/lists/linux-kbuild/msg04832.html

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
kconfig/menu.c
     1.1 --- a/kconfig/menu.c	Sat May 21 12:38:52 2011 +0200
     1.2 +++ b/kconfig/menu.c	Sun May 22 17:44:34 2011 +0200
     1.3 @@ -361,7 +361,7 @@
     1.4  			last_menu->next = NULL;
     1.5  		}
     1.6  
     1.7 -		sym->dir_dep.expr = parent->dep;
     1.8 +		sym->dir_dep.expr = expr_alloc_or(sym->dir_dep.expr, parent->dep);
     1.9  	}
    1.10  	for (menu = parent->list; menu; menu = menu->next) {
    1.11  		if (sym && sym_is_choice(sym) &&