]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blob - conf.py
Setup oldconfig to yes to all
[linux-conf-perf.git] / conf.py
1 import os
2
3 def pf(rfile):
4         "Relative patch of file is decoded to absolute acording to working tree."
5         return os.path.dirname(os.path.realpath(__file__)) + '/' + rfile
6
7 def checkXf(f, message):
8         "Check if file is executable. If not, raise MissingFile exception."
9         if os.path.isfile(f) and os.access(f, os.X_OK):
10                 return f
11         else:
12                 raise MissingFile(f, message)
13
14 # Global configs
15 SRCARCH = 'x86' # Kernel architecture
16 ARCH = SRCARCH
17 linux_make_args = ['-j8']
18
19 # Path settings
20 linux_sources = pf('linux')
21 linux_kconfig_head = 'Kconfig'
22
23 build_folder = pf('build/')
24 phase_file = build_folder + '/phase'
25 symbol_map_file = build_folder + '/symbol_map' # Also defined in kconfig_parser
26 rules_file = build_folder + '/rules' # Also defined in kconfig_parser
27 solved_file = build_folder + '/solved'
28 required_file = build_folder + '/required'
29 dot_config_fragment_file = build_folder + '/dot_config_fragment'
30 dot_config_back_file = build_folder + '/dot_config_back'
31 solution_file = build_folder + '/solution'
32 iteration_file = build_folder + '/iteration'
33
34 # Programs paths
35 kconfig_parser = checkXf(pf('programs/kconfig_parser'), 'You must build programs first.')
36
37 # Programs output hide
38 kconfig_parser_output = False
39 minisat_output = False
40 kernel_config_output = False