From 9d59f748b06eeea00b1addbf48068455612007aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 19 Apr 2015 14:11:40 +0200 Subject: kernel configuration now calling write_conf instead of make odlconfig hack Also configuration output is now set as visible. --- scripts/kernel.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts') diff --git a/scripts/kernel.py b/scripts/kernel.py index 0b62826..a95202f 100644 --- a/scripts/kernel.py +++ b/scripts/kernel.py @@ -6,6 +6,20 @@ from conf import conf import utils def config(): + # Executing old linux config + env = dict(os.environ) + wd = os.getcwd() + os.chdir(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()) + else: + sprc = subprocess.call([conf.write_config, conf.linux_kconfig_head, + conf.build_folder], stdout=subprocess.DEVNULL, + env=utils.get_kernel_env()) + os.chdir(wd) + +def config_noprogram(): # Executing old linux config env = dict(os.environ) wd = os.getcwd() -- cgit v1.2.3