Loading init/Kconfig +8 −0 Original line number Diff line number Diff line config ARCH string option env="ARCH" config KERNELVERSION string option env="KERNELVERSION" config DEFCONFIG_LIST string depends on !UML Loading scripts/kconfig/symbol.c +0 −15 Original line number Diff line number Diff line Loading @@ -47,7 +47,6 @@ void sym_init(void) { struct symbol *sym; struct utsname uts; char *p; static bool inited = false; if (inited) Loading @@ -56,20 +55,6 @@ void sym_init(void) uname(&uts); sym = sym_lookup("ARCH", 0); sym->type = S_STRING; sym->flags |= SYMBOL_AUTO; p = getenv("ARCH"); if (p) sym_add_default(sym, p); sym = sym_lookup("KERNELVERSION", 0); sym->type = S_STRING; sym->flags |= SYMBOL_AUTO; p = getenv("KERNELVERSION"); if (p) sym_add_default(sym, p); sym = sym_lookup("UNAME_RELEASE", 0); sym->type = S_STRING; sym->flags |= SYMBOL_AUTO; Loading Loading
init/Kconfig +8 −0 Original line number Diff line number Diff line config ARCH string option env="ARCH" config KERNELVERSION string option env="KERNELVERSION" config DEFCONFIG_LIST string depends on !UML Loading
scripts/kconfig/symbol.c +0 −15 Original line number Diff line number Diff line Loading @@ -47,7 +47,6 @@ void sym_init(void) { struct symbol *sym; struct utsname uts; char *p; static bool inited = false; if (inited) Loading @@ -56,20 +55,6 @@ void sym_init(void) uname(&uts); sym = sym_lookup("ARCH", 0); sym->type = S_STRING; sym->flags |= SYMBOL_AUTO; p = getenv("ARCH"); if (p) sym_add_default(sym, p); sym = sym_lookup("KERNELVERSION", 0); sym->type = S_STRING; sym->flags |= SYMBOL_AUTO; p = getenv("KERNELVERSION"); if (p) sym_add_default(sym, p); sym = sym_lookup("UNAME_RELEASE", 0); sym->type = S_STRING; sym->flags |= SYMBOL_AUTO; Loading