mkeficapsule tool is automatically enabled when EFI_LOADER is selected, which introduces a host dependency on libgnutls.
This causes build failures in minimal toolchain environments where gnutls headers are not installed. Stratix10 SoCFPGA platforms do not use UEFI capsule update workflows and therefore do not require mkeficapsule. Disable CONFIG_TOOLS_MKEFICAPSULE in Stratix10 defconfigs to: (1) avoid unintended host dependency on gnutls, (2) reflect actual platform capability, and (3) prevent tool build failures in minimal environments. This is intended as an interim fix; a proper Kconfig refinement to only enable mkeficapsule when capsule update support is actually used is being discussed with EFI maintainers. Signed-off-by: Boon Khai Ng <[email protected]> Reviewed-by: Tom Rini <[email protected]> --- Changelog: v2: - Update commit message to clarify root cause of build failure (missing gnutls/gnutls.h when mkeficapsule is enabled by EFI_LOADER). - Clarify that Stratix10 SoCFPGA platforms do not use UEFI capsule update workflows, so mkeficapsule is not required for these boards. - Explicitly state this change is intended as an interim workaround to avoid unintended host dependency on libgnutls in minimal builds. - Note that a longer-term fix should refine Kconfig logic to enable mkeficapsule only for platforms that actually support capsule updates. v1: https://patchwork.ozlabs.org/project/uboot/patch/ [email protected]/ configs/socfpga_stratix10_atf_defconfig | 1 + configs/socfpga_stratix10_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/socfpga_stratix10_atf_defconfig b/configs/socfpga_stratix10_atf_defconfig index 2eea9a2a731..e7ae16fc278 100644 --- a/configs/socfpga_stratix10_atf_defconfig +++ b/configs/socfpga_stratix10_atf_defconfig @@ -88,3 +88,4 @@ CONFIG_WDT=y # CONFIG_SPL_USE_TINY_PRINTF is not set CONFIG_PANIC_HANG=y CONFIG_SPL_CRC32=y +# CONFIG_TOOLS_MKEFICAPSULE is not set diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig index 7b04859dec7..3071864d88e 100644 --- a/configs/socfpga_stratix10_defconfig +++ b/configs/socfpga_stratix10_defconfig @@ -90,3 +90,4 @@ CONFIG_WDT=y # CONFIG_SPL_USE_TINY_PRINTF is not set CONFIG_PANIC_HANG=y CONFIG_SPL_CRC32=y +# CONFIG_TOOLS_MKEFICAPSULE is not set -- 2.43.7

