087e2cef0e
Add 2 upstream patches, one to avoid build failure due to different libc ioctl() prototype and one to avoid link conflict due to test unit enabled by default. Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com> Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
45 lines
1.0 KiB
Makefile
45 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# libnvme
|
|
#
|
|
################################################################################
|
|
|
|
LIBNVME_VERSION = 1.6
|
|
LIBNVME_SITE = $(call github,linux-nvme,libnvme,v$(LIBNVME_VERSION))
|
|
LIBNVME_LICENSE = LGPL-2.1
|
|
LIBNVME_LICENSE_FILES = COPYING
|
|
LIBNVME_INSTALL_STAGING = YES
|
|
|
|
LIBNVME_CONF_OPTS += \
|
|
-Dtests=false
|
|
|
|
ifeq ($(BR2_PACKAGE_PYTHON3),y)
|
|
LIBNVME_DEPENDENCIES += python3
|
|
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))
|