]> rtime.felk.cvut.cz Git - linux-conf-perf.git/commitdiff
parse_kconfig add missing rule
authorKarel Kočí <cynerd@email.cz>
Fri, 1 May 2015 20:40:43 +0000 (22:40 +0200)
committerKarel Kočí <cynerd@email.cz>
Fri, 1 May 2015 20:40:43 +0000 (22:40 +0200)
scripts/parse_kconfig/parse.c

index 1a26ef34732cf81290259179631c158659f8b62f..7de4f2b00e5663d26e937c893dc94312d074166f 100644 (file)
@@ -164,6 +164,17 @@ void cpy_dep() {
                 pw = boolexpr_and(pw, w4);
             }
             cnf_boolexpr(gsymlist, pw);
+            switch (pw->type) {
+            case BT_TRUE:
+                break;
+            case BT_FALSE:
+                Eprintf
+                    ("E: Root terms is false. This shouldn't happen.\n");
+                break;
+            default:
+                output_rules_symbol((int) pw->id);
+                output_rules_endterm();
+            }
             boolexpr_free(pw);
         }
     }