]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blob - conf.py
Remove duplicate variable in conf.py
[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 = 'powerpc'
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 = ['../build_script']
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 = ['./boot_script']
29
30 # parse_command
31 # Command to parse double value from boot output
32 parse_command = ['./parse_script']
33
34 # measurement_identifier
35 # Identifier of measurement can consist of measure tool name and version
36 measure_identifier = 'cyclictest-v0.92'
37
38 # picosat_args
39 # Additional arguments passed to PicoSAT.
40 picosat_args = []
41
42 # db_database
43 # Database in PostgreSQL to be used for this tools
44 db_database = 'linux-conf-perf'
45 # db_user
46 # Define PostgreSQL user
47 db_user = 'kocikare'
48 # db_password
49 # Define PostrgreSQL user password
50 db_password = 'ohNg3Ien'
51 # db_host
52 # Address of PostgreSQL database server
53 db_host = 'localhost'
54 # db_port
55 # Port of PotgreSQL database server
56 db_port = 5432
57
58 # multithread
59 # Define if measurement and kernel build should be executed in parallel.
60 multithread = True
61 # multithread_buffer
62 # Defines maximal number of buffered configurations before generating is suspended.
63 multithread_buffer = 32
64
65 # git_describe_cmd
66 # Command used for getting tools version and status from git
67 git_describe_cmd = ['git', 'describe', '--always', '--tags', '--dirty']
68 # git_commit_cmd
69 # Command used for getting commit hash from git
70 git_commit_cmd = ['git', 'rev-parse', '--verify', 'HEAD']
71
72 ## Programs output show/hide
73 # These options hides output of launched programs from terminal.
74 # If variable is True, output is printed. Otherwise is hidden.
75 # What ever are these settings, output is always written to files in folder log.
76 parse_kconfig_output = False
77 picosat_output = False
78 kernel_config_output = False
79 kernel_make_output = False
80 boot_output = False
81 parse_output = False
82
83 ## Configs for debugging
84 single_loop = False # Executes only one loop and exits.
85 only_config = False # Executes only to configuration phase. Building and booting phases are skipped.
86 ignore_misconfig = False # Ignore if configuration wasn't applied correctly.
87 #######################################
88 # Most probably you don't want touch rest of these.
89 ## Path settings
90 dot_confmk = '.conf.mk'
91 dot_config = 'dot_config'
92
93 linux_sources = 'linux/'
94 linux_kconfig_head = linux_sources + 'Kconfig'
95 linux_dot_config = linux_sources + '.config'
96 linux_image = linux_sources + 'arch/' + kernel_arch + '/boot/uImage'
97
98 buildroot_def_config = 'buildroot_recipe/buildroot.def.config'
99 buildroot_inittab_directive = 'buildroot_recipe/inittab_directive'
100 buildroot_initscript = 'scripts/buildroot_recipe/linux-conf-perf'
101 buildroot_initram = 'buildroot/output/images/rootfs.cpio.gz'
102
103 build_folder = 'jobfiles/'
104 jobfolder_linux_image = build_folder + 'linuxImage'
105 symbol_map_file = build_folder + 'symbol_map' # Also defined in parse_kconfig
106 rules_file = build_folder + 'rules' # Also defined in parse_kconfig
107 variable_count_file = build_folder + 'variable_count' # Also defined in parse_kconfig
108 fixed_file = build_folder + 'fixed'
109 measure_file = build_folder + 'measure'
110 dot_measure_file = build_folder + 'dot_measure'
111 dot_config_back_file = build_folder + 'dot_config_back'
112 single_generated_file = build_folder + 'single_generated'
113
114 configurations_folder = 'configurations/'
115 hashconfigsort = configurations_folder + 'hashconfigsort'
116
117 output_folder = 'output/'
118 result_folder = 'result/'
119 log_folder = 'log/'
120
121 ## Programs paths
122 parse_kconfig = 'scripts/parse_kconfig/parse'
123 write_config = 'scripts/write_config/write_config'
124 picosat = 'scripts/picosat-959/picosat'
125 allconfig = 'scripts/allconfig/allconfig'
126
127
128 absroot = os.path.dirname(os.path.realpath(__file__))