diff options
author | Karel Kočí <cynerd@email.cz> | 2015-05-02 13:29:49 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-05-02 13:29:49 +0200 |
commit | e6cd8a42dd9d0be35e9d12a9d6feb329f1ed88a9 (patch) | |
tree | 680b20ad5ccff070a702ab222bbb0ee78f1f5bc9 /scripts/parse_kconfig/boolexpr.c | |
parent | 34daa4c1cb99ed66c974336f23269cb508f71c74 (diff) | |
download | linux-conf-perf-e6cd8a42dd9d0be35e9d12a9d6feb329f1ed88a9.tar.gz linux-conf-perf-e6cd8a42dd9d0be35e9d12a9d6feb329f1ed88a9.tar.bz2 linux-conf-perf-e6cd8a42dd9d0be35e9d12a9d6feb329f1ed88a9.zip |
parse_kconfig fix problems with generated rules to be UNSAT
Diffstat (limited to 'scripts/parse_kconfig/boolexpr.c')
-rw-r--r-- | scripts/parse_kconfig/boolexpr.c | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/scripts/parse_kconfig/boolexpr.c b/scripts/parse_kconfig/boolexpr.c index ccd7cef..4ce4154 100644 --- a/scripts/parse_kconfig/boolexpr.c +++ b/scripts/parse_kconfig/boolexpr.c @@ -113,11 +113,17 @@ struct boolexpr *boolexpr_sym(struct symlist *sl, struct symbol *sym) { struct boolexpr *rtn; rtn = malloc(sizeof(struct boolexpr)); rtn->overusage = 0; - rtn->id = symlist_id(sl, sym->name); - if (rtn->id != 0) - rtn->type = BT_SYM; - else - rtn->type = BT_FALSE; + if (!strcmp(sym->name, "m") || !strcmp(sym->name, "n")) { + rtn->type = BT_FALSE; + } else if (!strcmp(sym->name, "y")) { + rtn->type = BT_TRUE; + } else { + rtn->id = symlist_id(sl, sym->name); + if (rtn->id != 0) + rtn->type = BT_SYM; + else + rtn->type = BT_FALSE; + } return rtn; } |