]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blob - conf.py
206f723d3a170b3ebca9e188ee1a2925172e2610
[linux-conf-perf.git] / conf.py
1 import os
2
3 ## Global configs
4 # ARCH
5 # This defines environment variable for linux kernel.
6 # Change this to change target architecture
7 ARCH = 'x86'
8 # gen_all_solutions_oninit
9 # If True, all solutions are generated at initalization.
10 # If False, every loop is generated one solution.
11 gen_all_solution_oninit = True # If True, all solutions are generated at initialization.
12
13 # kernle_env
14 # Enviroment variables for Linux
15 kernel_env = {'SRCARCH': ARCH, 'ARCH': ARCH, 'KERNELVERSION': ARCH}
16 # linux_make_args
17 # These are arguments passed to make when linux is build.
18 linux_make_args = ['-j8']
19 # build_command
20 # Command executed for kernel build in linux folder.
21 build_command = ['make'] + linux_make_args
22
23 # novaboot_args
24 # These are arguments passed to Novaboot,
25 # but only if you don't remove it from boot_command.
26 novaboot_args = ['--qemu=qemu-system-x86_64']
27 # nbscript
28 # This variable is path to Novaboot script.
29 nbscript = 'scripts/nbscript'
30 # boot_command
31 # Command executed for booting. Output of this command is saved to output folder.
32 boot_command = ['scripts/novaboot/novaboot', nbscript] + novaboot_args
33
34 # picosat_args
35 # Arguments passed to PicoSAT.
36 picosat_args = []
37
38 ## Programs output show/hide
39 # These options hides output of launched programs from terminal.
40 # If variable is True, output is printed. Otherwise is hidden.
41 # What ever are these settings, output is always written to files in folder log.
42 parse_kconfig_output = False
43 picosat_output = False
44 kernel_config_output = True
45 kernel_make_output = True
46 boot_output = True
47
48 ## Configs for debugging
49 step_by_step = False # Executes only single step and exits.
50 single_loop = False # Executes only one loop and exits.
51 only_config = False # Executes only to configuration phase. Building and booting phases are skipped.
52 ignore_misconfig = False # Ignore if configuration wasn't applied correctly.
53 #######################################
54 # Most probably you don't want touch rest of these.
55 ## Path settings
56 dot_confmk = '.conf.mk'
57 dot_config = 'dot_config'
58
59 linux_sources = 'linux/'
60 linux_kconfig_head = linux_sources + 'Kconfig'
61 linux_dot_config = linux_sources + '.config'
62 linux_image = linux_sources + 'arch/' + ARCH + '/boot/bzImage'
63
64 buildroot_def_config = 'buildroot_recipe/buildroot.def.config'
65 buildroot_inittab_directive = 'buildroot_recipe/inittab_directive'
66 buildroot_initscript = 'scripts/buildroot_recipe/linux-conf-perf'
67 buildroot_initram = 'buildroot/output/images/rootfs.cpio.gz'
68
69 build_folder = 'jobfiles/'
70 jobfolder_linux_image = build_folder + 'linuxImage'
71 phase_file = build_folder + 'phase'
72 symbol_map_file = build_folder + 'symbol_map' # Also defined in parse_kconfig
73 rules_file = build_folder + 'rules' # Also defined in parse_kconfig
74 variable_count_file = build_folder + 'variable_count' # Also defined in parse_kconfig
75 config_map_file = build_folder + 'config_map'
76 config_solved_file = build_folder + 'config_solved'
77 solved_file = build_folder + 'solved'
78 required_file = build_folder + 'required'
79 dot_config_fragment_file = build_folder + 'dot_config_fragment'
80 dot_config_back_file = build_folder + 'dot_config_back'
81 solution_file = build_folder + 'solution'
82 iteration_file = build_folder + 'iteration'
83 output_confs = build_folder + 'output_confs'
84
85 output_folder = 'output/'
86 result_folder = 'result/'
87 log_folder = 'log/'
88
89 ## Programs paths
90 parse_kconfig = 'scripts/parse_kconfig/parse'
91 write_config = 'scripts/write_config/write'
92 picosat = 'scripts/picosat-959/picosat'
93
94
95 absroot = os.path.dirname(os.path.realpath(__file__))