Skip to contentSkip to conversation

libnvme: add recipe

PATCH New [email protected] 1 participant 2 messages Jul 27, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 libnvme: add recipe

From: Christophe Vu-Brugier <[email protected]>

---
Changes v1 -> v2
* Disable Python bindings that require SWIG.
* Disable dependencies on OpenSSL and Keyutils since authentication and NVME-over-TLS are not supported by Linux yet.

 .../recipes-support/libnvme/libnvme_1.5.bb    | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-oe/recipes-support/libnvme/libnvme_1.5.bb
meta-oe/recipes-support/libnvme/libnvme_1.5.bb new file +22 -0
new file mode 100644
index 000000000..4b6f1e30b
@@ -0,0 +1,22 @@
+SUMMARY = "libnvme development C library"
+DESCRIPTION = "\
+libnvme provides type definitions for NVMe specification structures, \
+enumerations, and bit fields, helper functions to construct, dispatch, \
+and decode commands and payloads, and utilities to connect, scan, and \
+manage nvme devices on a Linux system."
+HOMEPAGE = "https://github.com/linux-nvme/${BPN}"
+SECTION = "libs"
+LICENSE = "LGPL-2.1-only & CC0-1.0 & MIT"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c \
+                    file://ccan/licenses/CC0;md5=c17af43b05840255a6fedc5eda9d56cc \
+                    file://ccan/licenses/BSD-MIT;md5=838c366f69b72c5df05c96dff79b35f2"
+DEPENDS = "json-c"
+SRCREV = "4fea83db8328ea788ea8f1001e8ce1cb80ef5fae"
+
+SRC_URI = "git://github.com/linux-nvme/libnvme;protocol=https;branch=master"
+
+S = "${WORKDIR}/git"
+
+inherit meson pkgconfig
+
+EXTRA_OEMESON += "-Dkeyutils=disabled -Dopenssl=disabled -Dpython=disabled"
Signature · 1 line
2.30.2
#1 lore raw

PATCH v2 2/2 nvme-cli: upgrade 1.13 -> 2.5

From: Christophe Vu-Brugier <[email protected]>

---
 .../{nvme-cli_1.13.bb => nvme-cli_2.5.bb}      | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
 rename meta-oe/recipes-bsp/nvme-cli/{nvme-cli_1.13.bb => nvme-cli_2.5.bb} (65%)
meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.5.bb renamed from meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.13.bb +8 -10
similarity index 65%
rename from meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.13.bb
rename to meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.5.bb
index 1055fa42a..dd273e24d 100644
@@ -2,22 +2,20 @@ SUMMARY = "NVMe management command line interface"
 AUTHOR = "Stefan Wiehler <[email protected]>"
 HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
 SECTION = "console/utils"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
-DEPENDS = "util-linux"
-PV .= "+git${SRCPV}"
+LICENSE = "GPL-2.0-only & CC0-1.0 & MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022 \
+                    file://ccan/licenses/CC0;md5=c17af43b05840255a6fedc5eda9d56cc \
+                    file://ccan/licenses/BSD-MIT;md5=838c366f69b72c5df05c96dff79b35f2"
+DEPENDS = "json-c libnvme"
+SRCREV = "d6c07e0de9be777009ebb9ab7475bee1ae3e0e95"
 
 SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https"
-SRCREV = "f0e9569df9289d6ee55ba2c23615cc7c73a9b088"
 
 S = "${WORKDIR}/git"
 
-inherit bash-completion systemd
+inherit bash-completion meson pkgconfig systemd
 
-do_install() {
-    oe_runmake install-spec DESTDIR=${D} PREFIX=${prefix} \
-        UDEVDIR=${nonarch_base_libdir}/udev SYSTEMDDIR=${systemd_unitdir}
-}
+EXTRA_OEMESON += "-Dsystemddir=${systemd_unitdir}/system"
 
 pkg_postinst_ontarget:${PN}() {
     ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
Signature · 1 line
2.30.2