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