aboutsummaryrefslogtreecommitdiff
path: root/scripts/parse_kconfig/boolexpr.h
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-09-12 11:46:26 +0200
committerKarel Kočí <cynerd@email.cz>2015-09-12 11:46:26 +0200
commite94207efe93141ce2d58436c56ea4271948bf148 (patch)
treee7e2ff871591f9f1c6cf363e5b6865e76ccaefa4 /scripts/parse_kconfig/boolexpr.h
parent762e0304d1c493447e367a45431416fbada5cc8c (diff)
downloadlinux-conf-perf-e94207efe93141ce2d58436c56ea4271948bf148.tar.gz
linux-conf-perf-e94207efe93141ce2d58436c56ea4271948bf148.tar.bz2
linux-conf-perf-e94207efe93141ce2d58436c56ea4271948bf148.zip
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.
Diffstat (limited to 'scripts/parse_kconfig/boolexpr.h')
-rw-r--r--scripts/parse_kconfig/boolexpr.h4
1 files changed, 2 insertions, 2 deletions
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);