preboot: Introduce CONFIG_USE_PREBOOT and migrate CONFIG_PREBOOT
[oweals/u-boot.git] / common / Kconfig
index e100c2294961944fcfbaeb9d174b79fe9a2b6812..1a1951f874ef1bf2122849f32ba2ced84e2dba1b 100644 (file)
@@ -232,6 +232,24 @@ config BOOTCOMMAND
          This is the string of commands that will be used as bootcmd and if
          AUTOBOOT is set, automatically run.
 
+config USE_PREBOOT
+       bool "Enable preboot"
+       help
+         When this option is enabled, the existence of the environment
+         variable "preboot" will be checked immediately before starting the
+         CONFIG_BOOTDELAY countdown and/or running the auto-boot command resp.
+         entering interactive mode.
+
+         This feature is especially useful when "preboot" is automatically
+         generated or modified. For example, the boot code can modify the
+         "preboot" when a user holds down a certain combination of keys.
+
+config PREBOOT
+       string "preboot default value"
+       depends on USE_PREBOOT
+       help
+         This is the default of "preboot" environment variable.
+
 menu "Console"
 
 config MENU