[PATCH 3/3] use environment option

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Roman Zippel
Date: Sunday, January 13, 2008 - 8:51 pm

Use the environment option to provide the ARCH symbol.
Remove the unused KERNELVERSION symbol.

Signed-off-by: Roman Zippel <zippel@linux-m68k.org>

---
 init/Kconfig             |    4 ++++
 scripts/kconfig/symbol.c |   14 --------------
 2 files changed, 4 insertions(+), 14 deletions(-)

Index: linux-2.6/init/Kconfig
===================================================================
--- linux-2.6.orig/init/Kconfig
+++ linux-2.6/init/Kconfig
@@ -1,3 +1,7 @@
+config ARCH
+	string
+	option env="ARCH"
+
 config DEFCONFIG_LIST
 	string
 	depends on !UML
Index: linux-2.6/scripts/kconfig/symbol.c
===================================================================
--- linux-2.6.orig/scripts/kconfig/symbol.c
+++ linux-2.6/scripts/kconfig/symbol.c
@@ -56,20 +56,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;
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] kconfig: factor out code in confdata.c, Sam Ravnborg, (Sat Nov 10, 1:43 pm)
[PATCH] kconfig: document make K64BIT=y in README, Sam Ravnborg, (Sat Nov 10, 1:43 pm)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*con ..., Guillaume Chazarain, (Sat Nov 10, 1:55 pm)
Re: [PATCH] kconfig: document make K64BIT=y in README, Randy Dunlap, (Sat Nov 10, 3:23 pm)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*con ..., Guillaume Chazarain, (Sun Nov 11, 5:43 am)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*con ..., Guillaume Chazarain, (Sun Nov 11, 7:59 am)
Re: [PATCH] kconfig: use $K64BIT to set 64BIT with all*con ..., Guillaume Chazarain, (Sun Nov 11, 8:55 am)
[PATCH 2/3] environment symbol support, Roman Zippel, (Sun Jan 13, 8:50 pm)
[PATCH 3/3] use environment option, Roman Zippel, (Sun Jan 13, 8:51 pm)