[PATCH 1/1] tools: build mkeficapsule for CONFIG_EFI_HAVE_CAPSULE_SUPPORT=y

Heinrich Schuchardt <[email protected]>
Newsgroups org.u-boot-project.lists.u-boot
Message-ID <[email protected]>
Currently we build mkeficapsule by default even if we don't have EFI
capsule support enabled. This adds a host GnuTLS build dependency.

Only build mkeficapsule by default if CONFIG_EFI_HAVE_CAPSULE_SUPPORT=y.

tools-only_defconfig explicitly selects CONFIG_TOOLS_MKEFICAPSULE=y.
Hence distro packages like Debian's u-boot-tools will still contain
mkeficapsule.

Reported-by: Linus Walleij <[email protected]>
Signed-off-by: Heinrich Schuchardt <[email protected]>
---
 tools/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/Kconfig b/tools/Kconfig
index ef33295b8ec..e151b30217e 100644
--- a/tools/Kconfig
+++ b/tools/Kconfig
@@ -108,7 +108,7 @@ config TOOLS_SHA512
 
 config TOOLS_MKEFICAPSULE
 	bool "Build efimkcapsule command"
-	default y if EFI_LOADER
+	default y if EFI_HAVE_CAPSULE_SUPPORT
 	help
 	  This command allows users to create a UEFI capsule file and,
 	  optionally sign that file. If you want to enable UEFI capsule
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.