[U-Boot] [PATCH 03/10] Kconfig: add CONFIG_BOOTDELAY

Igor Grinberg grinberg at compulab.co.il
Wed Aug 26 16:54:46 CEST 2015


Add CONFIG_BOOTDELAY to the Kconfig.
To make the transition easier, we define CONFIG_AUTOBOOT_BOOTDELAY to
actually enable the CONFIG_BOOTDELAY Kconfig setting.
Once all boards finish transitioning to Kconfig, we can remove the
CONFIG_AUTOBOOT_BOOTDELAY and just leave the CONFIG_BOOTDELAY unguarded.

Signed-off-by: Igor Grinberg <grinberg at compulab.co.il>
Cc: Simon Glass <sjg at chromium.org>
Cc: Masahiro Yamada <yamada.masahiro at socionext.com>
---
 common/Kconfig | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/common/Kconfig b/common/Kconfig
index 88dc016..ecbf6cb 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -100,6 +100,23 @@ config AUTOBOOT_STOP_STR_SHA256
 	  string / password matches a values that is encypted via
 	  a SHA256 hash and saved in the environment.
 
+config AUTOBOOT_BOOTDELAY
+	bool "Enable specifying the boot delay"
+	help
+	  This option enables specifying the delay time (in seconds)
+	  before automatically booting the default image.
+
+config BOOTDELAY
+	int "Seconds to delay before autobooting"
+	depends on AUTOBOOT_BOOTDELAY
+	default 1
+	help
+	  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 additional information.
+
 endmenu
 
 comment "Commands"
-- 
2.4.6



More information about the U-Boot mailing list