Skip to contentSkip to conversation

cmd: license: Add CONFIG_GZIP dependency

PATCH In review Ivan Orlov 2 participants 2 messages Jan 11, 2024 – Jan 19, 2024

lore
Share & tools
lore

Ivan Orlov

author
#0 lore raw

PATCH 1/1 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.

---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
index 26aeeeed03..0d63cbfda1 100644
@@ -188,6 +188,7 @@ config CMD_HISTORY
 config CMD_LICENSE
 	bool "license"
 	select BUILD_BIN2C
+	depends on GZIP
 	help
 	  Print GPL license text
 
Signature · 1 line
2.34.1
#1 lore raw
Quoted 8 lines · Ivan Orlov

'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.

Applied to u-boot/master, thanks!

Signature · 1 line
Tom