From e94207efe93141ce2d58436c56ea4271948bf148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 12 Sep 2015 11:46:26 +0200 Subject: Fix parse_kconfig choice parsing Parsing choices was implemented wrong. For non-optional choice output rules must contain also dependency of all choice symbols. Because if no choice symbol has fulfilled dependencies, than choice shouldn't be selected. --- scripts/parse_kconfig/boolexpr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/parse_kconfig/boolexpr.h') diff --git a/scripts/parse_kconfig/boolexpr.h b/scripts/parse_kconfig/boolexpr.h index 5a368bf..5eeb3f8 100644 --- a/scripts/parse_kconfig/boolexpr.h +++ b/scripts/parse_kconfig/boolexpr.h @@ -21,12 +21,12 @@ struct boolexpr { }; struct boolexpr *boolexpr_kconfig(struct symlist *sl, struct expr *expr, - bool modulesym); + bool modulesym, struct symbol **as_true); struct boolexpr *boolexpr_true(); struct boolexpr *boolexpr_false(); struct boolexpr *boolexpr_sym(struct symlist *sl, struct symbol *sym, - bool modulesym); + bool modulesym, struct symbol **as_true); struct boolexpr *boolexpr_or(struct boolexpr *e1, struct boolexpr *e2); struct boolexpr *boolexpr_and(struct boolexpr *e1, struct boolexpr *e2); struct boolexpr *boolexpr_not(struct boolexpr *e); -- cgit v1.2.3