Skip to contentSkip to conversation

nvme-cli: add recipe

PATCH Superseded Stefan Wiehler 3 participants 6 messages Oct 8, 2018 – Oct 10, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvme-cli: add recipe

NVMe management command line interface.

---
 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb
meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb new file +19 -0
new file mode 100644
index 0000000..68c73ca
@@ -0,0 +1,19 @@
+SUMMARY = "NVMe management command line interface"
+AUTHOR = "Stefan Wiehler <[email protected]>"
+HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
+DEPENDS = "util-linux"
+PV .= "+git${SRCPV}"
+
+SRC_URI = "git://github.com/linux-nvme/nvme-cli.git"
+SRCREV = "642d426faf8a67ed01e90f7c35c0d967f8cc52a3"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+}
+
+FILES_${PN} += "${datadir}/bash_completion.d"
Signature · 1 line
2.7.4
#1 lore raw
Quoted 24 lines · Stefan Wiehler

NVMe management command line interface.

---
 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb
meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb new file +9 -0
new file mode 100644
index 0000000..68c73ca
@@ -0,0 +1,19 @@
+SUMMARY = "NVMe management command line interface"
+AUTHOR = "Stefan Wiehler <[email protected]>"
+HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
+DEPENDS = "util-linux"
+PV .= "+git${SRCPV}"
+

meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb line 19

Quoted 10 lines
meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb new file +10 -0
+SRC_URI = "git://github.com/linux-nvme/nvme-cli.git"
+SRCREV = "642d426faf8a67ed01e90f7c35c0d967f8cc52a3"
+
+S = "${WORKDIR}/git"
+
+do_install() {
+    oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+}
+
+FILES_${PN} += "${datadir}/bash_completion.d"

this perhaps should inherit bash-completion bbclass

Quoted 8 lines

--
2.7.4

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#2 lore raw

PATCH v2 1/1 nvme-cli: add recipe

NVMe management command line interface.

---

Change: Use bash-completion class and patch bash completion install path

 ...Makefile-fix-bash-completion-install-path.patch | 33 ++++++++++++++++++++++
 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb  | 21 ++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 meta-oe/recipes-extended/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch
 create mode 100644 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb
meta-oe/recipes-extended/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch new file +33 -0
new file mode 100644
index 0000000..ecd4f03
@@ -0,0 +1,33 @@
+From ef64032b34190079aab591c64a25f7535a977390 Mon Sep 17 00:00:00 2001
+From: Stefan Wiehler <[email protected]>
+Date: Tue, 9 Oct 2018 11:26:34 +0200
+Subject: [PATCH] Makefile: fix bash completion install path
+
+Change path to bash-completion upstream recommendation used by most
+distributions.
+
+Upstream-Status: Submitted [https://github.com/linux-nvme/nvme-cli/pull/418]
+
+Signed-off-by: Stefan Wiehler <[email protected]>
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index fa587dd..433bc41 100644
+--- a/Makefile
++++ b/Makefile
+@@ -69,8 +69,8 @@ install-bin: default
+ 	$(INSTALL) -m 755 nvme $(DESTDIR)$(SBINDIR)
+ 
+ install-bash-completion:
+-	$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash_completion.d
+-	$(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash_completion.d/nvme
++	$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions
++	$(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash-completion/completions/nvme
+ 
+ install: install-bin install-man install-bash-completion
+ 
+-- 
+1.9.1
+
meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb new file +21 -0
new file mode 100644
index 0000000..9b7e6cd
@@ -0,0 +1,21 @@
+SUMMARY = "NVMe management command line interface"
+AUTHOR = "Stefan Wiehler <[email protected]>"
+HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
+DEPENDS = "util-linux"
+PV .= "+git${SRCPV}"
+
+SRC_URI = "git://github.com/linux-nvme/nvme-cli.git \
+           file://0001-Makefile-fix-bash-completion-install-path.patch \
+           "
+SRCREV = "642d426faf8a67ed01e90f7c35c0d967f8cc52a3"
+
+S = "${WORKDIR}/git"
+
+inherit bash-completion
+
+do_install() {
+    oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+}
Signature · 1 line
1.9.1
#3 lore raw
Quoted 9 lines · Stefan Wiehler

NVMe management command line interface.

---

Change: Use bash-completion class and patch bash completion install path

 ...Makefile-fix-bash-completion-install-path.patch | 33 ++++++++++++++++++++++
 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb  | 21 ++++++++++++++

Would it be more appropriate to have this in the recipes-bsp ?

Quoted 70 lines
 2 files changed, 54 insertions(+)
 create mode 100644 meta-oe/recipes-extended/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch
 create mode 100644 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb
meta-oe/recipes-extended/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch new file +33 -0
new file mode 100644
index 0000000..ecd4f03
@@ -0,0 +1,33 @@
+From ef64032b34190079aab591c64a25f7535a977390 Mon Sep 17 00:00:00 2001
+From: Stefan Wiehler <[email protected]>
+Date: Tue, 9 Oct 2018 11:26:34 +0200
+Subject: [PATCH] Makefile: fix bash completion install path
+
+Change path to bash-completion upstream recommendation used by most
+distributions.
+
+Upstream-Status: Submitted [https://github.com/linux-nvme/nvme-cli/pull/418]
+
+Signed-off-by: Stefan Wiehler <[email protected]>
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index fa587dd..433bc41 100644
+--- a/Makefile
++++ b/Makefile
+@@ -69,8 +69,8 @@ install-bin: default
+ 	$(INSTALL) -m 755 nvme $(DESTDIR)$(SBINDIR)
+ 
+ install-bash-completion:
+-	$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash_completion.d
+-	$(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash_completion.d/nvme
++	$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions
++	$(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash-completion/completions/nvme
+ 
+ install: install-bin install-man install-bash-completion
+ 
+-- 
+1.9.1
+
meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb new file +21 -0
new file mode 100644
index 0000000..9b7e6cd
@@ -0,0 +1,21 @@
+SUMMARY = "NVMe management command line interface"
+AUTHOR = "Stefan Wiehler <[email protected]>"
+HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
+DEPENDS = "util-linux"
+PV .= "+git${SRCPV}"
+
+SRC_URI = "git://github.com/linux-nvme/nvme-cli.git \
+           file://0001-Makefile-fix-bash-completion-install-path.patch \
+           "
+SRCREV = "642d426faf8a67ed01e90f7c35c0d967f8cc52a3"
+
+S = "${WORKDIR}/git"
+
+inherit bash-completion
+
+do_install() {
+    oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+}
#4 lore raw
Quoted 9 lines · On Tue, Oct 9, 2018 at 5:36 PM akuster808 <[email protected]> wrote:
Quoted 5 lines · Stefan Wiehler

NVMe management command line interface.

---

Quoted 7 lines
Quoted 4 lines

Change: Use bash-completion class and patch bash completion install path

 ...Makefile-fix-bash-completion-install-path.patch | 33 ++++++++++++++++++++++
 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb  | 21 ++++++++++++++

Would it be more appropriate to have this in the recipes-bsp ?

i think thats a fair point, Or recipes-devtools is also a possible location but recipes-bsp seems more appropriate. Please send a v3

Quoted 77 lines
Quoted 61 lines
 2 files changed, 54 insertions(+)
 create mode 100644 meta-oe/recipes-extended/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch
 create mode 100644 meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb
meta-oe/recipes-extended/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch new file +33 -0
new file mode 100644
index 0000000..ecd4f03
@@ -0,0 +1,33 @@
+From ef64032b34190079aab591c64a25f7535a977390 Mon Sep 17 00:00:00 2001
+From: Stefan Wiehler <[email protected]>
+Date: Tue, 9 Oct 2018 11:26:34 +0200
+Subject: [PATCH] Makefile: fix bash completion install path
+
+Change path to bash-completion upstream recommendation used by most
+distributions.
+
+Upstream-Status: Submitted [https://github.com/linux-nvme/nvme-cli/pull/418]
+
+Signed-off-by: Stefan Wiehler <[email protected]>
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index fa587dd..433bc41 100644
+--- a/Makefile
++++ b/Makefile
+@@ -69,8 +69,8 @@ install-bin: default
+     $(INSTALL) -m 755 nvme $(DESTDIR)$(SBINDIR)
+
+ install-bash-completion:
+-    $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash_completion.d
+-    $(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash_completion.d/nvme
++    $(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions
++    $(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash-completion/completions/nvme
+
+ install: install-bin install-man install-bash-completion
+
+--
+1.9.1
+
meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb new file +11 -0
new file mode 100644
index 0000000..9b7e6cd
@@ -0,0 +1,21 @@
+SUMMARY = "NVMe management command line interface"
+AUTHOR = "Stefan Wiehler <[email protected]>"
+HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
+DEPENDS = "util-linux"
+PV .= "+git${SRCPV}"
+
+SRC_URI = "git://github.com/linux-nvme/nvme-cli.git \
+           file://0001-Makefile-fix-bash-completion-install-path.patch \

meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb line 21

Quoted 10 lines
meta-oe/recipes-extended/nvme-cli/nvme-cli_1.6.bb new file +10 -0
+           "
+SRCREV = "642d426faf8a67ed01e90f7c35c0d967f8cc52a3"
+
+S = "${WORKDIR}/git"
+
+inherit bash-completion
+
+do_install() {
+    oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+}

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#5 lore raw

PATCH v3 1/1 nvme-cli: add recipe

NVMe management command line interface.

---

Changes: - Use bash-completion class and patch bash completion install path
- Mark bash completion install path patch as accepted
- Move from recipes-extended to recipes-bsp

 ...Makefile-fix-bash-completion-install-path.patch | 33 ++++++++++++++++++++++
 meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.6.bb       | 21 ++++++++++++++
 2 files changed, 54 insertions(+)
 create mode 100644 meta-oe/recipes-bsp/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch
 create mode 100644 meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.6.bb
meta-oe/recipes-bsp/nvme-cli/files/0001-Makefile-fix-bash-completion-install-path.patch new file +33 -0
new file mode 100644
index 0000000..154e140
@@ -0,0 +1,33 @@
+From ef64032b34190079aab591c64a25f7535a977390 Mon Sep 17 00:00:00 2001
+From: Stefan Wiehler <[email protected]>
+Date: Tue, 9 Oct 2018 11:26:34 +0200
+Subject: [PATCH] Makefile: fix bash completion install path
+
+Change path to bash-completion upstream recommendation used by most
+distributions.
+
+Upstream-Status: Accepted
+
+Signed-off-by: Stefan Wiehler <[email protected]>
+---
+ Makefile | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index fa587dd..433bc41 100644
+--- a/Makefile
++++ b/Makefile
+@@ -69,8 +69,8 @@ install-bin: default
+ 	$(INSTALL) -m 755 nvme $(DESTDIR)$(SBINDIR)
+ 
+ install-bash-completion:
+-	$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash_completion.d
+-	$(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash_completion.d/nvme
++	$(INSTALL) -d $(DESTDIR)$(PREFIX)/share/bash-completion/completions
++	$(INSTALL) -m 644 -T ./completions/bash-nvme-completion.sh $(DESTDIR)$(PREFIX)/share/bash-completion/completions/nvme
+ 
+ install: install-bin install-man install-bash-completion
+ 
+-- 
+1.9.1
+
meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.6.bb new file +21 -0
new file mode 100644
index 0000000..9b7e6cd
@@ -0,0 +1,21 @@
+SUMMARY = "NVMe management command line interface"
+AUTHOR = "Stefan Wiehler <[email protected]>"
+HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
+SECTION = "console/utils"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
+DEPENDS = "util-linux"
+PV .= "+git${SRCPV}"
+
+SRC_URI = "git://github.com/linux-nvme/nvme-cli.git \
+           file://0001-Makefile-fix-bash-completion-install-path.patch \
+           "
+SRCREV = "642d426faf8a67ed01e90f7c35c0d967f8cc52a3"
+
+S = "${WORKDIR}/git"
+
+inherit bash-completion
+
+do_install() {
+    oe_runmake PREFIX=${prefix} DESTDIR=${D} install
+}
Signature · 1 line
1.9.1