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