From: Michal Simek <michal.simek@xilinx.com>
To: Masahisa Kojima <masahisa.kojima@linaro.org>, <u-boot@lists.denx.de>
Cc: Pali Rohar <pali@kernel.org>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Takahiro Akashi <takahiro.akashi@linaro.org>,
Mark Kettenis <mark.kettenis@xs4all.nl>,
Simon Glass <sjg@chromium.org>,
Alexandru Gagniuc <mr.nuke.me@gmail.com>,
Steffen Jaeckel <jaeckel-floss@eyet-services.de>,
Michal Simek <michal.simek@amd.com>,
Ovidiu Panait <ovidiu.panait@windriver.com>,
Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Subject: Re: [PATCH 2/2] bootmenu: U-Boot console is enabled as default
Date: Thu, 26 May 2022 08:23:50 +0200 [thread overview]
Message-ID: <16aaef8d-dedc-3545-af65-b2732b36d816@xilinx.com> (raw)
In-Reply-To: <20220525081813.26214-3-masahisa.kojima@linaro.org>
On 5/25/22 10:18, Masahisa Kojima wrote:
> [CAUTION: External Email]
>
> The commit 2158b0da220c ("bootmenu: add Kconfig option
> not to enter U-Boot console") disables to enter U-Boot
> console from bootmenu as default, this change affects the
> existing bootmenu users.
>
> This commit reverts the default behavior, the bootmenu can
> enter U-Boot console same as before.
> CMD_BOOTMENU_ENTER_UBOOT_CONSOLE is renamed
> BOOTMENU_DISABLE_UBOOT_CONSOLE and depends on
> AUTOBOOT_MENU_SHOW.
>
> Fixes: 2158b0da220c ("bootmenu: add Kconfig option not to enter U-Boot console")
> Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
> ---
> boot/Kconfig | 9 +++++++++
> cmd/Kconfig | 10 ----------
> cmd/bootmenu.c | 4 ++--
> 3 files changed, 11 insertions(+), 12 deletions(-)
>
> diff --git a/boot/Kconfig b/boot/Kconfig
> index dff4d23b88..2eae3d5c6b 100644
> --- a/boot/Kconfig
> +++ b/boot/Kconfig
> @@ -1143,6 +1143,15 @@ config AUTOBOOT_MENU_SHOW
> environmnent variable (if enabled) and before handling the boot delay.
> See README.bootmenu for more details.
>
> +config BOOTMENU_DISABLE_UBOOT_CONSOLE
> + bool "Disallow bootmenu to enter the U-Boot console"
> + depends on AUTOBOOT_MENU_SHOW
> + default n
Remove this line. It is default option anyway.
> + help
> + If this option is enabled, user can not enter
> + the U-Boot console from bootmenu. It increases
> + the system security.
you have 80 chars limit that's why please use it.
> +
> config BOOT_RETRY
> bool "Boot retry feature"
> help
> diff --git a/cmd/Kconfig b/cmd/Kconfig
> index 69c1814d24..09193b61b9 100644
> --- a/cmd/Kconfig
> +++ b/cmd/Kconfig
> @@ -357,16 +357,6 @@ 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
> diff --git a/cmd/bootmenu.c b/cmd/bootmenu.c
> index bf88c2127b..1002c6b20a 100644
> --- a/cmd/bootmenu.c
> +++ b/cmd/bootmenu.c
> @@ -362,7 +362,7 @@ static struct bootmenu_data *bootmenu_create(int delay)
> goto cleanup;
>
> /* Add Quit entry if entering U-Boot console is disabled */
> - if (IS_ENABLED(CONFIG_CMD_BOOTMENU_ENTER_UBOOT_CONSOLE))
> + if (!IS_ENABLED(CONFIG_BOOTMENU_DISABLE_UBOOT_CONSOLE))
> entry->title = strdup("U-Boot console");
> else
> entry->title = strdup("Quit");
> @@ -595,7 +595,7 @@ int menu_show(int bootdelay)
> if (ret == BOOTMENU_RET_UPDATED)
> continue;
>
> - if (!IS_ENABLED(CONFIG_CMD_BOOTMENU_ENTER_UBOOT_CONSOLE)) {
> + if (IS_ENABLED(CONFIG_BOOTMENU_DISABLE_UBOOT_CONSOLE)) {
> if (ret == BOOTMENU_RET_QUIT) {
> /* default boot process */
> if (IS_ENABLED(CONFIG_CMD_BOOTEFI_BOOTMGR))
> --
> 2.17.1
>
M
next prev parent reply other threads:[~2022-05-26 6:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 8:18 [PATCH 0/2] fix issues in bootmenu after adding efi entries Masahisa Kojima
2022-05-25 8:18 ` [PATCH 1/2] bootmenu: use utf-8 for menu title Masahisa Kojima
2022-05-25 8:18 ` [PATCH 2/2] bootmenu: U-Boot console is enabled as default Masahisa Kojima
2022-05-26 6:23 ` Michal Simek [this message]
2022-05-26 6:49 ` Masahisa Kojima
2022-05-25 20:10 ` [PATCH 0/2] fix issues in bootmenu after adding efi entries Pali Rohar
2022-05-25 23:49 ` Masahisa Kojima
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16aaef8d-dedc-3545-af65-b2732b36d816@xilinx.com \
--to=michal.simek@xilinx.com \
--cc=ashok.reddy.soma@xilinx.com \
--cc=ilias.apalodimas@linaro.org \
--cc=jaeckel-floss@eyet-services.de \
--cc=mark.kettenis@xs4all.nl \
--cc=masahisa.kojima@linaro.org \
--cc=michal.simek@amd.com \
--cc=mr.nuke.me@gmail.com \
--cc=ovidiu.panait@windriver.com \
--cc=pali@kernel.org \
--cc=sjg@chromium.org \
--cc=takahiro.akashi@linaro.org \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox