diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-28 10:46:19 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-28 10:46:19 +0000 |
commit | a665ed34960bf1423cba303276161bf44a9851f4 (patch) | |
tree | 6b7cce6251e7ffd5fd18f521e00ed001d25da92c /package/config/util.c | |
parent | e89cffadeed921255651b920849dff24e872fd51 (diff) | |
download | buildroot-novena-a665ed34960bf1423cba303276161bf44a9851f4.tar.gz buildroot-novena-a665ed34960bf1423cba303276161bf44a9851f4.zip |
- pull kconfig from linux-2.6.21.5
Diffstat (limited to 'package/config/util.c')
-rw-r--r-- | package/config/util.c | 13 |
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; |