diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-19 14:06:35 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-19 14:06:35 +0200 |
commit | 2013c0d61ffd0d989239eacc6e5c27a51809a937 (patch) | |
tree | 97ef6cd74446b1013be4ef46cace2b62596bc2f4 | |
parent | c9d5ecb37847a87c9312f8227bd51f63bc7aa55a (diff) | |
download | linux-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.py | 7 |
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) |