[feature/patina-boot] patina_boot: Add discover_boot_options helper#1447
Merged
kat-perez merged 1 commit intoOpenDevicePartnership:feature/patina-bootfrom Apr 20, 2026
Conversation
Contributor
✅ QEMU Validation PassedAll QEMU validation jobs completed successfully.
Workflow run: https://github.com/OpenDevicePartnership/patina/actions/runs/24682484811 Boot Time to EFI Shell
Dependencies
This comment was automatically generated by the Patina QEMU PR Validation Post workflow. |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
8cee855 to
1892744
Compare
f168dff to
d9458cb
Compare
1892744 to
f39c078
Compare
os-d
reviewed
Apr 1, 2026
97c8715 to
5428475
Compare
os-d
approved these changes
Apr 2, 2026
d9458cb to
f808a3e
Compare
makubacki
reviewed
Apr 15, 2026
5428475 to
1404ee4
Compare
Reads BootOrder and Boot#### UEFI variables to build a BootConfig from UEFI-compliant boot options, enabling SimpleBootManager to use standard boot variables instead of platform-hardcoded device paths.
1404ee4 to
76b99eb
Compare
makubacki
approved these changes
Apr 20, 2026
73d7c9d
into
OpenDevicePartnership:feature/patina-boot
11 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add
discover_boot_options()helper topatina_boot::helpersthat reads UEFIBootOrderandBoot####variables to build aBootConfigfrom standard UEFI boot options.This enables any
BootOrchestratorimplementation that consumesBootConfigto use UEFI-compliant boot variables instead of requiring platforms to hardcode device paths. The function:BootOrderto determine boot attempt orderBoot####EFI_LOAD_OPTIONstructure to extract device pathsLOAD_OPTION_ACTIVE)BootConfigwith discovered devices in priority orderHow This Was Tested
feature/patina-booton QEMU Q35 — full boot to UEFI Shell 2.0Integration Instructions
Platforms can call
discover_boot_options()with runtime services to automatically populate aBootConfigfrom UEFI boot variables instead of constructing device paths manually. This works with anyBootOrchestratorimplementation that accepts aBootConfig: