diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-08-02 00:57:33 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-08-02 00:57:33 +0000 |
commit | 273175d0d3903f89e740adad520af516c5ca72b4 (patch) | |
tree | dea82fb76c3797d61d34f1e59ab4a0c232518b4e /package/config/menu.c | |
parent | a18f36417b16217a2793fe74a588d8f0f9491417 (diff) | |
download | buildroot-novena-273175d0d3903f89e740adad520af516c5ca72b4.tar.gz buildroot-novena-273175d0d3903f89e740adad520af516c5ca72b4.zip |
update kbuild system
Diffstat (limited to 'package/config/menu.c')
-rw-r--r-- | package/config/menu.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/package/config/menu.c b/package/config/menu.c index 7f100a643..0c13156f3 100644 --- a/package/config/menu.c +++ b/package/config/menu.c @@ -388,43 +388,3 @@ struct menu *menu_get_parent_menu(struct menu *menu) return menu; } -struct file *file_lookup(const char *name) -{ - struct file *file; - - for (file = file_list; file; file = file->next) { - if (!strcmp(name, file->name)) - return file; - } - - file = malloc(sizeof(*file)); - memset(file, 0, sizeof(*file)); - file->name = strdup(name); - file->next = file_list; - file_list = file; - return file; -} - -int file_write_dep(const char *name) -{ - struct file *file; - FILE *out; - - if (!name) - name = ".config.cmd"; - 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/config.h: $(deps_config)\n\n$(deps_config):\n"); - fclose(out); - rename(".config.tmp", name); - return 0; -} - |