2015-03-19 06:40:21 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# powertop
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2017-05-11 23:22:17 +02:00
|
|
|
POWERTOP_VERSION = 2.9
|
2015-09-28 18:10:31 +02:00
|
|
|
POWERTOP_SITE = https://01.org/sites/default/files/downloads/powertop
|
2017-05-11 23:22:17 +02:00
|
|
|
POWERTOP_SOURCE = powertop-v$(POWERTOP_VERSION).tar.gz
|
2017-07-03 23:14:08 +02:00
|
|
|
POWERTOP_DEPENDENCIES = pciutils ncurses libnl host-pkgconf \
|
|
|
|
$(TARGET_NLS_DEPENDENCIES)
|
2017-03-30 15:43:32 +02:00
|
|
|
POWERTOP_LICENSE = GPL-2.0
|
2015-03-19 06:40:21 +01:00
|
|
|
POWERTOP_LICENSE_FILES = COPYING
|
2017-07-03 23:14:08 +02:00
|
|
|
POWERTOP_CONF_ENV = LIBS=$(TARGET_NLS_LIBS)
|
2017-10-18 20:03:57 +02:00
|
|
|
# 0001-dont-force-stack-smashing-protection.patch
|
|
|
|
POWERTOP_AUTORECONF = YES
|
2015-03-19 06:40:21 +01:00
|
|
|
|
2015-03-27 17:01:36 +01:00
|
|
|
# Help powertop at finding the right ncurses library depending on
|
|
|
|
# which one is available.
|
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
|
|
|
|
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncursesw"
|
|
|
|
else
|
|
|
|
POWERTOP_CONF_ENV += ac_cv_search_delwin="-lncurses"
|
|
|
|
endif
|
|
|
|
|
2015-03-19 06:40:21 +01:00
|
|
|
$(eval $(autotools-package))
|