package/libnvme: new package

libnvme provides type definitions for NVMe specification and utilities
for nvme devices handling in Linux. libnvme is needed by udisks from
version 2.10.0+

https://github.com/linux-nvme/libnvme

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Giulio Benetti 2023-09-25 22:02:58 +02:00 committed by Yann E. MORIN
parent 285413fb7b
commit cd7bc6b1c4
5 changed files with 53 additions and 0 deletions

View File

@ -1218,6 +1218,7 @@ F: package/harfbuzz/
F: package/libfuse3/
F: package/libnspr/
F: package/libnss/
F: package/libnvme/
F: package/mali-driver/
F: package/minicom/
F: package/mmc-utils/

View File

@ -1715,6 +1715,7 @@ menu "Hardware handling"
source "package/libllcp/Config.in"
source "package/libmbim/Config.in"
source "package/libnfc/Config.in"
source "package/libnvme/Config.in"
source "package/libpciaccess/Config.in"
source "package/libphidget/Config.in"
source "package/libpri/Config.in"

View File

@ -0,0 +1,7 @@
config BR2_PACKAGE_LIBNVME
bool "libnvme"
help
libnvme provides type definitions for NVMe specification
and utilities for nvme devices handling in Linux.
https://github.com/linux-nvme/libnvme

View File

@ -0,0 +1,3 @@
# Locally calculated sha256 checksums
sha256 f73ba1edde059b2d5e7c1048ad4f895e6047bff241c94b34a7aff5894779d086 libnvme-1.5.tar.gz
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING

View File

@ -0,0 +1,41 @@
################################################################################
#
# libnvme
#
################################################################################
LIBNVME_VERSION = 1.5
LIBNVME_SITE = $(call github,linux-nvme,libnvme,v$(LIBNVME_VERSION))
LIBNVME_LICENSE = LGPL-2.1
LIBNVME_LICENSE_FILES = COPYING
LIBNVME_INSTALL_STAGING = YES
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))