You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2019 Lucian Cristain <lucian.cristian@gmail.com>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=powertop
  9. PKG_VERSION:=2.10
  10. PKG_RELEASE:=5
  11. PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://01.org/sites/default/files/downloads/
  13. PKG_HASH:=d3b7459eaba7d01c8841dd33a3b4d369416c01e9bd8951b0d88234cf18fe4a75
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
  15. PKG_MAINTAINER:=Lucian Cristain <lucian.cristian@gmail.com>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/nls.mk
  21. define Package/powertop
  22. SECTION:=utils
  23. CATEGORY:=Utilities
  24. DEPENDS:=$(INTL_DEPENDS) +libstdcpp +libpci +libncursesw +libnl-genl
  25. TITLE:=Power consumption monitor
  26. URL:=https://01.org/powertop
  27. endef
  28. define Package/powertop/description
  29. PowerTOP is a Linux tool to diagnose issues with power consumption
  30. and power management.
  31. endef
  32. TARGET_LDFLAGS += \
  33. $(if $(INTL_FULL),-lintl) \
  34. $(if $(CONFIG_USE_GLIBC),-lm) \
  35. $(if $(CONFIG_USE_GLIBC),-lpthread)
  36. define Package/powertop/install
  37. $(INSTALL_DIR) $(1)/usr/sbin
  38. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/powertop \
  39. $(1)/usr/sbin/
  40. endef
  41. $(eval $(call BuildPackage,powertop))