don't generate .tmpconfig.h and .kconfig.d
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5071 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f6777ece94
commit
31ae1eb5c8
2 changed files with 1 additions and 70 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue