summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-07-20 20:51:25 -0600
committerTom Rini <trini@konsulko.com>2019-08-02 11:19:14 -0400
commitcf9803a60b27da7958f6abc9b42e58f3783f5880 (patch)
treea3196a35a64a383123559513c389a5f488b1c57c
parente231306e48870b7138d5ff161e16e0d53b325314 (diff)
downloadu-boot-cf9803a60b27da7958f6abc9b42e58f3783f5880.tar.gz
u-boot-cf9803a60b27da7958f6abc9b42e58f3783f5880.tar.bz2
u-boot-cf9803a60b27da7958f6abc9b42e58f3783f5880.zip
Convert CONFIG_AUTOBOOT_MENU_SHOW to Kconfig
This converts the following to Kconfig: CONFIG_AUTOBOOT_MENU_SHOW Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--cmd/Kconfig8
-rw-r--r--configs/nokia_rx51_defconfig1
-rw-r--r--include/configs/nokia_rx51.h2
-rw-r--r--include/configs/vexpress_aemv8a.h2
4 files changed, 9 insertions, 4 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 8d2e0a9e4e..22a3737b4e 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -170,6 +170,14 @@ config AUTOBOOT_MENUKEY
For example, 33 means "!" in ASCII, so pressing ! at boot would take
this action.
+config AUTOBOOT_MENU_SHOW
+ bool "Show a menu on boot"
+ help
+ This enables the boot menu, controlled by environment variables
+ defined by the board. The menu starts after running the 'preboot'
+ environmnent variable (if enabled) and before handling the boot delay.
+ See README.bootmenu for more details.
+
endmenu
config BUILD_BIN2C
diff --git a/configs/nokia_rx51_defconfig b/configs/nokia_rx51_defconfig
index 5cd96017e5..ab5bb2de6f 100644
--- a/configs/nokia_rx51_defconfig
+++ b/configs/nokia_rx51_defconfig
@@ -12,6 +12,7 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y
CONFIG_HUSH_PARSER=y
CONFIG_SYS_PROMPT="Nokia RX-51 # "
CONFIG_AUTOBOOT_KEYED=y
+CONFIG_AUTOBOOT_MENU_SHOW=y
CONFIG_CMD_BOOTMENU=y
# CONFIG_CMD_IMI is not set
# CONFIG_CMD_SAVEENV is not set
diff --git a/include/configs/nokia_rx51.h b/include/configs/nokia_rx51.h
index b251061e30..fd755bbcea 100644
--- a/include/configs/nokia_rx51.h
+++ b/include/configs/nokia_rx51.h
@@ -270,8 +270,6 @@ int rx51_kp_getc(struct stdio_dev *sdev);
"run attachboot;" \
"echo"
-#define CONFIG_AUTOBOOT_MENU_SHOW
-
/*
* Miscellaneous configurable options
*/
diff --git a/include/configs/vexpress_aemv8a.h b/include/configs/vexpress_aemv8a.h
index 2b1269de83..89cd8b550a 100644
--- a/include/configs/vexpress_aemv8a.h
+++ b/include/configs/vexpress_aemv8a.h
@@ -110,8 +110,6 @@
#define CONFIG_PL011_CLOCK 24000000
#endif
-/*#define CONFIG_AUTOBOOT_MENU_SHOW*/
-
/* BOOTP options */
#define CONFIG_BOOTP_BOOTFILESIZE