aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-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)