Skip to content

efi: gbl: Introduce Android GBL protocol definitions

Dmitrii Merkurev u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2efi: gbl: Add Android GBL EFI protocol definitionsMAINTAINERS include/efi_gbl/avb.h include/efi_gbl/avf.h +7 more+733 -00 replies
2/2efi: gbl: Add GBL GUID names and protocol documentationMAINTAINERS doc/android/index.rst doc/develop/uefi/gbl.rst +3 more+271 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH next 0/2] efi: gbl: Introduce Android GBL protocol definitions

Android Generic Bootloader (GBL) [1] is a UEFI application from AOSP that handles the Android boot flow (A/B slots, AVB and fastboot). It runs on top of platform firmware and calls into it for board-specific operations via GBL UEFI protocols. EDK2 EmbeddedPkg already carries these headers (commit dfaa76349d4a, "EmbeddedPkg: Introduce GBL protocols").

This series adds the protocol definitions to U-Boot without implementations:

- Patch 1 adds the headers under include/efi_gbl/.
- Patch 2 registers the GBL GUIDs for 'efidebug dh', '%pUs' and 'env print -e', adds a unit test, and adds documentation.

Protocol implementations depend heavily on board and SoC details, so this series only introduces the shared definitions. Board-specific or common implementations can build on them independently.

[1] https://source.android.com/docs/core/architecture/bootloader/generic-bootloader

Dmitrii Merkurev (2):
efi: gbl: Add Android GBL EFI protocol definitions
efi: gbl: Add GBL GUID names and protocol documentation

 MAINTAINERS                          |   7 ++
 doc/android/index.rst                |   3 +
 doc/develop/uefi/gbl.rst             |  97 +++++++++++++++
 doc/develop/uefi/index.rst           |   1 +
 include/efi_gbl/avb.h                | 172 +++++++++++++++++++++++++++
 include/efi_gbl/avf.h                |  41 +++++++
 include/efi_gbl/boot_control.h       | 104 ++++++++++++++++
 include/efi_gbl/boot_memory.h        |  62 ++++++++++
 include/efi_gbl/common.h             |  57 +++++++++
 include/efi_gbl/debug.h              |  44 +++++++
 include/efi_gbl/fastboot.h           |  88 ++++++++++++++
 include/efi_gbl/fastboot_transport.h |  56 +++++++++
 include/efi_gbl/os_configuration.h   | 103 ++++++++++++++++
 lib/uuid.c                           |  47 ++++++++
 test/lib/uuid.c                      | 122 +++++++++++++++++++
 15 files changed, 1004 insertions(+)
 create mode 100644 doc/develop/uefi/gbl.rst
 create mode 100644 include/efi_gbl/avb.h
 create mode 100644 include/efi_gbl/avf.h
 create mode 100644 include/efi_gbl/boot_control.h
 create mode 100644 include/efi_gbl/boot_memory.h
 create mode 100644 include/efi_gbl/common.h
 create mode 100644 include/efi_gbl/debug.h
 create mode 100644 include/efi_gbl/fastboot.h
 create mode 100644 include/efi_gbl/fastboot_transport.h
 create mode 100644 include/efi_gbl/os_configuration.h

base-commit: b7ed8d19d83d08d34b24b15c3dced7fd6c284939

Signature · 1 line
2.56.1.831.g720f3f5937-goog