2019-02-15 19:24:44 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2019 Lucian Cristain <lucian.cristian@gmail.com>
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=powertop
|
2022-03-21 04:21:52 +00:00
|
|
|
PKG_VERSION:=2.14
|
treewide: remove AUTORELEASE
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.
The following temporary change was made to the core:
diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))
COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))
all:
FORCE: ;
And this command used to fix affected packages:
for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/download
done
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2023-04-21 16:32:27 +00:00
|
|
|
PKG_RELEASE:=2
|
2019-02-15 19:24:44 +00:00
|
|
|
|
2022-03-21 04:21:52 +00:00
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
|
|
|
|
PKG_SOURCE_URL:=https://github.com/fenrus75/powertop
|
|
|
|
PKG_MIRROR_HASH:=9b49054a7e9684781287eb25c50003f68669e7dcad1c234573bd6a5e26474da7
|
2019-02-15 19:24:44 +00:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Lucian Cristain <lucian.cristian@gmail.com>
|
2022-03-21 04:21:52 +00:00
|
|
|
PKG_LICENSE:=GPL-2.0-only
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-02-15 19:24:44 +00:00
|
|
|
|
2022-03-31 03:23:03 +00:00
|
|
|
PKG_FIXUP:=autoreconf gettext-version
|
2019-02-15 19:24:44 +00:00
|
|
|
PKG_INSTALL:=1
|
2022-03-21 04:21:52 +00:00
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
PKG_BUILD_DEPENDS:=gettext-full/host
|
2019-02-15 19:24:44 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2019-04-09 05:39:28 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2019-02-15 19:24:44 +00:00
|
|
|
|
|
|
|
define Package/powertop
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
2021-02-23 04:58:58 +00:00
|
|
|
DEPENDS:=$(INTL_DEPENDS) +libstdcpp +libpci +libncursesw +libnl-genl
|
2019-02-15 19:24:44 +00:00
|
|
|
TITLE:=Power consumption monitor
|
|
|
|
URL:=https://01.org/powertop
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/powertop/description
|
|
|
|
PowerTOP is a Linux tool to diagnose issues with power consumption
|
|
|
|
and power management.
|
|
|
|
endef
|
|
|
|
|
2020-04-14 06:34:39 +00:00
|
|
|
TARGET_LDFLAGS += \
|
2022-03-21 04:21:52 +00:00
|
|
|
$(if $(INTL_FULL),-lintl)
|
2019-06-04 18:45:52 +00:00
|
|
|
|
2019-02-15 19:24:44 +00:00
|
|
|
define Package/powertop/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/powertop \
|
|
|
|
$(1)/usr/sbin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,powertop))
|