diff options
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.bb | 35 |
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 @@ | |||
| 1 | SUMMARY = "NVMe management command line interface" | ||
| 2 | HOMEPAGE = "https://github.com/linux-nvme/nvme-cli" | ||
| 3 | SECTION = "console/utils" | ||
| 4 | LICENSE = "GPL-2.0-only & CC0-1.0 & MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022 \ | ||
| 6 | file://ccan/licenses/CC0;md5=c17af43b05840255a6fedc5eda9d56cc \ | ||
| 7 | file://ccan/licenses/BSD-MIT;md5=838c366f69b72c5df05c96dff79b35f2" | ||
| 8 | DEPENDS = "json-c libnvme" | ||
| 9 | SRCREV = "71fa5d9310d6b41a69e844593423ac91b1453472" | ||
| 10 | |||
| 11 | SRC_URI = "git://github.com/linux-nvme/nvme-cli.git;branch=master;protocol=https" | ||
| 12 | S = "${WORKDIR}/git" | ||
| 13 | |||
| 14 | inherit bash-completion meson pkgconfig systemd | ||
| 15 | |||
| 16 | EXTRA_OEMESON += "-Dsystemddir=${systemd_unitdir}/system" | ||
| 17 | |||
| 18 | pkg_postinst_ontarget:${PN}-user () { | ||
| 19 | ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn | ||
| 20 | ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid | ||
| 21 | } | ||
| 22 | |||
| 23 | PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion ${PN}-user" | ||
| 24 | |||
| 25 | FILES:${PN} += "${systemd_system_unitdir}" | ||
| 26 | FILES:${PN}-dracut = "${nonarch_libdir}/dracut/dracut.conf.d" | ||
| 27 | FILES:${PN}-zsh-completion = "${datadir}/zsh/site-functions" | ||
| 28 | ALLOW_EMPTY:${PN}-user = "1" | ||
| 29 | |||
| 30 | RDEPENDS:${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] | ||
| 35 | CFLAGS += "-Wno-error=incompatible-pointer-types" | ||
