blob: 8c7e78fd94f3db3f3e3f606d60be78556c75c55b [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "Power usage tool"
2DESCRIPTION = "Linux tool to diagnose issues with power consumption and power management."
Andrew Geissler82c905d2020-04-13 13:39:40 -05003HOMEPAGE = "https://01.org/powertop/"
4BUGTRACKER = "https://app.devzing.com/powertopbugs/bugzilla"
Andrew Geissler4ed12e12020-06-05 18:00:41 -05005DEPENDS = "ncurses libnl pciutils autoconf-archive"
Brad Bishop19323692019-04-05 15:28:33 -04006LICENSE = "GPLv2"
7LIC_FILES_CHKSUM = "file://COPYING;md5=12f884d2ae1ff87c09e5b7ccc2c4ca7e"
8
Andrew Geisslerc182c622020-05-15 14:13:32 -05009SRC_URI = "git://github.com/fenrus75/powertop;protocol=https \
Brad Bishop08902b02019-08-20 09:16:51 -040010 file://0001-wakeup_xxx.h-include-limits.h.patch \
Brad Bishop19323692019-04-05 15:28:33 -040011"
Andrew Geisslerd25ed322020-06-27 00:28:28 -050012SRCREV = "184cee06b2d64679bae5f806fe0a218827fdde99"
Brad Bishop19323692019-04-05 15:28:33 -040013
Andrew Geisslerc182c622020-05-15 14:13:32 -050014S = "${WORKDIR}/git"
Brad Bishop19323692019-04-05 15:28:33 -040015
Andrew Geissler4ed12e12020-06-05 18:00:41 -050016inherit autotools gettext pkgconfig bash-completion
Brad Bishop19323692019-04-05 15:28:33 -040017
Brad Bishop19323692019-04-05 15:28:33 -040018# we do not want libncursesw if we can
19do_configure_prepend() {
20 # configure.ac checks for delwin() in "ncursesw ncurses" so let's drop first one
21 sed -i -e "s/ncursesw//g" ${S}/configure.ac
22 mkdir -p ${B}/src/tuning/
Andrew Geisslerc182c622020-05-15 14:13:32 -050023 echo "${PV}" > ${S}/version-long
24 echo "${PV}" > ${S}/version-short
Andrew Geissler4ed12e12020-06-05 18:00:41 -050025 cp ${STAGING_DATADIR}/aclocal/ax_require_defined.m4 ${S}/m4/
Brad Bishop19323692019-04-05 15:28:33 -040026}
27
28inherit update-alternatives
29ALTERNATIVE_${PN} = "powertop"
30ALTERNATIVE_TARGET[powertop] = "${sbindir}/powertop"
31ALTERNATIVE_LINK_NAME[powertop] = "${sbindir}/powertop"
32ALTERNATIVE_PRIORITY = "100"