diff options
author | Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com> | 2019-10-07 15:42:49 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-10-08 00:52:33 -0700 |
commit | b75c618de85e674b60f0f054b9e9b11577db5483 (patch) | |
tree | 908dfaed97ed252bdb8baa02179055cd44b2fc92 | |
parent | bfe144b038ee49290bed7b7d851bca52d340af2e (diff) | |
download | meta-openembedded-b75c618de85e674b60f0f054b9e9b11577db5483.tar.gz |
nvme-cli: upgrade 1.6 -> 1.9
Signed-off-by: Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
3 files changed, 29 insertions, 54 deletions
diff --git a/meta-oe/recipes-bsp/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch b/meta-oe/recipes-bsp/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch deleted file mode 100644 index 154e1401a3..0000000000 --- a/meta-oe/recipes-bsp/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | From ef64032b34190079aab591c64a25f7535a977390 Mon Sep 17 00:00:00 2001 | ||
2 | From: Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com> | ||
3 | Date: Tue, 9 Oct 2018 11:26:34 +0200 | ||
4 | Subject: [PATCH] Makefile: fix bash completion install path | ||
5 | |||
6 | Change path to bash-completion upstream recommendation used by most | ||
7 | distributions. | ||
8 | |||
9 | Upstream-Status: Accepted | ||
10 | |||
11 | Signed-off-by: Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com> | ||
12 | --- | ||
13 | Makefile | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/Makefile b/Makefile | ||
17 | index fa587dd..433bc41 100644 | ||
18 | --- a/Makefile | ||
19 | +++ b/Makefile | ||
20 | @@ -69,8 +69,8 @@ install-bin: default | ||
21 | $(INSTALL) -m 755 nvme $(DESTDIR)$(SBINDIR) | ||
22 | |||
23 | install-bash-completion: | ||
24 | - $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash_completion.d | ||
25 | - $(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash_completion.d/nvme | ||
26 | + $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions | ||
27 | + $(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash-completion/completions/nvme | ||
28 | |||
29 | install: install-bin install-man install-bash-completion | ||
30 | |||
31 | -- | ||
32 | 1.9.1 | ||
33 | |||
diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.6.bb b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.6.bb deleted file mode 100644 index 9b7e6cd4de..0000000000 --- a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.6.bb +++ /dev/null | |||
@@ -1,21 +0,0 @@ | |||
1 | SUMMARY = "NVMe management command line interface" | ||
2 | AUTHOR = "Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com>" | ||
3 | HOMEPAGE = "https://github.com/linux-nvme/nvme-cli" | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022" | ||
7 | DEPENDS = "util-linux" | ||
8 | PV .= "+git${SRCPV}" | ||
9 | |||
10 | SRC_URI = "git://github.com/linux-nvme/nvme-cli.git \ | ||
11 | file://0001-Makefile-fix-bash-completion-install-path.patch \ | ||
12 | " | ||
13 | SRCREV = "642d426faf8a67ed01e90f7c35c0d967f8cc52a3" | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | inherit bash-completion | ||
18 | |||
19 | do_install() { | ||
20 | oe_runmake PREFIX=${prefix} DESTDIR=${D} install | ||
21 | } | ||
diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.9.bb b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.9.bb new file mode 100644 index 0000000000..256d83f039 --- /dev/null +++ b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.9.bb | |||
@@ -0,0 +1,29 @@ | |||
1 | SUMMARY = "NVMe management command line interface" | ||
2 | AUTHOR = "Stefan Wiehler <stefan.wiehler@missinglinkelectronics.com>" | ||
3 | HOMEPAGE = "https://github.com/linux-nvme/nvme-cli" | ||
4 | SECTION = "console/utils" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022" | ||
7 | DEPENDS = "util-linux util-linux-native" | ||
8 | PV .= "+git${SRCPV}" | ||
9 | |||
10 | SRC_URI = "git://github.com/linux-nvme/nvme-cli.git" | ||
11 | SRCREV = "977e7d4cf59c3c7f89e9c093c91f991b07292e45" | ||
12 | |||
13 | S = "${WORKDIR}/git" | ||
14 | |||
15 | inherit bash-completion systemd | ||
16 | |||
17 | do_install() { | ||
18 | oe_runmake install DESTDIR=${D} PREFIX=${prefix} \ | ||
19 | UDEVDIR=${nonarch_base_libdir}/udev SYSTEMDDIR=${systemd_unitdir} | ||
20 | } | ||
21 | |||
22 | pkg_postinst_ontarget_${PN}() { | ||
23 | ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn | ||
24 | } | ||
25 | |||
26 | PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion" | ||
27 | |||
28 | FILES_${PN}-dracut = "${libdir}/dracut/dracut.conf.d" | ||
29 | FILES_${PN}-zsh-completion = "${datadir}/zsh/site-functions" | ||