From 2013c0d61ffd0d989239eacc6e5c27a51809a937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 19 Apr 2015 14:06:35 +0200 Subject: initialize.py use utils get_kernel_env for parse_kconfig() --- scripts/initialize.py | 7 ++----- 1 file 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) -- cgit v1.2.3