blob: 58e3287b5a005e021eb1be6f6a80fab3b96ac050 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
import os
import sys
import subprocess
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('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():
wd = os.getcwd()
os.chdir(conf.linux_sources)
subprocess.call(['make'] + conf.linux_make_args, env=utils.get_kernel_env())
os.chdir(wd)
|