-rw-r--r-- | scripts/kconfig/menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 4595110..24be0ec 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -281,25 +281,25 @@ struct file *file_lookup(const char *name) | |||
281 | file->name = strdup(name); | 281 | file->name = strdup(name); |
282 | file->next = file_list; | 282 | file->next = file_list; |
283 | file_list = file; | 283 | file_list = file; |
284 | return file; | 284 | return file; |
285 | } | 285 | } |
286 | 286 | ||
287 | int file_write_dep(const char *name) | 287 | int file_write_dep(const char *name) |
288 | { | 288 | { |
289 | struct file *file; | 289 | struct file *file; |
290 | FILE *out; | 290 | FILE *out; |
291 | 291 | ||
292 | if (!name) | 292 | if (!name) |
293 | name = "..config.cmd"; | 293 | name = ".config.cmd"; |
294 | out = fopen("..config.tmp", "w"); | 294 | out = fopen("..config.tmp", "w"); |
295 | if (!out) | 295 | if (!out) |
296 | return 1; | 296 | return 1; |
297 | fprintf(out, "deps_config := \\\n"); | 297 | fprintf(out, "deps_config := \\\n"); |
298 | for (file = file_list; file; file = file->next) { | 298 | for (file = file_list; file; file = file->next) { |
299 | if (file->next) | 299 | if (file->next) |
300 | fprintf(out, "\t%s \\\n", file->name); | 300 | fprintf(out, "\t%s \\\n", file->name); |
301 | else | 301 | else |
302 | fprintf(out, "\t%s\n", file->name); | 302 | fprintf(out, "\t%s\n", file->name); |
303 | } | 303 | } |
304 | fprintf(out, "\n.config include/linux/autoconf.h: $(deps_config)\n\n$(deps_config):\n"); | 304 | fprintf(out, "\n.config include/linux/autoconf.h: $(deps_config)\n\n$(deps_config):\n"); |
305 | fclose(out); | 305 | fclose(out); |