summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-28 15:00:21 -0700
committerTom Rini <trini@konsulko.com>2023-02-06 13:04:53 -0500
commit22353fa6b585072e7cbe7d534fbbb98ef70f56d5 (patch)
treef9766e8e8b2df30e892feeee2e6203bb298962de /boot
parenta710f5b2ebe6207125ee2260a7cfbe2b9e6e7ff3 (diff)
bootstd: Add some default filesystems and commands
We need to support a basic set of filesystems for booting to work in most cases. Add these in via a new option, letting the board disable them individually (for space reasons) if desired. This enables the filesystem commands as well as the actual functionality, even though bootstd is quite happy to use ext4 without the ext4 command. Further work would be needed to disintangle this and reduce code size. Add several other options as well, providing sensible defaults. We cannot enable this by default, since it expands the size of many boards quite a lot. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot')
-rw-r--r--boot/Kconfig27
1 files changed, 27 insertions, 0 deletions
diff --git a/boot/Kconfig b/boot/Kconfig
index 98e194fc2b..5f491625c8 100644
--- a/boot/Kconfig
+++ b/boot/Kconfig
@@ -406,6 +406,33 @@ config VPL_BOOTSTD
if BOOTSTD
+config BOOTSTD_DEFAULTS
+ bool "Select some common defaults for standard boot"
+ depends on BOOTSTD
+ imply USE_BOOTCOMMAND
+ # Bring in some defaults which are generally needed. Boards can drop
+ # these as needed to save code space. Bootstd does not generally require
+ # the commands themselves to be enabled, but this is how some of the
+ # functionality is controlled at present
+ imply CMD_EXT2
+ imply CMD_EXT4
+ imply CMD_FAT
+ imply CMD_FS_GENERIC
+ imply CMD_PART
+ imply CMD_DHCP if NET
+ imply CMD_MII if NET
+ imply CMD_PING if NET
+ imply CMD_PXE if NET
+ imply USB_STORAGE
+ imply SUPPORT_RAW_INITRD
+ imply ENV_VARS_UBOOT_CONFIG
+ imply EFI_PARTITION
+ imply ISO_PARTITION
+ help
+ These are not required but are commonly needed to support a good
+ selection of booting methods. Enable this to improve the capability
+ of U-Boot to boot various images.
+
config BOOTSTD_BOOTCOMMAND
bool "Use bootstd to boot"
default y if !DISTRO_DEFAULTS