From: Pali Rohár <pali@kernel.org>
Date: Mon, 23 May 2022 20:50:36 +0000 (+0200)
Subject: ubifs: Add missing dependency on GZIP
X-Git-Tag: v2025.01-rc5-pxa1908~1353^2~25^2~2
X-Git-Url: http://git.dujemihanovic.xyz/img/static//%22brlog.php?a=commitdiff_plain;h=b257c4e9064dc4c2b86d30cec5ece368ca981225;p=u-boot.git

ubifs: Add missing dependency on GZIP

GZIP option can be manually de-selected when UBIFS is enabled. This cause
following compile error because ubifs calls gzip functions.

  /tmp/ccxVrh2c.ltrans1.ltrans.o: in function `gzip_decompress.lto_priv.566':
  <artificial>:(.text+0x768): undefined reference to `zunzip'
  collect2: error: ld returned 1 exit status
  make: *** [Makefile:1813: u-boot] Error 1

So add missing dependency on GZIP.

Signed-off-by: Pali Rohár <pali@kernel.org>
---

diff --git a/cmd/Kconfig b/cmd/Kconfig
index 06ec81007a..9a0b720311 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -2569,6 +2569,7 @@ config CMD_UBIFS
 	depends on CMD_UBI
 	default y if CMD_UBI
 	select LZO
+	select GZIP
 	help
 	  UBIFS is a file system for flash devices which works on top of UBI.