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 <s...@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!

Reply via email to