diff options
author | Roman Zippel <zippel@linux-m68k.org> | 2008-01-13 22:51:16 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2008-01-28 17:14:39 -0500 |
commit | 80daa56008dad44f08d0b47670cf2513aa98ab53 (patch) | |
tree | 3db1100f0d44d416dbf6adf4107bc213be4aff82 /scripts/kconfig | |
parent | 93449082e905ce73d0346d617dd67c4b668b58af (diff) |
kconfig: use environment option
Use the environment option to provide the ARCH symbol
and the KERNELVERSION symbol.
Signed-off-by: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig')
-rw-r--r-- | scripts/kconfig/symbol.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/scripts/kconfig/symbol.c b/scripts/kconfig/symbol.c index 99e3d02d1cfc..3929e5b35e79 100644 --- a/scripts/kconfig/symbol.c +++ b/scripts/kconfig/symbol.c | |||
@@ -47,7 +47,6 @@ void sym_init(void) | |||
47 | { | 47 | { |
48 | struct symbol *sym; | 48 | struct symbol *sym; |
49 | struct utsname uts; | 49 | struct utsname uts; |
50 | char *p; | ||
51 | static bool inited = false; | 50 | static bool inited = false; |
52 | 51 | ||
53 | if (inited) | 52 | if (inited) |
@@ -56,20 +55,6 @@ void sym_init(void) | |||
56 | 55 | ||
57 | uname(&uts); | 56 | uname(&uts); |
58 | 57 | ||
59 | sym = sym_lookup("ARCH", 0); | ||
60 | sym->type = S_STRING; | ||
61 | sym->flags |= SYMBOL_AUTO; | ||
62 | p = getenv("ARCH"); | ||
63 | if (p) | ||
64 | sym_add_default(sym, p); | ||
65 | |||
66 | sym = sym_lookup("KERNELVERSION", 0); | ||
67 | sym->type = S_STRING; | ||
68 | sym->flags |= SYMBOL_AUTO; | ||
69 | p = getenv("KERNELVERSION"); | ||
70 | if (p) | ||
71 | sym_add_default(sym, p); | ||
72 | |||
73 | sym = sym_lookup("UNAME_RELEASE", 0); | 58 | sym = sym_lookup("UNAME_RELEASE", 0); |
74 | sym->type = S_STRING; | 59 | sym->type = S_STRING; |
75 | sym->flags |= SYMBOL_AUTO; | 60 | sym->flags |= SYMBOL_AUTO; |