run: fail if boot_dir module was not declared

This commit is contained in:
Christian Helmuth 2015-04-28 18:34:15 +02:00
parent 98def2488a
commit ae61e520d7
1 changed files with 8 additions and 2 deletions

View File

@ -493,8 +493,14 @@ proc wait_for_output { wait_for_re timeout_value running_spawn_id } {
proc run_boot_string { } { return ""; } proc run_boot_string { } { return ""; }
## ##
# Dummy boot_dir maodule # Fall-back boot_dir module
proc run_boot_dir { } { return true; } #
# If this function is called someone forgot to include an appropriate boot_dir
# module. So, we exit with an error.
proc run_boot_dir { binaries } {
puts stderr "Error: boot_dir module missing, e.g., '--include boot_dir/hw'"
exit 1
}
## ##