Skip to content

efi: Partial attempt at a test for EFI bootmeth

Simon Glass u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7efi: Use puts() in cout so that console recording workslib/efi_loader/efi_console.c+1 -12 replies
2/7efi: Show the vendor in helloworldlib/efi_loader/helloworld.c+3 -01 reply
3/7efi: test: Create a disk image with and EFI app in ittest/py/tests/test_ut.py+32 -02 replies
4/7WIP: efi: Disable ANSI outputinclude/efi_loader.h lib/efi_loader/efi_console.c lib/efi_loader/efi_setup.c+20 -132 replies
5/7WIP: efi: Add a test for the EFI bootmetharch/sandbox/dts/test.dts test/boot/bootflow.c+62 -10 replies
6/7WIP: efi: Allow helloworld to exit boot serviceslib/efi_loader/helloworld.c+35 -14 replies
7/7WIP: efi: debuggingboot/bootflow.c boot/bootmeth_efi.c cmd/bootefi.c +2 more+10 -12 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchIlias Apalodimas
1/7R-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] efi: Partial attempt at a test for EFI bootmeth

The test coverage for the EFI bootmeth is incomplete since it does not actually boot the application.

This series makes an attempt at this.

However there are at least two problems:
1. The test does not set up the loaded image properly, so it isn't found by the app.
2. The test needs to use USB instead of mmc, so that usb_stop() is called

Simon Glass (7):
efi: Use puts() in cout so that console recording works
efi: Show the vendor in helloworld
efi: test: Create a disk image with and EFI app in it
WIP: efi: Disable ANSI output
WIP: efi: Add a test for the EFI bootmeth
WIP: efi: Allow helloworld to exit boot services
WIP: efi: debugging

 arch/sandbox/dts/test.dts     | 10 ++++++-
 boot/bootflow.c               |  2 ++
 boot/bootmeth_efi.c           |  1 +
 cmd/bootefi.c                 |  1 +
 include/efi_loader.h          | 14 +++++++--
 lib/efi_loader/efi_boottime.c |  5 ++++
 lib/efi_loader/efi_console.c  | 19 +++++-------
 lib/efi_loader/efi_setup.c    |  2 +-
 lib/efi_loader/helloworld.c   | 39 ++++++++++++++++++++++++-
 test/boot/bootflow.c          | 55 ++++++++++++++++++++++++++++++++++-
 test/py/tests/test_ut.py      | 32 ++++++++++++++++++++
 11 files changed, 163 insertions(+), 17 deletions(-)
Signature · 1 line
2.43.0.rc1.413.gea7ed67945-goog