Add recipe for libnvme
CodeConstruct maintains MI version of libnvme on their own code base.
They are pushing the changes to upstream libnvme(linux-nvme
/libnvme). Before all changes we required are accepted, we will remain
to use the downstream verion.
Signed-off-by: Hao Jiang <jianghao@google.com>
Change-Id: I782a3fea5dc5189ed438716cce429d8ed8ad8d26
diff --git a/recipes-connectivity/libnvme/libnvme_git.bb b/recipes-connectivity/libnvme/libnvme_git.bb
new file mode 100644
index 0000000..5140796
--- /dev/null
+++ b/recipes-connectivity/libnvme/libnvme_git.bb
@@ -0,0 +1,20 @@
+SUMMARY = "NVMe management library"
+DESCRIPTION = "Library and utilities for NVMe device access"
+PR = "r1"
+PV = "0.1+git${SRCPV}"
+
+inherit meson pkgconfig
+
+HOMEPAGE = "https://github.com/CodeConstruct/libnvme"
+LICENSE = "LGPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
+SRC_URI = "git://github.com/CodeConstruct/libnvme;protocol=https;branch=mi+admin"
+SRCREV = "d60b04b12d33a9b8ce03c15493fab7b68e828cc4"
+DEPENDS += "json-c util-linux-libuuid"
+
+S = "${WORKDIR}/git"
+
+do_install:append() {
+ install -d ${D}${bindir}
+ install -m 0755 ${WORKDIR}/build/examples/mi-mctp ${D}${bindir}/
+}