ARM-software / ebbr

Embedded Base Boot Requirements Specification
Creative Commons Attribution Share Alike 4.0 International
112 stars 36 forks source link

UEFI: GUID for EFI Conformance Profile Table #96

Closed xypron closed 1 year ago

xypron commented 2 years ago

Provide a GUID that can be used in the EFI Conformance Profile Table to indicate conformance with the EBBR 2.0 specification.

Fixes: #95 Signed-off-by: Heinrich Schuchardt heinrich.schuchardt@canonical.com

jmarinho commented 2 years ago

Should we have some wording in EBBR suggesting/mandating that FW create the conformance profiles table?

xypron commented 2 years ago

The UEFI 2.10 spec says: "The absence of this table shall indicate that the platform implementation is conformant with the UEFI specification requirements, as defined in Section 2.6." But this does not include the extra requirements of the EBBR.

If the software is fully compliant to the EBBR, it could add said GUID to the table. If it is not fully compliant it should not add the GUID I guess.

xypron commented 2 years ago

U-Boot adds the GUID if elements required by the EBBR but optional in U-Boot are enabled in the configuration

efi: ECPT add EBBRv2.0 conformance profile https://source.denx.de/u-boot/u-boot/-/commit/648a8dcb39306ebd32353d6c503ac3b69e064190

config EFI_EBBR_2_0_CONFORMANCE
    bool "Add the EBBRv2.0 conformance entry to the ECPT table"
    depends on EFI_ECPT
    depends on EFI_LOADER_HII
    depends on EFI_RISCV_BOOT_PROTOCOL || !RISCV
    depends on EFI_RNG_PROTOCOL || !DM_RNG
    depends on EFI_UNICODE_COLLATION_PROTOCOL2
    default y