summaryrefslogtreecommitdiff
path: root/boot/Kconfig
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-03-11 17:12:04 +0300
committerTom Rini <trini@konsulko.com>2022-03-18 19:48:17 +0300
commit69c8a817cf4342774bf1ed19838b9d49c933e969 (patch)
tree3926fdde9679d8030afb959d0b82d3588a0db50e /boot/Kconfig
parent0b5870c3f54d8da504866d70cf74b3b7ca3c49bb (diff)
downloadu-boot-69c8a817cf4342774bf1ed19838b9d49c933e969.tar.xz
Convert CONFIG_BOOT_RETRY_TIME et al to Kconfig
This converts the following to Kconfig: CONFIG_BOOT_RETRY_TIME CONFIG_BOOT_RETRY_MIN CONFIG_RESET_TO_RETRY We also introduce CONFIG_BOOT_RETRY to gate these options, and clean up the associated Makefile entry and C code for picking default values of CONFIG_BOOT_RETRY_MIN. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'boot/Kconfig')
-rw-r--r--boot/Kconfig30
1 files changed, 30 insertions, 0 deletions
diff --git a/boot/Kconfig b/boot/Kconfig
index b83a4e8400..a395529b1f 100644
--- a/boot/Kconfig
+++ b/boot/Kconfig
@@ -991,6 +991,36 @@ config AUTOBOOT_MENU_SHOW
environmnent variable (if enabled) and before handling the boot delay.
See README.bootmenu for more details.
+config BOOT_RETRY
+ bool "Boot retry feature"
+ help
+ Allow for having the U-Boot command prompt time out and attempt
+ to boot again. If the environment variable "bootretry" is found then
+ its value is used, otherwise the retry timeout is
+ CONFIG_BOOT_RETRY_TIME. CONFIG_BOOT_RETRY_MIN is optional and
+ defaults to CONFIG_BOOT_RETRY_TIME. All times are in seconds.
+
+config BOOT_RETRY_TIME
+ int "Timeout in seconds before attempting to boot again"
+ depends on BOOT_RETRY
+ help
+ Time in seconds before the U-Boot prompt will timeout and boot will
+ be attempted again.
+
+config BOOT_RETRY_MIN
+ int "Minimum timeout in seconds for 'bootretry'"
+ depends on BOOT_RETRY
+ default BOOT_RETRY_TIME
+ help
+ The minimum time in seconds that "bootretry" can be set to.
+
+config RESET_TO_RETRY
+ bool "Reset the board to retry autoboot"
+ depends on BOOT_RETRY
+ help
+ After the countdown timed out, the board will be reset to restart
+ again.
+
endmenu
config USE_BOOTARGS