diff options
author | Simon Glass <sjg@chromium.org> | 2022-04-24 23:31:27 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-04-25 10:00:04 -0400 |
commit | a91492b6e9c8c72a531a8e53711d0c144d4d1306 (patch) | |
tree | f5b5d31bb6c540d3dfb830a0786b9ab45265733d | |
parent | fca20a5a6262f2a79f3dca65509510def40dc076 (diff) | |
download | u-boot-a91492b6e9c8c72a531a8e53711d0c144d4d1306.zip u-boot-a91492b6e9c8c72a531a8e53711d0c144d4d1306.tar.gz u-boot-a91492b6e9c8c72a531a8e53711d0c144d4d1306.tar.bz2 |
bootstd: Provide a default command
We would like to use bootstd by default when EFI boot manager is not
enabled. But so far bootstd does not support all the of distro-boot
fetures. So for now, add an option to select this.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | boot/Kconfig | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/boot/Kconfig b/boot/Kconfig index 64e16f3..4b0802b 100644 --- a/boot/Kconfig +++ b/boot/Kconfig @@ -328,6 +328,19 @@ config BOOTSTD_FULL if BOOTSTD +config BOOTSTD_BOOTCOMMAND + bool "Use bootstd to boot" + default y if !DISTRO_DEFAULTS + help + Enable this to select a default boot-command suitable for booting + with standard boot. This can be overridden by the board if needed, + but the default command should be enough for most boards which use + standard boot. + + For now this is only selected if distro boot is NOT used, since + standard boot does not support all of the features of distro boot + yet. + config BOOTMETH_DISTRO bool "Bootdev support for distro boot" depends on CMD_PXE @@ -1260,7 +1273,9 @@ config USE_BOOTCOMMAND config BOOTCOMMAND string "bootcmd value" depends on USE_BOOTCOMMAND && !USE_DEFAULT_ENV_FILE - default "run distro_bootcmd" if DISTRO_DEFAULTS + default "bootflow scan -lb" if BOOTSTD_BOOTCOMMAND && CMD_BOOTFLOW_FULL + default "bootflow scan" if BOOTSTD_BOOTCOMMAND && !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 AUTOBOOT is set, automatically run. |