Skip to content

[lib][uefi] update GBL protocol headers from upstream - #543

Merged
zhangxp1998 merged 3 commits into
littlekernel:masterfrom
zhangxp1998:uefi-protocol-uprev
Oct 21, 2026
Merged

zhangxp1998 merged 3 commits into
littlekernel:masterfrom
zhangxp1998:uefi-protocol-uprev

Conversation

@zhangxp1998

Copy link
Copy Markdown
Contributor

Sync lib/uefi/include/uefi with upstream GBL libefi_types headers:

  • Bump GBL protocol revisions to 1.0 (and 1.1 for GBL_EFI_OS_CONFIGURATION_PROTOCOL).
  • Standardize protocol GUID definitions in the protocol headers via EFI_GUID and drop duplicate definitions from boot_service_provider.h.
  • Update EfiDtFixupProtocol.fixup signature and GUID to match the latest revision.
  • Add fixup_kernel_commandline to GblEfiOsConfigurationProtocol with a default weak stub returning EFI_STATUS_UNSUPPORTED.
  • Remove deprecated gbl_efi_image_loading_protocol.h and duplicate gbl_efi_fastboot_transport.h.

Sync lib/uefi/include/uefi with upstream GBL libefi_types headers:
- Bump GBL protocol revisions to 1.0 (and 1.1 for OS configuration).
- Standardize protocol GUID definitions in protocol headers via EFI_GUID
  and drop duplicate definitions from boot_service_provider.h.
- Update EfiDtFixupProtocol.fixup signature and GUID to the latest revision.
- Add fixup_kernel_commandline to GblEfiOsConfigurationProtocol with a
  default weak stub returning EFI_STATUS_UNSUPPORTED.
- Remove deprecated gbl_efi_image_loading_protocol.h and duplicate
  gbl_efi_fastboot_transport.h.
Copilot AI balanced review requested due to automatic review settings October 20, 2026 04:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@dimorinny dimorinny left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One blocker inline: the DT fixup default overflows the heap, and this PR makes it reachable from current GBL.

Comment thread lib/uefi/uefi_platform.cpp Resolved
Allocate length + sizeof(to_add) - 1 bytes and call fdt_open_into()
before growing chosen/bootargs in efi_dt_fixup(), and exclude the
trailing NUL from final_len in fixup_bootconfig().
Comment thread lib/uefi/uefi_platform.cpp Resolved
Comment thread lib/uefi/uefi_platform.cpp Resolved
Print bootconfig with %.*s bounded by bootconfig_size and return
EFI_STATUS_BUFFER_TOO_SMALL when fixup_buffer_size is insufficient.
@zhangxp1998
zhangxp1998 merged commit 4976a45 into littlekernel:master Oct 21, 2026
129 of 130 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants