diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-05-22 17:44:34 +0200 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-05-22 17:44:34 +0200 |
commit | d85527556282c902b65eaef62d620a909112757d (patch) | |
tree | df780cfbc999fc1109b58b773317d323263ad0b8 /kconfig/menu.c | |
parent | 93b6fd50326780170f7f0992f993250d9f91792d (diff) | |
download | crosstool-ng-d85527556282c902b65eaef62d620a909112757d.tar.gz crosstool-ng-d85527556282c902b65eaef62d620a909112757d.tar.bz2 crosstool-ng-d85527556282c902b65eaef62d620a909112757d.zip |
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>
Diffstat (limited to 'kconfig/menu.c')
-rw-r--r-- | kconfig/menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfig/menu.c b/kconfig/menu.c index 8cb7a573..791f6885 100644 --- a/kconfig/menu.c +++ b/kconfig/menu.c @@ -361,7 +361,7 @@ void menu_finalize(struct menu *parent) last_menu->next = NULL; } - sym->dir_dep.expr = parent->dep; + sym->dir_dep.expr = expr_alloc_or(sym->dir_dep.expr, parent->dep); } for (menu = parent->list; menu; menu = menu->next) { if (sym && sym_is_choice(sym) && |