mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] nvme-cli: new package
Date: Mon, 11 Feb 2019 12:41:46 +0100	[thread overview]
Message-ID: <20190211114146.679-1-l.stach@pengutronix.de> (raw)

This adds the nvme userspace tool used for administration and
monitoring of NVMe devices.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 rules/nvme-cli.in   |  7 ++++++
 rules/nvme-cli.make | 61 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 68 insertions(+)
 create mode 100644 rules/nvme-cli.in
 create mode 100644 rules/nvme-cli.make

diff --git a/rules/nvme-cli.in b/rules/nvme-cli.in
new file mode 100644
index 000000000000..dec4e55c659f
--- /dev/null
+++ b/rules/nvme-cli.in
@@ -0,0 +1,7 @@
+## SECTION=shell_and_console
+
+config NVME_CLI
+	tristate
+	prompt "nvme-cli"
+	help
+	  NVM-Express user space tools.
diff --git a/rules/nvme-cli.make b/rules/nvme-cli.make
new file mode 100644
index 000000000000..9747c87e2a99
--- /dev/null
+++ b/rules/nvme-cli.make
@@ -0,0 +1,61 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2019 by Lucas Stach <l.stach@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_NVME_CLI) += nvme-cli
+
+#
+# Paths and names
+#
+NVME_CLI_VERSION	:= 1.7
+NVME_CLI_MD5		:= ec64bc935957f6bc52109bde704a5a42
+NVME_CLI		:= nvme-cli-$(NVME_CLI_VERSION)
+NVME_CLI_SUFFIX		:= tar.gz
+NVME_CLI_URL		:= https://github.com/linux-nvme/nvme-cli/archive/v$(NVME_CLI_VERSION).$(NVME_CLI_SUFFIX)
+NVME_CLI_SOURCE		:= $(SRCDIR)/$(NVME_CLI).$(NVME_CLI_SUFFIX)
+NVME_CLI_DIR		:= $(BUILDDIR)/$(NVME_CLI)
+NVME_CLI_LICENSE	:= GPL-2.0
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+NVME_CLI_CONF_TOOL := NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+NVME_CLI_MAKE_OPT := $(CROSS_ENV_PROGS) nvme
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+NVME_CLI_INSTALL_OPT := PREFIX=/usr install
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+$(STATEDIR)/nvme-cli.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, nvme-cli)
+	@$(call install_fixup, nvme-cli,PRIORITY,optional)
+	@$(call install_fixup, nvme-cli,SECTION,base)
+	@$(call install_fixup, nvme-cli,AUTHOR,"Lucas Stach <l.stach@pengutronix.de>")
+	@$(call install_fixup, nvme-cli,DESCRIPTION,missing)
+
+	@$(call install_copy, nvme-cli, 0, 0, 0755, -, /usr/sbin/nvme)
+
+	@$(call install_finish, nvme-cli)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-02-11 11:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190211114146.679-1-l.stach@pengutronix.de \
    --to=l.stach@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox