aboutsummaryrefslogtreecommitdiff
path: root/scripts/kernel.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kernel.py')
-rw-r--r--scripts/kernel.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/kernel.py b/scripts/kernel.py
index 0b62826..a95202f 100644
--- a/scripts/kernel.py
+++ b/scripts/kernel.py
@@ -11,6 +11,20 @@ def config():
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()
+ os.chdir(conf.linux_sources)
+ if conf.kernel_config_output:
sprc = subprocess.call('yes "" | make oldconfig', shell=True,
env=utils.get_kernel_env())
else: