package/s390-tools: add libxml2 optional dependency

libxml2 is an optional dependency which is enabled by default since
version 2.17.0 and
56fecf1832

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 2021-08-01 22:46:50 +02:00 committed by Thomas Petazzoni
parent 9fc9841db8
commit 1539338671

View File

@ -56,6 +56,15 @@ else
S390_TOOLS_MAKE_OPTS += HAVE_GLIB2=0
endif
ifeq ($(BR2_PACKAGE_LIBXML2),y)
S390_TOOLS_DEPENDENCIES += libxml2
S390_TOOLS_MAKE_OPTS += \
HAVE_LIBXML2=1 \
XML2_CONFIG=$(STAGING_DIR)/usr/bin/xml2-config
else
S390_TOOLS_MAKE_OPTS += HAVE_LIBXML2=0
endif
ifeq ($(BR2_PACKAGE_NCURSES),y)
S390_TOOLS_DEPENDENCIES += ncurses
S390_TOOLS_MAKE_OPTS += HAVE_NCURSES=1