mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 3/3] powertop: add new package
Date: Wed, 2 Apr 2014 12:38:27 +0200	[thread overview]
Message-ID: <20140402103826.GA1779@x61s.campuswlan.hs-rm.de> (raw)
In-Reply-To: <20140402091736.GH31118@pengutronix.de>

On Wed, Apr 02, 2014 at 11:17:36AM +0200, Michael Olbrich wrote:
> On Tue, Apr 01, 2014 at 06:02:35PM +0200, Alexander Aring wrote:
> > This patch adds the new powertop package with pci support.
> > 
> > Some notice by adding this package:
> > The pci support needs the pciutils package which provides the libpci.
> > This is the reason why we need a depends on !BUSYBOX_LSPCI there. The
> > pciutils packages can't be installed if BUSYBOX_LSPCI is selected.
> 
> Just squash this in the first patch please.
ok.

> 
> > Signed-off-by: Alexander Aring <alex.aring@gmail.com>
> > ---
> >  rules/powertop.in   | 42 ++++++++++++++++++++++++++++++++++++++
> >  rules/powertop.make | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++
> >  2 files changed, 100 insertions(+)
> >  create mode 100644 rules/powertop.in
> >  create mode 100644 rules/powertop.make
> > 
> > diff --git a/rules/powertop.in b/rules/powertop.in
> > new file mode 100644
> > index 0000000..b1a4dbe
> > --- /dev/null
> > +++ b/rules/powertop.in
> > @@ -0,0 +1,42 @@
> > +## SECTION=debug_tools
> > +
> > +menuconfig POWERTOP
> > +	tristate
> > +	prompt "powertop                      "
> > +	select LIBNL3
> > +	select NCURSES
> > +	select PCIUTILS		if POWERTOP_PCI_SUPPORT
> > +	select PCIUTILS_LIBPCI	if POWERTOP_PCI_SUPPORT
> > +	depends on !BUSYBOX_POWERTOP || ALLYES
> > +	help
> > +	  PowerTOP is a Linux tool that finds the software
> > +	  component(s) that make your laptop use more power than
> > +	  necessary while it is idle. As of Linux kernel version
> > +	  2.6.21, the kernel no longer has a fixed 1000Hz timer
> > +	  tick. This will (in theory) give a huge power savings
> > +	  because the CPU stays in low power mode for longer periods
> > +	  of time during system idle.
> > +
> > +	  However... there are many things that can ruin the party,
> > +	  both inside the kernel and in userspace. PowerTOP combines
> > +	  various sources of information from the kernel into one
> > +	  convenient screen so that you can see how well your system
> > +	  doing, and which components are the biggest problem.
> > +
> > +if POWERTOP
> > +
> > +config POWERTOP_PCI_SUPPORT
> > +	bool
> > +	prompt "pci support"
> > +	depends on !BUSYBOX_LSPCI || ALLYES
> > +	help
> > +	  This adds powertop support for the PCI bus. Should only be
> > +	  enabled if you have PCI support.
> > +
> > +comment "BusyBox' lspci is selected!"
> > +        depends on BUSYBOX_LSPCI
> 
> See my comment about that in my other mail
ok.

> 
> > +
> > +endif
> > +
> > +comment "BusyBox' powertop is selected!"
> > +        depends on BUSYBOX_POWERTOP
> > diff --git a/rules/powertop.make b/rules/powertop.make
> > new file mode 100644
> > index 0000000..a5554bc
> > --- /dev/null
> > +++ b/rules/powertop.make
> > @@ -0,0 +1,58 @@
> > +# -*-makefile-*-
> > +#
> > +# Copyright (C) 2009 by Marc Kleine-Budde <mkl@pengutronix.de>
> > +#		2014 by Alexander Aring <aar@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_POWERTOP) += powertop
> > +
> > +#
> > +# Paths and names
> > +#
> > +POWERTOP_VERSION	:= 2.5
> > +POWERTOP_MD5		:= 806bbcbd44fcea1f807c9582fc1f7d3e
> > +POWERTOP		:= powertop-$(POWERTOP_VERSION)
> > +POWERTOP_SUFFIX		:= tar.gz
> > +POWERTOP_URL		:= https://01.org/sites/default/files/downloads/powertop/$(POWERTOP).$(POWERTOP_SUFFIX)
> > +POWERTOP_SOURCE		:= $(SRCDIR)/$(POWERTOP).$(POWERTOP_SUFFIX)
> > +POWERTOP_DIR		:= $(BUILDDIR)/$(POWERTOP)
> > +POWERTOP_LICENSE	:= GPLv2
> > +
> > +# ----------------------------------------------------------------------------
> > +# Prepare
> > +# ----------------------------------------------------------------------------
> > +
> > +#
> > +# autoconf
> > +#
> > +POWERTOP_CONF_TOOL	:= autoconf
> > +POWERTOP_CONF_OPT	:= $(CROSS_AUTOCONF_USR)
> 
> No usefull configure options? Remove this line in that case.
> 
Yes no useful options here, useful options would be a --disable-pci or
--enable-pci explicit, but they search for pkgconfig files and enabled
it if they found some one. I think that's ok.

Thanks.

- Alex

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2014-04-02 10:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-01 16:02 [ptxdist] [PATCH 0/3] powertop: add new version with new features Alexander Aring
2014-04-01 16:02 ` [ptxdist] [PATCH 1/3] powertop: remove powertop package Alexander Aring
2014-04-01 16:02 ` [ptxdist] [PATCH 2/3] pciutils: bump version and cleanup Alexander Aring
2014-04-02  9:15   ` Michael Olbrich
2014-04-02 10:35     ` Alexander Aring
2014-04-03  8:29     ` Alexander Aring
2014-04-03  8:48       ` Michael Olbrich
2014-04-01 16:02 ` [ptxdist] [PATCH 3/3] powertop: add new package Alexander Aring
2014-04-02  9:17   ` Michael Olbrich
2014-04-02 10:38     ` Alexander Aring [this message]
2014-04-02 13:45       ` Michael Olbrich
2014-04-02 14:00         ` Alexander Aring
2014-04-07  8:03 ` [ptxdist] [PATCH 0/3] powertop: add new version with new features Juergen Beisert
2014-04-07 14:17   ` Alexander Aring

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=20140402103826.GA1779@x61s.campuswlan.hs-rm.de \
    --to=alex.aring@gmail.com \
    --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