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'
39 # Additional arguments passed to PicoSAT.
43 # Database in PostgreSQL to be used for this tools
44 db_database = 'linux-conf-perf'
46 # Define PostgreSQL user
49 # Define PostrgreSQL user password
50 db_password = 'ohNg3Ien'
52 # Address of PostgreSQL database server
55 # Port of PotgreSQL database server
59 # Define if measurement and kernel build should be executed in parallel.
62 # Defines maximal number of buffered configurations before generating is suspended.
63 multithread_buffer = 32
66 # Command used for getting tools version and status from git
67 git_describe_cmd = ['git', 'describe', '--always', '--tags', '--dirty']
69 # Command used for getting commit hash from git
70 git_commit_cmd = ['git', 'rev-parse', '--verify', 'HEAD']
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
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.
90 dot_confmk = '.conf.mk'
91 dot_config = 'dot_config'
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'
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'
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'
114 configurations_folder = 'configurations/'
115 hashconfigsort = configurations_folder + 'hashconfigsort'
117 output_folder = 'output/'
118 result_folder = 'result/'
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'
128 absroot = os.path.dirname(os.path.realpath(__file__))