From 240e70d98994f8cb714d529f968228feb9fa2100 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Mon, 20 Aug 2018 11:48:22 +0200 Subject: [PATCH] run: configurable AMT power-on timeout The default timeout is 5 seconds and can be changed like follows. RUN_OPT += --power-on-amt-timeout 11 --- tool/run/power_on/amt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tool/run/power_on/amt b/tool/run/power_on/amt index 3698a4795..c9d9f2ac7 100644 --- a/tool/run/power_on/amt +++ b/tool/run/power_on/amt @@ -18,6 +18,11 @@ proc power_on_amt_password { } { } +proc power_on_amt_timeout { } { + return [get_cmd_arg_first --power-on-amt-timeout 5] +} + + ## # Reset via Intel AMT (works up to version smaller Intel AMT 9) # @@ -126,6 +131,8 @@ proc run_power_on { } { } } - sleep 5 + puts "wait [power_on_amt_timeout] seconds for power on" + sleep [power_on_amt_timeout] + return true }