Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH V8] package/nvme: new package
@ 2016-02-12 11:28 Mamatha Inamdar
  2016-02-12 13:44 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Mamatha Inamdar @ 2016-02-12 11:28 UTC (permalink / raw)
  To: buildroot

Add support for building NVME utility - a utility for interacting with
standard NVM Express (optimized PCI Express SSD interface) devices.

Changes in V8:
/package/nvme/Makefile patch not added:
CFLAGS changes in nvme/Makefile is not required because I did not see
any compilation errors after adding "depend on BR2_powerpc64 || BR2_powerpc64le"
line in nvme/Config.in for this I have to enable 64-bit arch in config file.
after enabling 64-bit arch I do not see any compilation errors in nvme code.

Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
---
 package/Config.in      |    1 +
 package/nvme/Config.in |   10 ++++++++++
 package/nvme/nvme.hash |    2 ++
 package/nvme/nvme.mk   |   23 +++++++++++++++++++++++
 4 files changed, 36 insertions(+)
 create mode 100644 package/nvme/Config.in
 create mode 100644 package/nvme/nvme.hash
 create mode 100755 package/nvme/nvme.mk

diff --git a/package/Config.in b/package/Config.in
index e0c2e2a..4d173d4 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -380,6 +380,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
index 0000000..878bed3
--- /dev/null
+++ b/package/nvme/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_NVME
+	bool "nvme"
+	depends on BR2_powerpc64 || BR2_powerpc64le
+
+	help
+	  Add support for building 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
index 0000000..539a2b6
--- /dev/null
+++ b/package/nvme/nvme.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256  914319930a51372293c981562b165ae6af0de70f7da37e42da23940fe23aa387 nvme-v0.2.tar.gz
diff --git a/package/nvme/nvme.mk b/package/nvme/nvme.mk
new file mode 100755
index 0000000..7bb4d24
--- /dev/null
+++ b/package/nvme/nvme.mk
@@ -0,0 +1,23 @@
+################################################################################
+#
+# nvme
+#
+################################################################################
+
+NVME_VERSION = v0.2
+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))

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH V8] package/nvme: new package
  2016-02-12 11:28 [Buildroot] [PATCH V8] package/nvme: new package Mamatha Inamdar
@ 2016-02-12 13:44 ` Thomas Petazzoni
  2016-02-14 10:57   ` Mamatha Inamdar
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2016-02-12 13:44 UTC (permalink / raw)
  To: buildroot

Dear Mamatha Inamdar,

On Fri, 12 Feb 2016 16:58:30 +0530, Mamatha Inamdar wrote:
> Add support for building NVME utility - a utility for interacting with
> standard NVM Express (optimized PCI Express SSD interface) devices.
> 
> Changes in V8:
> /package/nvme/Makefile patch not added:
> CFLAGS changes in nvme/Makefile is not required because I did not see
> any compilation errors after adding "depend on BR2_powerpc64 || BR2_powerpc64le"
> line in nvme/Config.in for this I have to enable 64-bit arch in config file.
> after enabling 64-bit arch I do not see any compilation errors in nvme code.

I know Arnout asked you to add the PowerPC64 dependency, but I
disagree. I don't see anything in this tool that is PowerPC64 specific.

Moreover, the -m64 that was causing problem has been removed upstream,
as part of commit
https://github.com/linux-nvme/nvme-cli/commit/3686759d04825d35fb8d9667c3d4a14e880f5b4d.

In fact, I believe this commit from upstream probably solves a lot of
cross-compilation problems, so please use v0.3 instead of v0.2, since
v0.3 includes this commit.

> diff --git a/package/nvme/Config.in b/package/nvme/Config.in
> new file mode 100644
> index 0000000..878bed3
> --- /dev/null
> +++ b/package/nvme/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_NVME
> +	bool "nvme"
> +	depends on BR2_powerpc64 || BR2_powerpc64le

Remove this dependency.

> +

And this empty line/

> +	help
> +	  Add support for building NVME utility - a utility

"Add support" is not a proper wording to describe a package. Instead,
you should just have something like:

	  NVME utility, a utility for interacting with standard NVM
	  Express ...

> +	  for interacting with standard NVM Express
> +	  (optimized PCI Express SSD interface) devices.
> +
> +	  https://github.com/linux-nvme/nvme-cli

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Buildroot] [PATCH V8] package/nvme: new package
  2016-02-12 13:44 ` Thomas Petazzoni
@ 2016-02-14 10:57   ` Mamatha Inamdar
  0 siblings, 0 replies; 3+ messages in thread
From: Mamatha Inamdar @ 2016-02-14 10:57 UTC (permalink / raw)
  To: buildroot

Hi Thomas,

Yes nvme V0.3 will solve all compilation issues,
updated your comments and sending
new version of the patch.


On 02/12/2016 07:14 PM, Thomas Petazzoni wrote:
> Dear Mamatha Inamdar,
>
> On Fri, 12 Feb 2016 16:58:30 +0530, Mamatha Inamdar wrote:
>> Add support for building NVME utility - a utility for interacting with
>> standard NVM Express (optimized PCI Express SSD interface) devices.
>>
>> Changes in V8:
>> /package/nvme/Makefile patch not added:
>> CFLAGS changes in nvme/Makefile is not required because I did not see
>> any compilation errors after adding "depend on BR2_powerpc64 || BR2_powerpc64le"
>> line in nvme/Config.in for this I have to enable 64-bit arch in config file.
>> after enabling 64-bit arch I do not see any compilation errors in nvme code.
> I know Arnout asked you to add the PowerPC64 dependency, but I
> disagree. I don't see anything in this tool that is PowerPC64 specific.
>
> Moreover, the -m64 that was causing problem has been removed upstream,
> as part of commit
> https://github.com/linux-nvme/nvme-cli/commit/3686759d04825d35fb8d9667c3d4a14e880f5b4d.
>
> In fact, I believe this commit from upstream probably solves a lot of
> cross-compilation problems, so please use v0.3 instead of v0.2, since
> v0.3 includes this commit.
>
>> diff --git a/package/nvme/Config.in b/package/nvme/Config.in
>> new file mode 100644
>> index 0000000..878bed3
>> --- /dev/null
>> +++ b/package/nvme/Config.in
>> @@ -0,0 +1,10 @@
>> +config BR2_PACKAGE_NVME
>> +	bool "nvme"
>> +	depends on BR2_powerpc64 || BR2_powerpc64le
> Remove this dependency.
>
>> +
> And this empty line/
>
>> +	help
>> +	  Add support for building NVME utility - a utility
> "Add support" is not a proper wording to describe a package. Instead,
> you should just have something like:
>
> 	  NVME utility, a utility for interacting with standard NVM
> 	  Express ...
>
>> +	  for interacting with standard NVM Express
>> +	  (optimized PCI Express SSD interface) devices.
>> +
>> +	  https://github.com/linux-nvme/nvme-cli
> Thanks,
>
> Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-14 10:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-12 11:28 [Buildroot] [PATCH V8] package/nvme: new package Mamatha Inamdar
2016-02-12 13:44 ` Thomas Petazzoni
2016-02-14 10:57   ` Mamatha Inamdar

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