summaryrefslogtreecommitdiff
path: root/extra/config/menu.c
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2005-04-18 15:59:49 +0000
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>2005-04-18 15:59:49 +0000
commitf66a762344d77b8e4a4d50e68896638a234dc631 (patch)
tree9b3bf1632a7dd59c788d998b24efa084c9f6ea0a /extra/config/menu.c
parent5178925d7b23c6fd5c79d602c9e873cb9ba50ea2 (diff)
Updated to match Linux 2.6.11.
Diffstat (limited to 'extra/config/menu.c')
-rw-r--r--extra/config/menu.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/extra/config/menu.c b/extra/config/menu.c
index bcc4f098b..0c13156f3 100644
--- a/extra/config/menu.c
+++ b/extra/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/bits/uClibc_config.h: $(deps_config)\n\n$(deps_config):\n");
- fclose(out);
- rename(".config.tmp", name);
- return 0;
-}
-