bootstd: Correct default boot command
PATCH 1/1 bootstd: Correct default boot command
The patch to relax flag requirements was not accepted[1], so we still have to have separate bootcommands depending on CMD_BOOTFLOW_FULL.
The previous attempt at this did not work, since it used the wrong name for the options.
Fix this and change the message to mention BOOTSTD_FULL since this affects not just the flags, but all functionality, so is more likely what the user wants.
Drop the useless condition on CMD_BOOTFLOW_FULL while we are here.
[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
---
boot/Kconfig | 4 ++-- cmd/Kconfig | 2 +- cmd/bootflow.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
boot/Kconfig +2 -2
@@ -1554,8 +1554,8 @@ config USE_BOOTCOMMAND config BOOTCOMMAND string "bootcmd value" depends on USE_BOOTCOMMAND && !USE_DEFAULT_ENV_FILE - default "bootflow scan -lb" if BOOTSTD_BOOTCOMMAND && CMD_BOOTFLOW_FULL - default "bootflow scan" if BOOTSTD_BOOTCOMMAND && !CMD_BOOTFLOW_FULL + default "bootflow scan -lb" if BOOTSTD_DEFAULTS && CMD_BOOTFLOW_FULL + default "bootflow scan" if BOOTSTD_DEFAULTS && !CMD_BOOTFLOW_FULL default "run distro_bootcmd" if !BOOTSTD_BOOTCOMMAND && DISTRO_DEFAULTS help This is the string of commands that will be used as bootcmd and if
cmd/Kconfig +1 -1
@@ -258,7 +258,7 @@ config CMD_BOOTFLOW config CMD_BOOTFLOW_FULL bool "bootflow - extract subcommands" depends on BOOTSTD_FULL - default y if BOOTSTD_FULL + default y help Add the ability to list the available bootflows, select one and obtain information about it.
cmd/bootflow.c +1 -1
@@ -125,7 +125,7 @@ static int do_bootflow_scan(struct cmd_tbl *cmdtp, int flag, int argc, dev = std->cur_bootdev; }else {if (has_args) { -printf ("Flags not supported: enable CONFIG_BOOTFLOW_FULL\n" ); +printf ("Flags not supported: enable CONFIG_BOOTSTD_FULL\n" );return CMD_RET_USAGE ; } boot = true;
Signature · 1 line
2.40.1.521.gf1e218fcd8-goog
Quoted 10 lines · Simon Glass
The patch to relax flag requirements was not accepted[1], so we still have to have separate bootcommands depending on
CMD_BOOTFLOW_FULL.The previous attempt at this did not work, since it used the wrong name for the options.
Fix this and change the message to mention
BOOTSTD_FULLsince this affects not just the flags, but all functionality, so is more likely what the user wants.
Quoted 6 lines
Drop the useless condition on
CMD_BOOTFLOW_FULLwhile we are here.[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Signed-off-by Simon Glass <[email protected]>Fixes a91492b6e9c ("bootstd: Provide a default command")
Applied to u-boot/master, thanks!
Signature · 1 line
Tom