2023-09-25 22:02:58 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libnvme
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2023-12-20 00:18:04 +01:00
|
|
|
LIBNVME_VERSION = 1.7
|
2023-09-25 22:02:58 +02:00
|
|
|
LIBNVME_SITE = $(call github,linux-nvme,libnvme,v$(LIBNVME_VERSION))
|
|
|
|
LIBNVME_LICENSE = LGPL-2.1
|
|
|
|
LIBNVME_LICENSE_FILES = COPYING
|
|
|
|
LIBNVME_INSTALL_STAGING = YES
|
|
|
|
|
2023-10-15 21:48:00 +02:00
|
|
|
LIBNVME_CONF_OPTS += \
|
|
|
|
-Dtests=false
|
|
|
|
|
2023-09-25 22:02:58 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
2023-10-29 21:48:28 +01:00
|
|
|
LIBNVME_DEPENDENCIES += python3 host-swig
|
2023-09-25 22:02:58 +02:00
|
|
|
LIBNVME_CONF_OPTS += -Dpython=enabled
|
|
|
|
else
|
|
|
|
LIBNVME_CONF_OPTS += -Dpython=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBNVME_DEPENDENCIES += openssl
|
|
|
|
LIBNVME_CONF_OPTS += -Dopenssl=enabled
|
|
|
|
else
|
|
|
|
LIBNVME_CONF_OPTS += -Dopenssl=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JSON_C),y)
|
|
|
|
LIBNVME_DEPENDENCIES += json-c
|
|
|
|
LIBNVME_CONF_OPTS += -Djson-c=enabled
|
|
|
|
else
|
|
|
|
LIBNVME_CONF_OPTS += -Djson-c=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_KEYUTILS),y)
|
|
|
|
LIBNVME_DEPENDENCIES += keyutils
|
|
|
|
LIBNVME_CONF_OPTS += -Dkeyutils=enabled
|
|
|
|
else
|
|
|
|
LIBNVME_CONF_OPTS += -Dkeyutils=disabled
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(meson-package))
|