diff options
author | Karel Kočí <cynerd@email.cz> | 2015-03-26 14:33:35 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-03-26 14:33:35 +0100 |
commit | ee18912759d170e1f926bc1a234dba781a98fbdd (patch) | |
tree | 56af0f224a2315f562644e536b88ad32c0338711 /scripts/kernel.py | |
parent | e43949f8d7ac1c7f0083ffa0252f0c6dec11363e (diff) | |
download | linux-conf-perf-ee18912759d170e1f926bc1a234dba781a98fbdd.tar.gz linux-conf-perf-ee18912759d170e1f926bc1a234dba781a98fbdd.tar.bz2 linux-conf-perf-ee18912759d170e1f926bc1a234dba781a98fbdd.zip |
Setup oldconfig to yes to all
In generated .config file are missing all non bool/tri state configs (except those from defconfig).
This solution is only temporally.
This way configuration never fails.
Diffstat (limited to 'scripts/kernel.py')
-rw-r--r-- | scripts/kernel.py | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/scripts/kernel.py b/scripts/kernel.py index 76255d0..58e3287 100644 --- a/scripts/kernel.py +++ b/scripts/kernel.py @@ -4,26 +4,18 @@ import subprocess from conf import conf import utils -from exceptions import KernelConfigFailed def config(): # Executing old linux config env = dict(os.environ) wd = os.getcwd() os.chdir(conf.linux_sources) - sprc = subprocess.Popen(['make', 'oldconfig'], stdout=subprocess.PIPE, env=utils.get_kernel_env()) - while True: - line = sprc.stdout.readline() - if line != '': - if b'Restart config' in line: - sprc.terminate() - raise KernelConfigFailed() - break - else: - if conf.kernel_config_output: - print(line.decode('utf-8'), end="") - else: - break + if conf.kernel_config_output: + sprc = subprocess.call('yes "" | make oldconfig', shell=True, + env=utils.get_kernel_env()) + else: + sprc = subprocess.call('yes "" | make oldconfig', shell=True, + stdout=subprocess.DEVNULL, env=utils.get_kernel_env()) os.chdir(wd) def make(): |