From: Giulio Benetti <giulio.benetti@benettiengineering.com>
To: buildroot@buildroot.org
Cc: Eric Le Bihan <eric.le.bihan.dev@free.fr>,
Giulio Benetti <giulio.benetti@benettiengineering.com>,
Marek Belisko <marek.belisko@open-nandra.com>
Subject: [Buildroot] [PATCH 1/4] package/libnvme: new package
Date: Mon, 25 Sep 2023 22:02:58 +0200 [thread overview]
Message-ID: <20230925200301.2790925-2-giulio.benetti@benettiengineering.com> (raw)
In-Reply-To: <20230925200301.2790925-1-giulio.benetti@benettiengineering.com>
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>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/libnvme/Config.in | 7 ++++++
package/libnvme/libnvme.hash | 3 +++
package/libnvme/libnvme.mk | 41 ++++++++++++++++++++++++++++++++++++
5 files changed, 53 insertions(+)
create mode 100644 package/libnvme/Config.in
create mode 100644 package/libnvme/libnvme.hash
create mode 100644 package/libnvme/libnvme.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 1ed5285961..8927a2653b 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1207,6 +1207,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/
diff --git a/package/Config.in b/package/Config.in
index db6cf432e3..1e8b6f90c1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1711,6 +1711,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"
diff --git a/package/libnvme/Config.in b/package/libnvme/Config.in
new file mode 100644
index 0000000000..f298046563
--- /dev/null
+++ b/package/libnvme/Config.in
@@ -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
diff --git a/package/libnvme/libnvme.hash b/package/libnvme/libnvme.hash
new file mode 100644
index 0000000000..b869ae295a
--- /dev/null
+++ b/package/libnvme/libnvme.hash
@@ -0,0 +1,3 @@
+# Locally calculated sha256 checksums
+sha256 f73ba1edde059b2d5e7c1048ad4f895e6047bff241c94b34a7aff5894779d086 libnvme-1.5.tar.gz
+sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING
diff --git a/package/libnvme/libnvme.mk b/package/libnvme/libnvme.mk
new file mode 100644
index 0000000000..71885e198c
--- /dev/null
+++ b/package/libnvme/libnvme.mk
@@ -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))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-09-25 20:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-25 20:02 [Buildroot] [PATCH 0/4] Bump udisks to version 2.10.1 Giulio Benetti
2023-09-25 20:02 ` Giulio Benetti [this message]
2023-09-25 20:02 ` [Buildroot] [PATCH 2/4] package/libblockdev: bump to version 3.0.3 Giulio Benetti
2023-09-25 20:03 ` [Buildroot] [PATCH 3/4] package/udisks: bump to version 2.10.1 Giulio Benetti
2023-09-25 20:03 ` [Buildroot] [PATCH 4/4] DEVELOPERS: add Giulio Benetti to libblockdev Giulio Benetti
2023-09-30 19:55 ` [Buildroot] [PATCH 0/4] Bump udisks to version 2.10.1 Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230925200301.2790925-2-giulio.benetti@benettiengineering.com \
--to=giulio.benetti@benettiengineering.com \
--cc=buildroot@buildroot.org \
--cc=eric.le.bihan.dev@free.fr \
--cc=marek.belisko@open-nandra.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox