diff options
author | Karel Kočí <cynerd@email.cz> | 2015-04-19 14:11:40 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-04-19 14:11:40 +0200 |
commit | 9d59f748b06eeea00b1addbf48068455612007aa (patch) | |
tree | f62cc72a4c4b08e900f5b10ce756b75f8f0e2fd4 /scripts | |
parent | 2013c0d61ffd0d989239eacc6e5c27a51809a937 (diff) | |
download | linux-conf-perf-9d59f748b06eeea00b1addbf48068455612007aa.tar.gz linux-conf-perf-9d59f748b06eeea00b1addbf48068455612007aa.tar.bz2 linux-conf-perf-9d59f748b06eeea00b1addbf48068455612007aa.zip |
kernel configuration now calling write_conf instead of make odlconfig hack
Also configuration output is now set as visible.
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kernel.py | 14 |
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: |