Commit 80daa560 authored by Roman Zippel's avatar Roman Zippel Committed by Sam Ravnborg

kconfig: use environment option

Use the environment option to provide the ARCH symbol
and the KERNELVERSION symbol.
Signed-off-by: default avatarRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
parent 93449082
config ARCH
string
option env="ARCH"
config KERNELVERSION
string
option env="KERNELVERSION"
config DEFCONFIG_LIST config DEFCONFIG_LIST
string string
depends on !UML depends on !UML
......
...@@ -47,7 +47,6 @@ void sym_init(void) ...@@ -47,7 +47,6 @@ void sym_init(void)
{ {
struct symbol *sym; struct symbol *sym;
struct utsname uts; struct utsname uts;
char *p;
static bool inited = false; static bool inited = false;
if (inited) if (inited)
...@@ -56,20 +55,6 @@ void sym_init(void) ...@@ -56,20 +55,6 @@ void sym_init(void)
uname(&uts); 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 = sym_lookup("UNAME_RELEASE", 0);
sym->type = S_STRING; sym->type = S_STRING;
sym->flags |= SYMBOL_AUTO; sym->flags |= SYMBOL_AUTO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment