[PATCH v2 15/16] bootstd: Add a command to read all files for a bootflow
Simon Glass
sjg at chromium.org
Fri Aug 11 15:37:38 CEST 2023
Some bootflows (such as EFI and ChromiumOS) delay reading the kernel until
it is needed to boot. This saves time when scanning and avoids needing to
allocate memory for something that may never be used.
To permit reading of these files, add a new 'bootflow read' command.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v2:
- Make the bootmeth operation optional to remove code-size impact
boot/bootflow.c | 16 ++++++++
boot/bootmeth-uclass.c | 12 ++++++
boot/bootmeth_cros.c | 22 ++++++++++-
cmd/bootflow.c | 33 +++++++++++++++-
doc/usage/cmd/bootflow.rst | 80 +++++++++++++++++++++++++++++++++++++-
include/bootflow.h | 11 ++++++
include/bootmeth.h | 25 +++++++++++-
7 files changed, 195 insertions(+), 4 deletions(-)
Applied to u-boot-dm/next, thanks!
More information about the U-Boot
mailing list