From: Ivan Orlov <ivan.orlov@codethink.co.uk>
Date: Thu, 11 Jan 2024 12:58:19 +0000 (+0000)
Subject: cmd: license: Add CONFIG_GZIP dependency
X-Git-Tag: v2025.01-rc5-pxa1908~697^2~3
X-Git-Url: http://git.dujemihanovic.xyz/html/static/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=cf536daeedf559d4192b1a9c85e0745a904b9204;p=u-boot.git

cmd: license: Add CONFIG_GZIP dependency

'License' command processing code could be successfully compiled only
when CONFIG_GZIP option is enabled, otherwise it can't find the 'gunzip'
function definition (it is defined in lib/gunzip.c).

Add CONFIG_GZIP dependency to 'license' command config option in the
corresponding Kconfig.

Signed-off-by: Ivan Orlov <ivan.orlov@codethink.co.uk>
---

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 46600e5007..50625e7c16 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -192,6 +192,7 @@ config CMD_HISTORY
 config CMD_LICENSE
 	bool "license"
 	select BUILD_BIN2C
+	depends on GZIP
 	help
 	  Print GPL license text