All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] i7z: new package
@ 2016-04-26 14:21 Vincent Stehlé
  2016-04-26 14:55 ` Bernd Kuhls
  2016-04-26 15:17 ` Bernd Kuhls
  0 siblings, 2 replies; 11+ messages in thread
From: Vincent Stehlé @ 2016-04-26 14:21 UTC (permalink / raw)
  To: buildroot

"A better i7 (and now i3, i5) reporting tool for Linux."

i7z can print out the C-states and temperature for i3, i5 and i7 based Core
processors from Intel (including Nehalems, Sandy Bridge and Ivy Bridge).

https://code.google.com/archive/p/i7z/

Signed-off-by: Vincent Stehl? <vincent.stehle@intel.com>
---
 package/Config.in     |  1 +
 package/i7z/Config.in | 12 ++++++++++++
 package/i7z/i7z.hash  |  2 ++
 package/i7z/i7z.mk    | 22 ++++++++++++++++++++++
 4 files changed, 37 insertions(+)
 create mode 100644 package/i7z/Config.in
 create mode 100644 package/i7z/i7z.hash
 create mode 100644 package/i7z/i7z.mk

diff --git a/package/Config.in b/package/Config.in
index e860f72..2967244 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -387,6 +387,7 @@ endif
 	source "package/hwdata/Config.in"
 	source "package/hwloc/Config.in"
 	source "package/i2c-tools/Config.in"
+	source "package/i7z/Config.in"
 	source "package/input-event-daemon/Config.in"
 	source "package/input-tools/Config.in"
 	source "package/intel-microcode/Config.in"
diff --git a/package/i7z/Config.in b/package/i7z/Config.in
new file mode 100644
index 0000000..b4b8982
--- /dev/null
+++ b/package/i7z/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_I7Z
+	bool "i7z"
+	depends on BR2_i386 || BR2_x86_64
+	select BR2_PACKAGE_NCURSES
+	help
+	  "A better i7 (and now i3, i5) reporting tool for Linux."
+
+	  i7z can print out the C-states and temperature for i3, i5 and i7
+	  based Core processors from Intel (including Nehalems, Sandy Bridge
+	  and Ivy Bridge).
+
+	  https://code.google.com/archive/p/i7z/
diff --git a/package/i7z/i7z.hash b/package/i7z/i7z.hash
new file mode 100644
index 0000000..1bcf2c6
--- /dev/null
+++ b/package/i7z/i7z.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 e127bddf850e7febd39cef2d2b13dca5fe19cc2a1bb1099d72b683be5d8bd1c0 i7z-5023138d7c35c4667c938b853e5ea89737334e92.tar.gz
diff --git a/package/i7z/i7z.mk b/package/i7z/i7z.mk
new file mode 100644
index 0000000..e21fd9f
--- /dev/null
+++ b/package/i7z/i7z.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# i7z
+#
+################################################################################
+
+I7Z_VERSION = 5023138d7c35c4667c938b853e5ea89737334e92
+I7Z_SITE = $(call github,ajaiantilal,i7z,$(I7Z_VERSION))
+I7Z_LICENSE = GPLv2
+I7Z_LICENSE_FILES = COPYING
+I7Z_DEPENDENCIES = ncurses
+
+define I7Z_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define I7Z_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
+		DESTDIR="$(TARGET_DIR)"
+endef
+
+$(eval $(generic-package))
-- 
2.8.0.rc3

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

* [Buildroot] [PATCH] i7z: new package
  2016-04-26 14:21 [Buildroot] [PATCH] i7z: new package Vincent Stehlé
@ 2016-04-26 14:55 ` Bernd Kuhls
  2016-04-27  7:39   ` Vincent Stehlé
  2016-04-26 15:17 ` Bernd Kuhls
  1 sibling, 1 reply; 11+ messages in thread
From: Bernd Kuhls @ 2016-04-26 14:55 UTC (permalink / raw)
  To: buildroot

Am Tue, 26 Apr 2016 16:21:44 +0200 schrieb Vincent Stehl?:

> +	  https://code.google.com/archive/p/i7z/

Hi,

this link runs into a 404 error:
"The project i7z was not found."

The Debian package https://packages.qa.debian.org/i/i7z.html
links to https://github.com/ajaiantilal/i7z

Same does Archlinux:
https://www.archlinux.org/packages/community/i686/i7z/

Regards, Bernd

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

* [Buildroot] [PATCH] i7z: new package
  2016-04-26 14:21 [Buildroot] [PATCH] i7z: new package Vincent Stehlé
  2016-04-26 14:55 ` Bernd Kuhls
@ 2016-04-26 15:17 ` Bernd Kuhls
  2016-04-27  8:13   ` Vincent Stehlé
  1 sibling, 1 reply; 11+ messages in thread
From: Bernd Kuhls @ 2016-04-26 15:17 UTC (permalink / raw)
  To: buildroot

Am Tue, 26 Apr 2016 16:21:44 +0200 schrieb Vincent Stehl?:

> +config BR2_PACKAGE_I7Z
> +	bool "i7z"
> +	depends on BR2_i386 || BR2_x86_64
> +	select BR2_PACKAGE_NCURSES
> +	help

Hi,

the package depends on threads:

i7z_Dual_Socket.c:23:21: fatal error: pthread.h: No such file or directory
 #include <pthread.h>
                     ^

Tested using this defconfig:

BR2_PTHREADS_NONE=y
BR2_PACKAGE_I7Z=y

Regards, Bernd

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

* [Buildroot] [PATCH] i7z: new package
  2016-04-26 14:55 ` Bernd Kuhls
@ 2016-04-27  7:39   ` Vincent Stehlé
  2016-04-27  8:05     ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Vincent Stehlé @ 2016-04-27  7:39 UTC (permalink / raw)
  To: buildroot

On Tue, Apr 26, 2016 at 04:55:25PM +0200, Bernd Kuhls wrote:
> > +	  https://code.google.com/archive/p/i7z/
> this link runs into a 404 error:

Hi Bernd,

Thanks for trying. This 404 error is strange as it "works for me".

Anyway, I will link to github as you proposed in case that helps. The github
project has a link to the google code page anyway.

Best regards,

Vincent.

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

* [Buildroot] [PATCH] i7z: new package
  2016-04-27  7:39   ` Vincent Stehlé
@ 2016-04-27  8:05     ` Thomas Petazzoni
  0 siblings, 0 replies; 11+ messages in thread
From: Thomas Petazzoni @ 2016-04-27  8:05 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 27 Apr 2016 09:39:08 +0200, Vincent Stehl? wrote:
> On Tue, Apr 26, 2016 at 04:55:25PM +0200, Bernd Kuhls wrote:
> > > +	  https://code.google.com/archive/p/i7z/
> > this link runs into a 404 error:
> 
> Hi Bernd,
> 
> Thanks for trying. This 404 error is strange as it "works for me".

I can confirm that https://code.google.com/archive/p/i7z/ works for me
as well.

> Anyway, I will link to github as you proposed in case that helps. The github
> project has a link to the google code page anyway.

Yes, the Google Code site is just an archive, it is no longer evolving.
If the development has moved to Github, then you should use the Github
page as the upstream URL in Config.in.

Thanks!

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

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

* [Buildroot] [PATCH] i7z: new package
  2016-04-26 15:17 ` Bernd Kuhls
@ 2016-04-27  8:13   ` Vincent Stehlé
  2016-04-27  9:25     ` [Buildroot] [PATCH v2] " Vincent Stehlé
  0 siblings, 1 reply; 11+ messages in thread
From: Vincent Stehlé @ 2016-04-27  8:13 UTC (permalink / raw)
  To: buildroot

On Tue, Apr 26, 2016 at 05:17:21PM +0200, Bernd Kuhls wrote:
> the package depends on threads:

Hi Bernd,

Thanks for spotting that. I will fix this and re-post.

Best regards,

Vincent.

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

* [Buildroot] [PATCH v2] i7z: new package
  2016-04-27  8:13   ` Vincent Stehlé
@ 2016-04-27  9:25     ` Vincent Stehlé
  2016-04-27  9:36       ` Bernd Kuhls
  0 siblings, 1 reply; 11+ messages in thread
From: Vincent Stehlé @ 2016-04-27  9:25 UTC (permalink / raw)
  To: buildroot

"A better i7 (and now i3, i5) reporting tool for Linux."

i7z can print out the C-states and temperature for i3, i5 and i7 based Core
processors from Intel (including Nehalems, Sandy Bridge and Ivy Bridge).

https://github.com/ajaiantilal/i7z

Signed-off-by: Vincent Stehl? <vincent.stehle@intel.com>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
---


Changes in v2 after Bernd's review:
- Change URL
- Depend on threads


 package/Config.in     |  1 +
 package/i7z/Config.in | 13 +++++++++++++
 package/i7z/i7z.hash  |  2 ++
 package/i7z/i7z.mk    | 22 ++++++++++++++++++++++
 4 files changed, 38 insertions(+)
 create mode 100644 package/i7z/Config.in
 create mode 100644 package/i7z/i7z.hash
 create mode 100644 package/i7z/i7z.mk

diff --git a/package/Config.in b/package/Config.in
index e860f72..2967244 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -387,6 +387,7 @@ endif
 	source "package/hwdata/Config.in"
 	source "package/hwloc/Config.in"
 	source "package/i2c-tools/Config.in"
+	source "package/i7z/Config.in"
 	source "package/input-event-daemon/Config.in"
 	source "package/input-tools/Config.in"
 	source "package/intel-microcode/Config.in"
diff --git a/package/i7z/Config.in b/package/i7z/Config.in
new file mode 100644
index 0000000..a6b8a38
--- /dev/null
+++ b/package/i7z/Config.in
@@ -0,0 +1,13 @@
+config BR2_PACKAGE_I7Z
+	bool "i7z"
+	depends on BR2_i386 || BR2_x86_64
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_NCURSES
+	help
+	  "A better i7 (and now i3, i5) reporting tool for Linux."
+
+	  i7z can print out the C-states and temperature for i3, i5 and i7
+	  based Core processors from Intel (including Nehalems, Sandy Bridge
+	  and Ivy Bridge).
+
+	  https://github.com/ajaiantilal/i7z
diff --git a/package/i7z/i7z.hash b/package/i7z/i7z.hash
new file mode 100644
index 0000000..1bcf2c6
--- /dev/null
+++ b/package/i7z/i7z.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 e127bddf850e7febd39cef2d2b13dca5fe19cc2a1bb1099d72b683be5d8bd1c0 i7z-5023138d7c35c4667c938b853e5ea89737334e92.tar.gz
diff --git a/package/i7z/i7z.mk b/package/i7z/i7z.mk
new file mode 100644
index 0000000..e21fd9f
--- /dev/null
+++ b/package/i7z/i7z.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# i7z
+#
+################################################################################
+
+I7Z_VERSION = 5023138d7c35c4667c938b853e5ea89737334e92
+I7Z_SITE = $(call github,ajaiantilal,i7z,$(I7Z_VERSION))
+I7Z_LICENSE = GPLv2
+I7Z_LICENSE_FILES = COPYING
+I7Z_DEPENDENCIES = ncurses
+
+define I7Z_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define I7Z_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
+		DESTDIR="$(TARGET_DIR)"
+endef
+
+$(eval $(generic-package))
-- 
2.8.0.rc3

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

* [Buildroot] [PATCH v2] i7z: new package
  2016-04-27  9:25     ` [Buildroot] [PATCH v2] " Vincent Stehlé
@ 2016-04-27  9:36       ` Bernd Kuhls
  2016-04-27 13:12         ` [Buildroot] [PATCH v3] " Vincent Stehlé
  0 siblings, 1 reply; 11+ messages in thread
From: Bernd Kuhls @ 2016-04-27  9:36 UTC (permalink / raw)
  To: buildroot

Am Wed, 27 Apr 2016 11:25:07 +0200 schrieb Vincent Stehl?:

> +	depends on BR2_TOOLCHAIN_HAS_THREADS

Hi,

please add a comment like this to inform users why the package is not 
available:

comment "i7z needs a toolchain w/ threads"
	depends on !BR2_TOOLCHAIN_HAS_THREADS

Regards, Bernd

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

* [Buildroot] [PATCH v3] i7z: new package
  2016-04-27  9:36       ` Bernd Kuhls
@ 2016-04-27 13:12         ` Vincent Stehlé
  2016-04-27 20:14           ` Thomas Petazzoni
  0 siblings, 1 reply; 11+ messages in thread
From: Vincent Stehlé @ 2016-04-27 13:12 UTC (permalink / raw)
  To: buildroot

"A better i7 (and now i3, i5) reporting tool for Linux."

i7z can print out the C-states and temperature for i3, i5 and i7 based Core
processors from Intel (including Nehalems, Sandy Bridge and Ivy Bridge).

https://github.com/ajaiantilal/i7z

Signed-off-by: Vincent Stehl? <vincent.stehle@intel.com>
Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
---


Date: Wed, 27 Apr 2016 11:36:37 +0200
From: Bernd Kuhls <bernd.kuhls@t-online.de>
> please add a comment like this to inform users why the package is not
> available:

Hi Bernd,

Good idea, thanks. Here it is!

Vincent.


Changes in v3 after Bernd's review:
- Add a menu comment about dependency on toolchain with threads

Changes in v2 after Bernd's review:
- Change URL
- Depend on pthread


 package/Config.in     |  1 +
 package/i7z/Config.in | 17 +++++++++++++++++
 package/i7z/i7z.hash  |  2 ++
 package/i7z/i7z.mk    | 22 ++++++++++++++++++++++
 4 files changed, 42 insertions(+)
 create mode 100644 package/i7z/Config.in
 create mode 100644 package/i7z/i7z.hash
 create mode 100644 package/i7z/i7z.mk

diff --git a/package/Config.in b/package/Config.in
index e860f72..2967244 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -387,6 +387,7 @@ endif
 	source "package/hwdata/Config.in"
 	source "package/hwloc/Config.in"
 	source "package/i2c-tools/Config.in"
+	source "package/i7z/Config.in"
 	source "package/input-event-daemon/Config.in"
 	source "package/input-tools/Config.in"
 	source "package/intel-microcode/Config.in"
diff --git a/package/i7z/Config.in b/package/i7z/Config.in
new file mode 100644
index 0000000..5c7803b
--- /dev/null
+++ b/package/i7z/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_I7Z
+	bool "i7z"
+	depends on BR2_i386 || BR2_x86_64
+	depends on BR2_TOOLCHAIN_HAS_THREADS
+	select BR2_PACKAGE_NCURSES
+	help
+	  "A better i7 (and now i3, i5) reporting tool for Linux."
+
+	  i7z can print out the C-states and temperature for i3, i5 and i7
+	  based Core processors from Intel (including Nehalems, Sandy Bridge
+	  and Ivy Bridge).
+
+	  https://github.com/ajaiantilal/i7z
+
+comment "i7z needs a toolchain w/ threads"
+	depends on BR2_i386 || BR2_x86_64
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/i7z/i7z.hash b/package/i7z/i7z.hash
new file mode 100644
index 0000000..1bcf2c6
--- /dev/null
+++ b/package/i7z/i7z.hash
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256 e127bddf850e7febd39cef2d2b13dca5fe19cc2a1bb1099d72b683be5d8bd1c0 i7z-5023138d7c35c4667c938b853e5ea89737334e92.tar.gz
diff --git a/package/i7z/i7z.mk b/package/i7z/i7z.mk
new file mode 100644
index 0000000..e21fd9f
--- /dev/null
+++ b/package/i7z/i7z.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# i7z
+#
+################################################################################
+
+I7Z_VERSION = 5023138d7c35c4667c938b853e5ea89737334e92
+I7Z_SITE = $(call github,ajaiantilal,i7z,$(I7Z_VERSION))
+I7Z_LICENSE = GPLv2
+I7Z_LICENSE_FILES = COPYING
+I7Z_DEPENDENCIES = ncurses
+
+define I7Z_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define I7Z_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \
+		DESTDIR="$(TARGET_DIR)"
+endef
+
+$(eval $(generic-package))
-- 
2.8.0.rc3

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

* [Buildroot] [PATCH v3] i7z: new package
  2016-04-27 13:12         ` [Buildroot] [PATCH v3] " Vincent Stehlé
@ 2016-04-27 20:14           ` Thomas Petazzoni
  2016-04-27 20:56             ` Peter Korsgaard
  0 siblings, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2016-04-27 20:14 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed, 27 Apr 2016 15:12:44 +0200, Vincent Stehl? wrote:
> "A better i7 (and now i3, i5) reporting tool for Linux."
> 
> i7z can print out the C-states and temperature for i3, i5 and i7 based Core
> processors from Intel (including Nehalems, Sandy Bridge and Ivy Bridge).
> 
> https://github.com/ajaiantilal/i7z
> 
> Signed-off-by: Vincent Stehl? <vincent.stehle@intel.com>
> Cc: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---

Applied to master, thanks.

However, I don't know if you had a look at the source code itself. But
it is really truly horrible. I think I had never seen a function taking
34 arguments, so much code WRITTEN ALMOST ENTIRELY IN CAPS and
generally such an atrocity. And I'm used to looking at vendor code in
Linux BSPs, so I'm somewhat used to all sort of atrocities.

  https://github.com/ajaiantilal/i7z/blob/master/i7z_Dual_Socket.c

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

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

* [Buildroot] [PATCH v3] i7z: new package
  2016-04-27 20:14           ` Thomas Petazzoni
@ 2016-04-27 20:56             ` Peter Korsgaard
  0 siblings, 0 replies; 11+ messages in thread
From: Peter Korsgaard @ 2016-04-27 20:56 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

Hi,

 > However, I don't know if you had a look at the source code itself. But
 > it is really truly horrible. I think I had never seen a function taking
 > 34 arguments, so much code WRITTEN ALMOST ENTIRELY IN CAPS and
 > generally such an atrocity. And I'm used to looking at vendor code in
 > Linux BSPs, so I'm somewhat used to all sort of atrocities.

 >   https://github.com/ajaiantilal/i7z/blob/master/i7z_Dual_Socket.c

Argh, my eyes! :/

-- 
Bye, Peter Korsgaard

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

end of thread, other threads:[~2016-04-27 20:56 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-26 14:21 [Buildroot] [PATCH] i7z: new package Vincent Stehlé
2016-04-26 14:55 ` Bernd Kuhls
2016-04-27  7:39   ` Vincent Stehlé
2016-04-27  8:05     ` Thomas Petazzoni
2016-04-26 15:17 ` Bernd Kuhls
2016-04-27  8:13   ` Vincent Stehlé
2016-04-27  9:25     ` [Buildroot] [PATCH v2] " Vincent Stehlé
2016-04-27  9:36       ` Bernd Kuhls
2016-04-27 13:12         ` [Buildroot] [PATCH v3] " Vincent Stehlé
2016-04-27 20:14           ` Thomas Petazzoni
2016-04-27 20:56             ` Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.