package/file: add xz optional dependency

xz is an optional dependency since version 5.38 and
b259a07ea9

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 2020-01-31 19:05:43 +01:00 committed by Thomas Petazzoni
parent 788a7560cb
commit 7e70be6d29

View File

@ -21,5 +21,12 @@ else
FILE_CONF_OPTS += --disable-libseccomp
endif
ifeq ($(BR2_PACKAGE_XZ),y)
FILE_CONF_OPTS += --enable-xzlib
FILE_DEPENDENCIES += xz
else
FILE_CONF_OPTS += --disable-xzlib
endif
$(eval $(autotools-package))
$(eval $(host-autotools-package))