2020-09-17 06:08:02 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# s390-tools
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-10-06 11:11:16 +02:00
|
|
|
S390_TOOLS_VERSION = 2.18.0
|
2021-02-23 17:12:23 +01:00
|
|
|
S390_TOOLS_SITE = $(call github,ibm-s390-linux,s390-tools,v$(S390_TOOLS_VERSION))
|
2020-09-17 06:08:02 +02:00
|
|
|
S390_TOOLS_LICENSE = MIT
|
|
|
|
S390_TOOLS_LICENSE_FILES = LICENSE
|
2020-10-20 12:39:04 +02:00
|
|
|
S390_TOOLS_DEPENDENCIES = zlib
|
2020-09-17 06:08:02 +02:00
|
|
|
|
|
|
|
S390_TOOLS_MAKE_OPTS = \
|
|
|
|
ARCH=$(BR2_ARCH) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \
|
|
|
|
LINK="$(TARGET_CC)" \
|
|
|
|
LINKXX="$(TARGET_CXX)"
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
S390_TOOLS_DEPENDENCIES += libcurl
|
2020-11-28 11:04:03 +01:00
|
|
|
S390_TOOLS_MAKE_OPTS += \
|
2021-08-01 22:46:49 +02:00
|
|
|
CURL_CONFIG=$(STAGING_DIR)/usr/bin/curl-config \
|
2020-11-28 11:04:03 +01:00
|
|
|
HAVE_CURL=1 \
|
|
|
|
HAVE_LIBCURL=1
|
2020-09-17 06:08:02 +02:00
|
|
|
else
|
2020-11-28 11:04:03 +01:00
|
|
|
S390_TOOLS_MAKE_OPTS += \
|
|
|
|
HAVE_CURL=0 \
|
|
|
|
HAVE_LIBCURL=0
|
2020-09-17 06:08:02 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JSON_C),y)
|
|
|
|
S390_TOOLS_DEPENDENCIES += json-c
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_JSONC=1
|
|
|
|
else
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_JSONC=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
S390_TOOLS_DEPENDENCIES += openssl
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_OPENSSL=1
|
|
|
|
else
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_OPENSSL=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CRYPTSETUP),y)
|
|
|
|
S390_TOOLS_DEPENDENCIES += cryptsetup
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_CRYPTSETUP2=1
|
|
|
|
else
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_CRYPTSETUP2=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
|
|
S390_TOOLS_DEPENDENCIES += libglib2
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_GLIB2=1
|
|
|
|
else
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_GLIB2=0
|
|
|
|
endif
|
|
|
|
|
2021-08-01 22:46:50 +02:00
|
|
|
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
|
|
|
|
|
2020-09-17 06:08:02 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
|
|
|
S390_TOOLS_DEPENDENCIES += ncurses
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_NCURSES=1
|
|
|
|
else
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_NCURSES=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPFM4),y)
|
|
|
|
S390_TOOLS_DEPENDENCIES += libpfm4
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_PFM=1
|
|
|
|
else
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_PFM=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
|
|
|
|
S390_TOOLS_DEPENDENCIES += libfuse
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_FUSE=1
|
|
|
|
else
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_FUSE=0
|
|
|
|
endif
|
|
|
|
|
2020-11-28 10:51:08 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_NETSNMP),y)
|
|
|
|
S390_TOOLS_DEPENDENCIES += netsnmp
|
|
|
|
S390_TOOLS_MAKE_OPTS += \
|
|
|
|
NET_SNMP_CONFIG=$(STAGING_DIR)/usr/bin/net-snmp-config \
|
|
|
|
HAVE_SNMP=1
|
2020-09-17 06:08:02 +02:00
|
|
|
else
|
|
|
|
S390_TOOLS_MAKE_OPTS += HAVE_SNMP=0
|
|
|
|
endif
|
|
|
|
|
|
|
|
define S390_TOOLS_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) \
|
|
|
|
$(S390_TOOLS_MAKE_OPTS)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define S390_TOOLS_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) install \
|
|
|
|
$(S390_TOOLS_MAKE_OPTS) DESTDIR="$(TARGET_DIR)"
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|