5 # This defines environment variable ARCH for linux kernel.
6 # Change this to change target architecture
7 kernel_arch = 'powerpc'
10 # Enviroment variables for Linux
11 kernel_env = {'SRCARCH': kernel_arch, 'ARCH': kernel_arch, 'KERNELVERSION': kernel_arch}
13 # These are arguments passed to make when linux is build.
14 linux_make_args = ['-j8']
16 # Command executed for kernel build in linux folder.
17 build_command = ['../build_script']
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']
24 # This variable is path to Novaboot script.
25 nbscript = 'scripts/nbscript'
27 # Command executed for booting. Output of this command is saved to output folder.
28 boot_command = ['./boot_script']
31 # Command to parse double value from boot output
32 parse_command = ['./parse_script']
34 # measurement_identifier
35 # Identifier of measurement can consist of measure tool name and version
36 measure_identifier = 'cyclictest-v0.92'
38 # measurement_identifier
39 # Identifier of measurement can consist of measure tool name and version
40 measure_identifier = 'cyclictest-v0.92'
43 # Additional arguments passed to PicoSAT.
47 # Database in PostgreSQL to be used for this tools
48 db_database = 'linux-conf-perf'
50 # Define PostgreSQL user
53 # Define PostrgreSQL user password
54 db_password = 'ohNg3Ien'
56 # Address of PostgreSQL database server
59 # Port of PotgreSQL database server
63 # Define if measurement and kernel build should be executed in parallel.
66 # Defines maximal number of buffered configurations before generating is suspended.
67 multithread_buffer = 32
70 # Command used for getting tools version and status from git
71 git_describe_cmd = ['git', 'describe', '--always', '--tags', '--dirty']
73 # Command used for getting commit hash from git
74 git_commit_cmd = ['git', 'rev-parse', '--verify', 'HEAD']
76 ## Programs output show/hide
77 # These options hides output of launched programs from terminal.
78 # If variable is True, output is printed. Otherwise is hidden.
79 # What ever are these settings, output is always written to files in folder log.
80 parse_kconfig_output = False
81 picosat_output = False
82 kernel_config_output = False
83 kernel_make_output = False
87 ## Configs for debugging
88 single_loop = False # Executes only one loop and exits.
89 only_config = False # Executes only to configuration phase. Building and booting phases are skipped.
90 ignore_misconfig = False # Ignore if configuration wasn't applied correctly.
91 #######################################
92 # Most probably you don't want touch rest of these.
94 dot_confmk = '.conf.mk'
95 dot_config = 'dot_config'
97 linux_sources = 'linux/'
98 linux_kconfig_head = linux_sources + 'Kconfig'
99 linux_dot_config = linux_sources + '.config'
100 linux_image = linux_sources + 'arch/' + kernel_arch + '/boot/uImage'
102 buildroot_def_config = 'buildroot_recipe/buildroot.def.config'
103 buildroot_inittab_directive = 'buildroot_recipe/inittab_directive'
104 buildroot_initscript = 'scripts/buildroot_recipe/linux-conf-perf'
105 buildroot_initram = 'buildroot/output/images/rootfs.cpio.gz'
107 build_folder = 'jobfiles/'
108 jobfolder_linux_image = build_folder + 'linuxImage'
109 symbol_map_file = build_folder + 'symbol_map' # Also defined in parse_kconfig
110 rules_file = build_folder + 'rules' # Also defined in parse_kconfig
111 variable_count_file = build_folder + 'variable_count' # Also defined in parse_kconfig
112 fixed_file = build_folder + 'fixed'
113 measure_file = build_folder + 'measure'
114 dot_measure_file = build_folder + 'dot_measure'
115 dot_config_back_file = build_folder + 'dot_config_back'
116 single_generated_file = build_folder + 'single_generated'
118 configurations_folder = 'configurations/'
119 hashconfigsort = configurations_folder + 'hashconfigsort'
121 output_folder = 'output/'
122 result_folder = 'result/'
126 parse_kconfig = 'scripts/parse_kconfig/parse'
127 write_config = 'scripts/write_config/write_config'
128 picosat = 'scripts/picosat-959/picosat'
129 allconfig = 'scripts/allconfig/allconfig'
132 absroot = os.path.dirname(os.path.realpath(__file__))