diff options
| author | Masahisa Kojima <[email protected]> | 2022-04-28 17:09:44 +0900 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2022-05-03 21:39:22 +0200 |
| commit | 2158b0da220ccbe969bc18668263141d9a89f13e (patch) | |
| tree | b92f707c966cee9391291feed281c2c6be4412b2 /cmd/Kconfig | |
| parent | c606c0059f7f81d06ed316e9cd654ffbbad84ad5 (diff) | |
bootmenu: add Kconfig option not to enter U-Boot console
This commit adds the Kconfig option to disable to enter
the U-Boot console from bootmenu.
If CMD_BOOTMENU_ENTER_UBOOT_CONSOLE is enabled, "U-Boot console"
entry is appeared as the last entry in the bootmenu, then user can
enter U-Boot console.
If CMD_BOOTMENU_ENTER_UBOOT_CONSOLE is disabled, "Quit" entry
is appeared as the last entry instead of "U-Boot console".
When user chooses "Quit" from bootmenu, the following default
commands are invoked.
- "bootefi bootmgr" (if efi bootmgr is enabled)
- "run bootcmd"
If the both commands are executed and returns to the bootmenu,
the bootmenu will appears again.
Signed-off-by: Masahisa Kojima <[email protected]>
Diffstat (limited to 'cmd/Kconfig')
| -rw-r--r-- | cmd/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig index 09193b61b95..69c1814d24a 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -357,6 +357,16 @@ config CMD_BOOTMENU help Add an ANSI terminal boot menu command. +config CMD_BOOTMENU_ENTER_UBOOT_CONSOLE + bool "Allow Bootmenu to enter the U-Boot console" + depends on CMD_BOOTMENU + default n + help + Add an entry to enter U-Boot console in bootmenu. + If this option is disabled, user can not enter + the U-Boot console from bootmenu. It increases + the system security. + config CMD_ADTIMG bool "adtimg" help |
