Commit 93d7212f authored by Joe Hershberger's avatar Joe Hershberger Committed by Tom Rini
Browse files

Allow runtime configuration of "zero-delay" check

Define the new "-2" value for bootdelay to mean autoboot with no delay
and don't check for an abort key (while "0" value means do check).
Signed-off-by: Joe Hershberger's avatarJoe Hershberger <>
parent e53515a2
......@@ -704,6 +704,8 @@ The following options need to be configured:
- Boot Delay: CONFIG_BOOTDELAY - in seconds
Delay before automatically booting the default image;
set to -1 to disable autoboot.
set to -2 to autoboot with no delay and not check for abort
(even when CONFIG_ZERO_BOOTDELAY_CHECK is defined).
See doc/README.autoboot for these options that
work with CONFIG_BOOTDELAY. None are required.
......@@ -222,7 +222,8 @@ int abortboot(int bootdelay)
printf("Hit any key to stop autoboot: %2d ", bootdelay);
if (bootdelay >= 0)
printf("Hit any key to stop autoboot: %2d ", bootdelay);
......@@ -382,7 +383,7 @@ void main_loop (void)
debug ("### main_loop: bootcmd=\"%s\"\n", s ? s : "<UNDEFINED>");
if (bootdelay >= 0 && s && !abortboot (bootdelay)) {
if (bootdelay != -1 && s && !abortboot(bootdelay)) {
int prev = disable_ctrlc(1); /* disable Control C checking */
# endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment