Skip to content

Add UEFI target support - #696

Draft
fionera wants to merge 3 commits into
hermeticbuild:mainfrom
fionera:agent/uefi-support
Draft

Add UEFI target support#696
fionera wants to merge 3 commits into
hermeticbuild:mainfrom
fionera:agent/uefi-support

Conversation

@fionera

@fionera fionera commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

What changed

  • add UEFI as a supported target OS for x86_64 and AArch64
  • add direct lld-link toolchains, PE/COFF linker flags, and MSVC feature overrides
  • provide UEFI target triples, compile-only sysroot handling, and the required compiler-rt sources
  • add an end-to-end UEFI application fixture

Why

Downstream users currently need local patches to produce freestanding EFI applications. The existing toolchain graph did not expose UEFI platforms or a complete Clang-to-lld-link path, and Windows-oriented defaults such as PIC are invalid for this ABI.

This adds the missing target configuration without changing existing Linux, macOS, or Windows toolchains.

Validation

  • built the x86_64 fixture and verified it is a PE32+ EFI application
  • built the AArch64 fixture and verified it is a PE32+ EFI application
  • resolved the UEFI toolchain with stage1_from_source
  • ran Buildifier checks on the changed Starlark files

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.

2 participants