From e89081c8ae3ba5cc42a7f387b267f02ea5a4e8f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 27 Apr 2015 21:31:03 +0200 Subject: Chnage conf paths from absolute to relative --- scripts/kernel.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'scripts/kernel.py') diff --git a/scripts/kernel.py b/scripts/kernel.py index a95202f..d698e4c 100644 --- a/scripts/kernel.py +++ b/scripts/kernel.py @@ -3,19 +3,19 @@ import sys import subprocess from conf import conf +from conf import sf import utils def config(): - # Executing old linux config env = dict(os.environ) wd = os.getcwd() - os.chdir(conf.linux_sources) + os.chdir(sf(conf.linux_sources)) if conf.kernel_config_output: - sprc = subprocess.call([conf.write_config, conf.linux_kconfig_head, - conf.build_folder], env=utils.get_kernel_env()) + sprc = subprocess.call([sf(conf.write_config), sf(conf.linux_kconfig_head), + sf(conf.build_folder)], env=utils.get_kernel_env()) else: - sprc = subprocess.call([conf.write_config, conf.linux_kconfig_head, - conf.build_folder], stdout=subprocess.DEVNULL, + sprc = subprocess.call([sf(conf.write_config), sf(conf.linux_kconfig_head), + sf(conf.build_folder)], stdout=subprocess.DEVNULL, env=utils.get_kernel_env()) os.chdir(wd) @@ -23,7 +23,7 @@ def config_noprogram(): # Executing old linux config env = dict(os.environ) wd = os.getcwd() - os.chdir(conf.linux_sources) + os.chdir(sf(conf.linux_sources)) if conf.kernel_config_output: sprc = subprocess.call('yes "" | make oldconfig', shell=True, env=utils.get_kernel_env()) @@ -34,7 +34,7 @@ def config_noprogram(): def make(): wd = os.getcwd() - os.chdir(conf.linux_sources) + os.chdir(sf(conf.linux_sources)) if conf.kernel_make_output: subprocess.call(['make'] + conf.linux_make_args, env=utils.get_kernel_env()) -- cgit v1.2.3