summaryrefslogtreecommitdiffstats
path: root/package/config/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/config/util.c')
-rw-r--r--package/config/util.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/package/config/util.c b/package/config/util.c
index 8f65ccac5..e3f28b9d5 100644
--- a/package/config/util.c
+++ b/package/config/util.c
@@ -33,8 +33,8 @@ int file_write_dep(const char *name)
FILE *out;
if (!name)
- name = ".config.cmd";
- out = fopen(".config.tmp", "w");
+ name = ".kconfig.d";
+ out = fopen("..config.tmp", "w");
if (!out)
return 1;
fprintf(out, "deps_config := \\\n");
@@ -44,12 +44,15 @@ int file_write_dep(const char *name)
else
fprintf(out, "\t%s\n", file->name);
}
- fprintf(out, "\n.config include/config.h: $(deps_config)\n\n$(deps_config):\n");
+ fprintf(out, "\ninclude/config/auto.conf: \\\n"
+ "\t$(deps_config)\n\n"
+ "$(deps_config): ;\n");
fclose(out);
- rename(".config.tmp", name);
+ rename("..config.tmp", name);
return 0;
}
+
/* Allocate initial growable sting */
struct gstr str_new(void)
{
@@ -100,7 +103,7 @@ void str_printf(struct gstr *gs, const char *fmt, ...)
va_end(ap);
}
-/* Retreive value of growable string */
+/* Retrieve value of growable string */
const char *str_get(struct gstr *gs)
{
return gs->s;