diff options
author | Karel Kočí <cynerd@email.cz> | 2015-03-22 23:02:45 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2015-03-22 23:02:45 +0100 |
commit | b9d566143df0839aae83239f702e9971bd20691f (patch) | |
tree | 7667c2f704c65807fab11b1cd1cc388189d51d13 /scripts | |
parent | dc870f901b44afee25427dc6f98b609ff6eb52a8 (diff) | |
download | linux-conf-perf-b9d566143df0839aae83239f702e9971bd20691f.tar.gz linux-conf-perf-b9d566143df0839aae83239f702e9971bd20691f.tar.bz2 linux-conf-perf-b9d566143df0839aae83239f702e9971bd20691f.zip |
Main loop update
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/main_loop.py | 12 |
1 files changed, 9 insertions, 3 deletions
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") |