public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [RFC RESEND 0/2] Add ESRT and test ESRT creation
@ 2021-01-28 13:29 Jose Marinho
  2021-01-28 13:29 ` [RFC RESEND 1/2] efi: Add ESRT to the EFI system table Jose Marinho
  2021-01-28 13:29 ` [RFC RESEND 2/2] efi: Add fake FMP instance to test ESRT creation Jose Marinho
  0 siblings, 2 replies; 8+ messages in thread
From: Jose Marinho @ 2021-01-28 13:29 UTC (permalink / raw)
  To: u-boot

The following 2 commits add the ESRT and provide some intial testing.

The first commit adds the ESRT as defined in the UEFI 2.8 specification.
The ESRT is created during the execution of the efi_init_obj_list().
The ESRT will, during initialization, look for FMP instances already
present in the system and populate the corresponding FW image entries.

When a new FMP is added, via efi_add_protocol(), the
method esrt_add_from_fmp() is called to populate the corresponding ESRT
entries.

The second commit creates a fake FMP instance with the intent of testing
the code populating the ESRT entries.

CC: Heinrich Schuchardt	<xypron.glpk@gmx.de>
CC: Sughosh Ganu <sughosh.ganu@linaro.org>
CC: AKASHI Takahiro <takahiro.akashi@linaro.org>
CC: Andre Przywara <andre.przywara@arm.com>
CC: Alexander Graf <agraf@csgraf.de>
CC: nd at arm.com

Jose Marinho (2):
  efi: Add ESRT to the EFI system table
  efi: Add fake FMP instance to test ESRT creation

 include/efi_api.h             |  21 +++
 include/efi_loader.h          |  22 +++
 lib/efi_loader/Makefile       |   2 +
 lib/efi_loader/efi_boottime.c |  12 ++
 lib/efi_loader/efi_esrt.c     | 294 ++++++++++++++++++++++++++++++++++
 lib/efi_loader/efi_fake_fmp.c | 172 ++++++++++++++++++++
 lib/efi_loader/efi_setup.c    |   4 +
 7 files changed, 527 insertions(+)
 create mode 100644 lib/efi_loader/efi_esrt.c
 create mode 100644 lib/efi_loader/efi_fake_fmp.c

-- 
2.17.1

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-02-15  1:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-28 13:29 [RFC RESEND 0/2] Add ESRT and test ESRT creation Jose Marinho
2021-01-28 13:29 ` [RFC RESEND 1/2] efi: Add ESRT to the EFI system table Jose Marinho
2021-01-28 15:29   ` Heinrich Schuchardt
2021-01-29  5:26     ` AKASHI Takahiro
2021-02-12 14:17       ` Heinrich Schuchardt
2021-02-15  1:22         ` AKASHI Takahiro
2021-01-28 13:29 ` [RFC RESEND 2/2] efi: Add fake FMP instance to test ESRT creation Jose Marinho
2021-01-28 15:02   ` Heinrich Schuchardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox