diff options
author | Michal Marek <mmarek@suse.cz> | 2010-10-12 09:09:06 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-10-12 09:09:06 -0400 |
commit | 239060b93bb30a4ad55f1ecaa512464a035cc5ba (patch) | |
tree | 77f79810e57d4fc24356eca0cd6db463e8994128 /scripts/kconfig/menu.c | |
parent | 1408b15b98635a13bad2e2a50b3c2ae2ccdf625b (diff) | |
parent | e9203c988234aa512bd45ca32b52e21c7bbfc414 (diff) |
Merge branch 'kbuild/rc-fixes' into kbuild/kconfig
We need to revert the temporary hack in 71ebc01, hence the merge.
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 23acbdb2fd50..7e83aef42c6d 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -107,7 +107,6 @@ static struct expr *menu_check_dep(struct expr *e) | |||
107 | void menu_add_dep(struct expr *dep) | 107 | void menu_add_dep(struct expr *dep) |
108 | { | 108 | { |
109 | current_entry->dep = expr_alloc_and(current_entry->dep, menu_check_dep(dep)); | 109 | current_entry->dep = expr_alloc_and(current_entry->dep, menu_check_dep(dep)); |
110 | current_entry->dir_dep = current_entry->dep; | ||
111 | } | 110 | } |
112 | 111 | ||
113 | void menu_set_type(int type) | 112 | void menu_set_type(int type) |
@@ -291,10 +290,6 @@ void menu_finalize(struct menu *parent) | |||
291 | for (menu = parent->list; menu; menu = menu->next) | 290 | for (menu = parent->list; menu; menu = menu->next) |
292 | menu_finalize(menu); | 291 | menu_finalize(menu); |
293 | } else if (sym) { | 292 | } else if (sym) { |
294 | /* ignore inherited dependencies for dir_dep */ | ||
295 | sym->dir_dep.expr = expr_transform(expr_copy(parent->dir_dep)); | ||
296 | sym->dir_dep.expr = expr_eliminate_dups(sym->dir_dep.expr); | ||
297 | |||
298 | basedep = parent->prompt ? parent->prompt->visible.expr : NULL; | 293 | basedep = parent->prompt ? parent->prompt->visible.expr : NULL; |
299 | basedep = expr_trans_compare(basedep, E_UNEQUAL, &symbol_no); | 294 | basedep = expr_trans_compare(basedep, E_UNEQUAL, &symbol_no); |
300 | basedep = expr_eliminate_dups(expr_transform(basedep)); | 295 | basedep = expr_eliminate_dups(expr_transform(basedep)); |
@@ -325,6 +320,8 @@ void menu_finalize(struct menu *parent) | |||
325 | parent->next = last_menu->next; | 320 | parent->next = last_menu->next; |
326 | last_menu->next = NULL; | 321 | last_menu->next = NULL; |
327 | } | 322 | } |
323 | |||
324 | sym->dir_dep.expr = parent->dep; | ||
328 | } | 325 | } |
329 | for (menu = parent->list; menu; menu = menu->next) { | 326 | for (menu = parent->list; menu; menu = menu->next) { |
330 | if (sym && sym_is_choice(sym) && | 327 | if (sym && sym_is_choice(sym) && |