From b9d566143df0839aae83239f702e9971bd20691f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 22 Mar 2015 23:02:45 +0100 Subject: Main loop update --- scripts/main_loop.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/main_loop.py b/scripts/main_loop.py index 9dd8c08..458085e 100755 --- a/scripts/main_loop.py +++ b/scripts/main_loop.py @@ -11,6 +11,7 @@ import phase import solution import kernel from exceptions import MissingFile +from exceptions import KernelConfigFailed import iteration def step(): @@ -47,16 +48,21 @@ def step(): phase.set(6) elif phs == phase.phs("Solution applied"): print("-- Generated solution applied") - phase.set(2) # TODO edited + phase.set(7) elif phs == phase.phs("Kernel configuration"): print("-- Kernel configure ...") - phase.set(8) + try: + kernel.config() + phase.set(8) + except KernelConfigFailed: + print("-- Kernel configuration failed") + phase.set(3) elif phs == phase.phs("Kernel configured"): print("-- Kernel configured") phase.set(9) elif phs == phase.phs("Kernel build"): print("-- Build Linux ...") - kernel.build() + kernel.make() phase.set(10) elif phs == phase.phs("Kernel built"): print("-- Linux built") -- cgit v1.2.3