summaryrefslogtreecommitdiff
path: root/backport/kconf/lkc.h
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2019-08-03 23:11:03 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-08-14 20:15:48 +0200
commit4ec72687181df4b786152747c008a688c9b9b9de (patch)
treee6d4ed3374ad6d933720affb5bf3d5b6465339f1 /backport/kconf/lkc.h
parent02a404089c8dc993293a675255b5aad6bb21bf67 (diff)
kconfig: Update to KConfig to version from kernel 4.17
This updates the KConfig system used in backports to the version from kernel 4.17. In kernel 4.18 some bigger changes to the KConfig system were introduced which are harder to backport, so start with using this older version. This version now generates the zconf.lex.c and zconf.tab.c files from the original sources, newer kernel versions will delete these files in a make clean, after that they are now regenerated. We do not ship them by default any more, so we need lex and yacc. The Makefile was not copied from the mainline kernel but this is written specifically for the backports project. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Cc: Anthony Wong <yp@anthonywong.net>
Diffstat (limited to 'backport/kconf/lkc.h')
-rw-r--r--backport/kconf/lkc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/backport/kconf/lkc.h b/backport/kconf/lkc.h
index 91ca126e..f4394af6 100644
--- a/backport/kconf/lkc.h
+++ b/backport/kconf/lkc.h
@@ -62,12 +62,13 @@ enum conf_def_mode {
#define T_OPT_ALLNOCONFIG_Y 4
struct kconf_id {
- int name;
+ const char *name;
int token;
unsigned int flags;
enum symbol_type stype;
};
+extern int yylineno;
void zconfdump(FILE *out);
void zconf_starthelp(void);
FILE *zconf_fopen(const char *name);
@@ -100,7 +101,6 @@ void menu_warn(struct menu *menu, const char *fmt, ...);
struct menu *menu_add_menu(void);
void menu_end_menu(void);
void menu_add_entry(struct symbol *sym);
-void menu_end_entry(void);
void menu_add_dep(struct expr *dep);
void menu_add_visibility(struct expr *dep);
struct property *menu_add_prompt(enum prop_type type, char *prompt, struct expr *dep);
@@ -115,6 +115,8 @@ struct file *file_lookup(const char *name);
int file_write_dep(const char *name);
void *xmalloc(size_t size);
void *xcalloc(size_t nmemb, size_t size);
+void *xrealloc(void *p, size_t size);
+char *xstrdup(const char *s);
struct gstr {
size_t len;