From bae38db8e42b2d09b920d9430d18ee41bdcc0b17 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Tue, 19 Apr 2005 09:55:06 +0000 Subject: Updated to match trunk/uClibc/extra/config as of r10132, and thus Linux 2.6.11. --- scripts/config/menu.c | 41 ----------------------------------------- 1 file changed, 41 deletions(-) (limited to 'scripts/config/menu.c') diff --git a/scripts/config/menu.c b/scripts/config/menu.c index 6425296fc..0c13156f3 100644 --- a/scripts/config/menu.c +++ b/scripts/config/menu.c @@ -10,7 +10,6 @@ #include "lkc.h" struct menu rootmenu; -struct menu *current_menu, *current_entry; static struct menu **last_entry_ptr; struct file *file_list; @@ -389,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; -} - -- cgit v1.2.3