package/erofs-utils: add libdeflate and zlib optional dependencies

libdeflate and zlib are optional dependencies and zlib is enabled by
default since bump to version 1.7.1 in commit
f5f3d8ca00 and
https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git/commit/?id=29b9e71401621d3417599067a75bd9b13154c6a7:

checking for zlib... no
configure: error: Package requirements (zlib) were not met:

Package 'zlib', required by 'virtual:world', not found

Fixes: f5f3d8ca00
 - http://autobuild.buildroot.org/results/a56d5917b5a1e8c75368349f75ec425aeba1ff15

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine
2024-07-22 14:09:01 +02:00
committed by Thomas Petazzoni
parent 1c955f89ab
commit 4521734348
+21 -1
View File
@@ -42,8 +42,28 @@ else
EROFS_UTILS_CONF_OPTS += --disable-fuse
endif
ifeq ($(BR2_PACKAGE_LIBDEFLATE),y)
EROFS_UTILS_DEPENDENCIES += libdeflate
EROFS_UTILS_CONF_OPTS += --with-libdeflate
else
EROFS_UTILS_CONF_OPTS += --without-libdeflate
endif
ifeq ($(BR2_PACKAGE_ZLIB),y)
EROFS_UTILS_DEPENDENCIES += zlib
EROFS_UTILS_CONF_OPTS += --with-zlib
else
EROFS_UTILS_CONF_OPTS += --without-zlib
endif
HOST_EROFS_UTILS_DEPENDENCIES = host-pkgconf host-util-linux host-lz4 host-xz
HOST_EROFS_UTILS_CONF_OPTS += --enable-lz4 --enable-lzma --disable-fuse --without-selinux
HOST_EROFS_UTILS_CONF_OPTS += \
--enable-lz4 \
--enable-lzma \
--disable-fuse \
--without-libdeflate \
--without-selinux \
--without-zlib
$(eval $(autotools-package))
$(eval $(host-autotools-package))