]> rtime.felk.cvut.cz Git - linux-conf-perf.git/blobdiff - conf.py
Add kconfig2dot tool
[linux-conf-perf.git] / conf.py
diff --git a/conf.py b/conf.py
index 9efc975e05db3e1d32f79e8d299b9a3377ea4523..caafa04f65bd0d8d7b863a21a348e47465c8e889 100644 (file)
--- a/conf.py
+++ b/conf.py
@@ -1,4 +1,5 @@
 import os
+import sys
 import re
 import importlib.machinery
 
@@ -18,6 +19,9 @@ build_command = ['make']
 # boot_command
 # Command executed for booting. Output of this command is saved to output folder.
 boot_command = ['echo', 'bootit']
+# boot_timeout
+# Set timeout of boot process if no output is generated for selected seconds
+boot_timeout = 120
 
 # parse_command
 # Command to parse double value from boot output
@@ -83,9 +87,8 @@ dot_confmk = '.conf.mk'
 dot_config = 'dot_config'
 
 linux_sources = 'linux/'
-linux_kconfig_head = linux_sources + 'Kconfig'
-linux_dot_config = linux_sources + '.config'
-linux_image = linux_sources + 'arch/' + kernel_arch + '/boot/bzImage'
+linux_build_folder = 'linux/'
+linux_image = linux_build_folder + 'arch/' + kernel_arch + '/boot/bzImage'
 
 build_folder = 'jobfiles/'
 jobfolder_linux_image = build_folder + 'linuxImage'
@@ -97,6 +100,9 @@ measure_file = build_folder + 'measure'
 dot_measure_file = build_folder + 'dot_measure'
 dot_config_back_file = build_folder + 'dot_config_back'
 single_generated_file = build_folder + 'single_generated'
+measurechecked_file = build_folder + 'measurechecked'
+
+buildroot_config_cyclictest = '/dev/null'
 
 result_folder = 'result/'
 log_folder = 'log/'
@@ -123,6 +129,8 @@ if os.path.isfile(os.path.join(absroot, '.target')):
                        if not re.match('__*__', name):
                                vars()[name] = vars(ovconf)[name]
        else:
-               print("W: No target specifier. Write target to .target file.")
+               print("E: Invalid target specifier. Write valid target to .target file.")
+               sys.exit(-99)
 else:
-       print("W: No target specifier. Write target to .target file.")
+       print("E: No target specifier. Write target to .target file.")
+       sys.exit(-99)