aboutsummaryrefslogtreecommitdiff
path: root/common/Kconfig
diff options
context:
space:
mode:
authorMasahiro Yamada2019-02-14 11:05:33 +0900
committerTom Rini2019-02-22 19:49:41 -0500
commit607d06d262a9949aa38895edb476448f186d577b (patch)
treee3612338820e94085c0048d016b38abbb1f506d2 /common/Kconfig
parent2ab6e74dbd667e77d88e3ffb1893515243e0c5ad (diff)
preboot: Introduce CONFIG_USE_PREBOOT and migrate CONFIG_PREBOOT
This is the same migration path as commit b6251db8c3f0 ("Kconfig: Introduce USE_BOOTCOMMAND and migrate BOOTCOMMAND"). I also moved the description in README to the Kconfig help. I ripped off the sentence about 'LWMON' since it is gone already. I only let my boards migrate, leaving the rest to platform maintainers. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'common/Kconfig')
-rw-r--r--common/Kconfig18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/Kconfig b/common/Kconfig
index e100c229496..1a1951f874e 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -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