diff options
Diffstat (limited to 'scripts/parse_kconfig')
-rw-r--r-- | scripts/parse_kconfig/output.c | 6 | ||||
-rw-r--r-- | scripts/parse_kconfig/output.h | 3 | ||||
-rw-r--r-- | scripts/parse_kconfig/parse.c | 2 |
3 files changed, 7 insertions, 4 deletions
diff --git a/scripts/parse_kconfig/output.c b/scripts/parse_kconfig/output.c index 81debaf..f931ba2 100644 --- a/scripts/parse_kconfig/output.c +++ b/scripts/parse_kconfig/output.c @@ -31,9 +31,11 @@ void output_rules_endterm(void) { } // Functions for variable_count -void output_write_variable_count(char *var_file, int count) { +void output_write_variable_count(char *var_file, int count, + unsigned lastoption) { FILE *f; f = fopen(var_file, "w"); - fprintf(f, "%d", count); + fprintf(f, "%d\n", count); + fprintf(f, "%d", lastoption); fclose(f); } diff --git a/scripts/parse_kconfig/output.h b/scripts/parse_kconfig/output.h index 2950f7a..fb3a7cf 100644 --- a/scripts/parse_kconfig/output.h +++ b/scripts/parse_kconfig/output.h @@ -19,6 +19,7 @@ void output_rules_symbol(int id); void output_rules_endterm(void); // Functions for variable_count -void output_write_variable_count(char *var_file, int count); +void output_write_variable_count(char *var_file, int count, + unsigned lastoption); #endif /* _OUTPUT_H_ */ diff --git a/scripts/parse_kconfig/parse.c b/scripts/parse_kconfig/parse.c index d7c2353..b8aded2 100644 --- a/scripts/parse_kconfig/parse.c +++ b/scripts/parse_kconfig/parse.c @@ -66,7 +66,7 @@ int main(int argc, char **argv) { cpy_dep(); output_write_variable_count(variable_count_file, - gsymlist->lastsym - 1); + gsymlist->lastsym - 1, gsymlist->pos); output_finish(); return 0; |