diff options
author | Felix Fietkau <nbd@nbd.name> | 2016-08-03 19:55:02 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-08-03 20:03:36 +0200 |
commit | 9bfa6971aeaa663ae5cc845f589ebbd1459a1fc9 (patch) | |
tree | e357656bd5be5a7038d997bd846f18e38410bd01 /scripts | |
parent | 2d7e602381f3c473d6c8214e8e56bcf80ccf9fa5 (diff) | |
download | mtk-20170518-9bfa6971aeaa663ae5cc845f589ebbd1459a1fc9.zip mtk-20170518-9bfa6971aeaa663ae5cc845f589ebbd1459a1fc9.tar.gz mtk-20170518-9bfa6971aeaa663ae5cc845f589ebbd1459a1fc9.tar.bz2 |
scripts/config: properly handle select on symbols with unmet direct dependencies
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/config/symbol.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/scripts/config/symbol.c b/scripts/config/symbol.c index ca6f437..31f268a 100644 --- a/scripts/config/symbol.c +++ b/scripts/config/symbol.c @@ -400,18 +400,10 @@ void sym_calc_value(struct symbol *sym) } calc_newval: if (sym->dir_dep.tri == no && sym->rev_dep.tri != no) { - struct expr *e; - e = expr_simplify_unmet_dep(sym->rev_dep.expr, - sym->dir_dep.expr); - fprintf(stderr, "warning: ("); - expr_fprint(e, stderr); - fprintf(stderr, ") selects %s which has unmet direct dependencies (", - sym->name); - expr_fprint(sym->dir_dep.expr, stderr); - fprintf(stderr, ")\n"); - expr_free(e); + newval.tri = no; + } else { + newval.tri = EXPR_OR(newval.tri, sym->rev_dep.tri); } - newval.tri = EXPR_OR(newval.tri, sym->rev_dep.tri); } if (newval.tri == mod && sym_get_type(sym) == S_BOOLEAN) newval.tri = yes; |