Trigger the building of the mkeficapsule tool if EFI_LOADER is enabled.
Previously it was triggered on EFI_CAPSULE_ON_DISK, but mkeficapsule is
needed when a capsule is being generated for a bootloader stage, not just
from the stage applying them. EFI_LOADER is a more accurate approximation
of when a capsule may need to be generated.

Signed-off-by: Jonathan Humphreys <j-humphr...@ti.com>
---
 tools/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/Kconfig b/tools/Kconfig
index 667807b3317..5c75af48fe3 100644
--- a/tools/Kconfig
+++ b/tools/Kconfig
@@ -98,7 +98,7 @@ config TOOLS_SHA512
 
 config TOOLS_MKEFICAPSULE
        bool "Build efimkcapsule command"
-       default y if EFI_CAPSULE_ON_DISK
+       default y if EFI_LOADER
        help
          This command allows users to create a UEFI capsule file and,
          optionally sign that file. If you want to enable UEFI capsule
-- 
2.34.1

Reply via email to