package/nvme: new package
authorMamatha Inamdar <mamatha4@linux.vnet.ibm.com>
Sun, 14 Feb 2016 11:01:40 +0000 (16:31 +0530)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 16 Feb 2016 21:56:19 +0000 (22:56 +0100)
Add support for building NVME utility - a utility for interacting with
standard NVM Express (optimized PCI Express SSD interface) devices.

Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/Config.in
package/nvme/Config.in [new file with mode: 0644]
package/nvme/nvme.hash [new file with mode: 0644]
package/nvme/nvme.mk [new file with mode: 0755]

index 529ad33649940751f847e74007dadcddd162cde8..21be9f6b16b54fe4e752fc4e9ae908bec89e754f 100644 (file)
@@ -407,6 +407,7 @@ endif
        source "package/neard/Config.in"
        source "package/nvidia-driver/Config.in"
        source "package/nvidia-tegra23/Config.in"
+       source "package/nvme/Config.in"
        source "package/ofono/Config.in"
        source "package/ola/Config.in"
        source "package/on2-8170-modules/Config.in"
diff --git a/package/nvme/Config.in b/package/nvme/Config.in
new file mode 100644 (file)
index 0000000..dd8655f
--- /dev/null
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_NVME
+       bool "nvme"
+       help
+         NVME utility, a utility for interacting with standard NVM
+         Express (optimized PCI Express SSD interface) devices.
+
+         https://github.com/linux-nvme/nvme-cli
diff --git a/package/nvme/nvme.hash b/package/nvme/nvme.hash
new file mode 100644 (file)
index 0000000..b299041
--- /dev/null
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 c631e90dd4d411cdb618b26bc36b06706e6f1f2d3db38874bcfe48f4bc15aac4 nvme-v0.3.tar.gz
diff --git a/package/nvme/nvme.mk b/package/nvme/nvme.mk
new file mode 100755 (executable)
index 0000000..8cb8863
--- /dev/null
@@ -0,0 +1,23 @@
+################################################################################
+#
+# nvme
+#
+################################################################################
+
+NVME_VERSION = v0.3
+NVME_SITE = $(call github,linux-nvme,nvme-cli,$(NVME_VERSION))
+NVME_LICENSE = GPLv2+
+NVME_LICENSE_FILES = COPYING
+
+# LIBUDEV=1 means that libudev is _disabled_
+define NVME_BUILD_CMDS
+       $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) \
+               LIBUDEV=1 -C $(@D)
+endef
+
+define NVME_INSTALL_TARGET_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
+               PREFIX=/usr install-bin
+endef
+
+$(eval $(generic-package))