Adjust the EBBR 2.1 conformance profile ECPT entry configuration, and
prepare to add more:
- Introduce the HAVE_EFI_EBBR_2_1 non-visible configuration symbol to
compute the actual system conformance status with the dependencies.
This will make it easier to add more versions with a chain of
dependencies, while avoiding a chain of nested submenus.
- Adjust version 2.1 dependencies to better match the specification.
Relax the dependency on the boot manager, which was introduced in
version 2.3, and make the list of required UEFI protocols and services
more complete.
- Reword the EFI_EBBR_2_1_CONFORMANCE configuration entry title and help
text, mostly to separate "EBBR" from "v2.1" and to attenuate the
redundant "table" mention.
We do the following additional configurations dependencies
approximations:
Configuration symbol Used to approximate
------------------------ ------------------------------------
EFI_HAVE_CAPSULE_SUPPORT Firmware update is performed in-band
DM_RTC An RTC is present
While at it, refine the ECPT help text to attenuate the redundant
"table" mention there as well.
Signed-off-by: Vincent Stehlé <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Tom Rini <[email protected]>
---
lib/efi_loader/Kconfig | 36 +++++++++++++++++++++++++++---------
1 file changed, 27 insertions(+), 9 deletions(-)
diff --git a/lib/efi_loader/Kconfig b/lib/efi_loader/Kconfig
index 4cb13ae7c8a..40380876959 100644
--- a/lib/efi_loader/Kconfig
+++ b/lib/efi_loader/Kconfig
@@ -557,23 +557,41 @@ config EFI_ESRT
help
Enabling this option creates the ESRT UEFI system table.
+config HAVE_EFI_EBBR_2_1
+ bool
+ 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
+ depends on BOOTMETH_EFILOADER
+ depends on !EFI_VARIABLE_NO_STORE
+ depends on BOOTM_EFI
+ depends on EFI_BINARY_EXEC
+ depends on EFI_DEVICE_PATH_TO_TEXT
+ depends on EFI_DEVICE_PATH_UTIL
+ depends on EFI_GET_TIME || !DM_RTC
+ depends on EFI_PARTITION
+ depends on EFI_SET_TIME || !DM_RTC
+ depends on EFI_UNICODE_CAPITALIZATION
+ depends on EFI_ESRT || !EFI_HAVE_CAPSULE_SUPPORT
+ depends on EFI_RUNTIME_UPDATE_CAPSULE || !EFI_HAVE_CAPSULE_SUPPORT
+ depends on EFI_CAPSULE_FIRMWARE || !EFI_HAVE_CAPSULE_SUPPORT
+ default y
+
config EFI_ECPT
bool "Enable the UEFI ECPT generation"
default y
help
- Enabling this option created the ECPT UEFI table.
+ Enabling this option creates the EFI Conformance Profiles Table
+ (ECPT).
config EFI_EBBR_2_1_CONFORMANCE
- bool "Add the EBBRv2.1 conformance entry to the ECPT table"
- depends on BOOTMETH_EFI_BOOTMGR
- 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
+ bool "Add the EBBR v2.1 conformance entry to the ECPT"
+ depends on EFI_ECPT && HAVE_EFI_EBBR_2_1
default y
help
- Enabling this option adds the EBBRv2.1 conformance entry to the ECPT
UEFI table.
+ Enabling this option adds the Embedded Base Boot Requirements (EBBR)
+ v2.1 conformance entry to the ECPT.
config EFI_CONSOLE_DISABLE_ANSI
bool "Disable ANSI escape sequence queries for console size"
--
2.53.0