mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] nvme-cli: new package
@ 2019-02-11 11:41 Lucas Stach
  0 siblings, 0 replies; only message in thread
From: Lucas Stach @ 2019-02-11 11:41 UTC (permalink / raw)
  To: ptxdist

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-02-11 11:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-11 11:41 [ptxdist] [PATCH] nvme-cli: new package Lucas Stach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox