Skip to contentSkip to conversation

ubifs: Add missing dependency on GZIP

PATCH In review Pali Rohár 2 participants 2 messages May 23, 2022 – Jun 7, 2022

lore
Share & tools
lore
#0 lore raw

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

---
 cmd/Kconfig | 1 +
 1 file changed, 1 insertion(+)
cmd/Kconfig +1 -0
index 69c1814d24af..50e60fd4d5b6 100644
@@ -2562,6 +2562,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.
 
Signature · 1 line
2.20.1
#1 lore raw
Quoted 11 lines · Pali Rohár

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.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom