X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=scripts%2Fconfig%2Futil.c;h=d4e934b34ae5816ae6af708ccb852ccac335766f;hp=656d2c87d6614f13c9a23fc861cce0f356aba25e;hb=e30e495bb1cd6df96e6b246a89c8eade514031c7;hpb=f52d66ff00b24111f87c274d3d7085ef2e1d27b1 diff --git a/scripts/config/util.c b/scripts/config/util.c index 656d2c87d..d4e934b34 100644 --- a/scripts/config/util.c +++ b/scripts/config/util.c @@ -26,31 +26,6 @@ struct file *file_lookup(const char *name) return file; } -/* write a dependency file as used by kbuild to track dependencies */ -int file_write_dep(const char *name) -{ - struct file *file; - FILE *out; - - if (!name) - name = ".kconfig.d"; - out = fopen("..config.tmp", "w"); - if (!out) - return 1; - fprintf(out, "deps_config := \\\n"); - for (file = file_list; file; file = file->next) { - if (file->next) - fprintf(out, "\t%s \\\n", file->name); - else - fprintf(out, "\t%s\n", file->name); - } - fprintf(out, "\n.config include/linux/autoconf.h: $(deps_config)\n\n$(deps_config):\n"); - fclose(out); - rename("..config.tmp", name); - return 0; -} - - /* Allocate initial growable sting */ struct gstr str_new(void) {