5 # This defines environment variable ARCH for linux kernel.
6 # Change this to change target architecture
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 = ['make'] + linux_make_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']
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 = ['scripts/novaboot/novaboot', nbscript] + novaboot_args
31 # Arguments passed to PicoSAT.
32 picosat_args = ['--all']
35 # Database in PostgreSQL to be used for this tools
38 # Define PostgreSQL user
41 # Define PostrgreSQL user password
42 db_password = 'cynerd'
44 # Address of PostgreSQL database server
47 # Port of PotgreSQL database server
51 # Command used for getting tools version and status from git
52 git_describe_cmd = ['git', 'describe', '--always', '--tags', '--dirty']
54 # Command used for getting commit hash from git
55 git_commit_cmd = ['git', 'rev-parse', '--verify', 'HEAD']
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
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.
75 dot_confmk = '.conf.mk'
76 dot_config = 'dot_config'
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'
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'
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'
100 output_folder = 'output/'
101 result_folder = 'result/'
105 parse_kconfig = 'scripts/parse_kconfig/parse'
106 write_config = 'scripts/write_config/write'
107 picosat = 'scripts/picosat-959/picosat'
110 absroot = os.path.dirname(os.path.realpath(__file__))