aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py72
1 files changed, 38 insertions, 34 deletions
diff --git a/conf.py b/conf.py
index 722332d..54c5f20 100644
--- a/conf.py
+++ b/conf.py
@@ -1,51 +1,55 @@
import os
from exceptions import MissingFile
-def pf(rfile):
- "Relative patch of file is decoded to absolute acording to working tree."
- return os.path.dirname(os.path.realpath(__file__)) + '/' + rfile
-
# Global configs
SRCARCH = 'x86' # Kernel architecture
ARCH = SRCARCH
linux_make_args = ['-j8']
novaboot_args = ['--qemu=qemu-system-x86_64']
-# Path settings
-dot_confmk = pf('.conf.mk')
-
-linux_sources = pf('linux')
-linux_kconfig_head = 'Kconfig'
-linux_dot_config = linux_sources + '/.config'
-linux_image = linux_sources + '/arch/' + ARCH + '/boot/bzImage'
-
-build_folder = pf('build/')
-phase_file = build_folder + '/phase'
-symbol_map_file = build_folder + '/symbol_map' # Also defined in kconfig_parser
-rules_file = build_folder + '/rules' # Also defined in kconfig_parser
-solved_file = build_folder + '/solved'
-required_file = build_folder + '/required'
-dot_config_fragment_file = build_folder + '/dot_config_fragment'
-dot_config_back_file = build_folder + '/dot_config_back'
-solution_file = build_folder + '/solution'
-iteration_file = build_folder + '/iteration'
-
-buildroot_def_config = pf('scripts/buildroot_recipe/buildroot.def.config')
-buildroot_inittab_directive = pf('scripts/buildroot_recipe/inittab_directive')
-buildroot_initscript = pf('scripts/buildroot_recipe/linux-conf-perf')
-buildroot_initram = pf('scripts/buildroot/output/images/rootfs.cpio.gz')
-
-# Programs paths
-parse_kconfig = pf('scripts/parse_kconfig/parse')
-write_config = pf('scripts/write_config/write')
-novaboot = pf('scripts/novaboot/novaboot')
-
# Programs output show/hide
parse_kconfig_output = False
minisat_output = False
kernel_config_output = True
kernel_make_output = True
-boot_output = True
+boot_output = False
+
+#######################################
+# Path settings
+dot_confmk = '.conf.mk'
+benchmark_python = 'benchmark.py'
+
+linux_sources = 'linux/'
+linux_kconfig_head = linux_sources + 'Kconfig'
+linux_dot_config = linux_sources + '.config'
+linux_image = linux_sources + 'arch/' + ARCH + '/boot/bzImage'
+
+build_folder = 'build/'
+phase_file = build_folder + 'phase'
+symbol_map_file = build_folder + 'symbol_map' # Also defined in kconfig_parser
+rules_file = build_folder + 'rules' # Also defined in kconfig_parser
+solved_file = build_folder + 'solved'
+required_file = build_folder + 'required'
+dot_config_fragment_file = build_folder + 'dot_config_fragment'
+dot_config_back_file = build_folder + 'dot_config_back'
+solution_file = build_folder + 'solution'
+iteration_file = build_folder + 'iteration'
+output_confs = build_folder + 'output_confs'
+
+output_folder = build_folder + 'output/'
+
+buildroot_def_config = 'scripts/buildroot_recipe/buildroot.def.config'
+buildroot_inittab_directive = 'scripts/buildroot_recipe/inittab_directive'
+buildroot_initscript = 'scripts/buildroot_recipe/linux-conf-perf'
+buildroot_initram = 'scripts/buildroot/output/images/rootfs.cpio.gz'
initram = build_folder + 'initram.gz'
nbscript = 'scripts/nbscript'
+
+# Programs paths
+parse_kconfig = 'scripts/parse_kconfig/parse'
+write_config = 'scripts/write_config/write'
+novaboot = 'scripts/novaboot/novaboot'
+
+
+absroot = os.path.dirname(os.path.realpath(__file__))