summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.12.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.12.bb')
-rw-r--r--meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.12.bb35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.12.bb b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.12.bb
new file mode 100644
index 0000000000..7ab244f3cc
--- /dev/null
+++ b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_2.12.bb
@@ -0,0 +1,35 @@
1SUMMARY = "NVMe management command line interface"
2HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
3SECTION = "console/utils"
4LICENSE = "GPL-2.0-only & CC0-1.0 & MIT"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022 \
6 file://ccan/licenses/CC0;md5=c17af43b05840255a6fedc5eda9d56cc \
7 file://ccan/licenses/BSD-MIT;md5=838c366f69b72c5df05c96dff79b35f2"
8DEPENDS = "json-c libnvme"
9SRCREV = "71fa5d9310d6b41a69e844593423ac91b1453472"
10
11SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https"
12S = "${WORKDIR}/git"
13
14inherit bash-completion meson pkgconfig systemd
15
16EXTRA_OEMESON += "-Dsystemddir=${systemd_unitdir}/system"
17
18pkg_postinst_ontarget:${PN}-user () {
19 ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
20 ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid
21}
22
23PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion ${PN}-user"
24
25FILES:${PN} += "${systemd_system_unitdir}"
26FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d"
27FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions"
28ALLOW_EMPTY:${PN}-user = "1"
29
30RDEPENDS:${PN}-user = "util-linux-uuidgen"
31
32# This one is reproducible only on 32bit MACHINEs
33# http://errors.yoctoproject.org/Errors/Details/766964/
34# git/plugins/virtium/virtium-nvme.c:205:63: error: passing argument 1 of 'localtime' from incompatible pointer type [-Wincompatible-pointer-types]
35CFLAGS += "-Wno-error=incompatible-pointer-types"