aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-04-19 14:06:35 +0200
committerKarel Kočí <cynerd@email.cz>2015-04-19 14:06:35 +0200
commit2013c0d61ffd0d989239eacc6e5c27a51809a937 (patch)
tree97ef6cd74446b1013be4ef46cace2b62596bc2f4
parentc9d5ecb37847a87c9312f8227bd51f63bc7aa55a (diff)
downloadlinux-conf-perf-2013c0d61ffd0d989239eacc6e5c27a51809a937.tar.gz
linux-conf-perf-2013c0d61ffd0d989239eacc6e5c27a51809a937.tar.bz2
linux-conf-perf-2013c0d61ffd0d989239eacc6e5c27a51809a937.zip
initialize.py use utils get_kernel_env for parse_kconfig()
-rw-r--r--scripts/initialize.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/initialize.py b/scripts/initialize.py
index 4d14b1f..220f199 100644
--- a/scripts/initialize.py
+++ b/scripts/initialize.py
@@ -10,15 +10,12 @@ from exceptions import MissingFile
def parse_kconfig():
"Execute parse_kconfig in linux_sources directory and parsed output is placed to build_folder."
env = dict(os.environ)
- env['SRCARCH'] = conf.SRCARCH
- env['ARCH'] = conf.ARCH
- env['KERNELVERSION'] = 'KERNELVERSION' # hides error
wd = os.getcwd()
os.chdir(conf.linux_sources)
if conf.parse_kconfig_output:
- subprocess.call([conf.parse_kconfig, conf.linux_kconfig_head, conf.build_folder, "-v", "-v"], env=env)
+ subprocess.call([conf.parse_kconfig, conf.linux_kconfig_head, conf.build_folder, "-v", "-v"], env=utils.get_kernel_env())
else:
- subprocess.call([conf.parse_kconfig, conf.linux_kconfig_head, conf.build_folder], env=env)
+ subprocess.call([conf.parse_kconfig, conf.linux_kconfig_head, conf.build_folder], env=utils.get_kernel_env())
os.chdir(wd)