git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
call init() function from gethelp()
[linux-2.6.git]
/
configs
/
kread.py
diff --git
a/configs/kread.py
b/configs/kread.py
index
24dc99f
..
c536669
100755
(executable)
--- a/
configs/kread.py
+++ b/
configs/kread.py
@@
-5,7
+5,7
@@
# Marc E. Fiuczynski <mef@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Marc E. Fiuczynski <mef@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: kread.py,v 1.
1 2006/11/30 23:02:35
mef Exp $
+# $Id: kread.py,v 1.
2 2006/12/01 02:40:40
mef Exp $
#
import sys, re, os
#
import sys, re, os
@@
-64,15
+64,20
@@
def process(filename):
fb.close()
fb.close()
+initialized = False
+def init():
+ if not initialized:
+ initialized = True
+ ARCH=os.getenv("ARCH","i386")
+ process("arch/%s/Kconfig" % ARCH)
+
def gethelp(option):
if option[:len("CONFIG_")] == "CONFIG_":
option=option[len("CONFIG_"):]
def gethelp(option):
if option[:len("CONFIG_")] == "CONFIG_":
option=option[len("CONFIG_"):]
+ init()
helptxt = configs.get(option,"")
return helptxt
helptxt = configs.get(option,"")
return helptxt
-def init():
- ARCH=os.getenv("ARCH","i386")
- process("arch/%s/Kconfig" % ARCH)
if __name__ == '__main__':
if len(sys.argv) == 1:
if __name__ == '__main__':
if len(sys.argv) == 1: