mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
periodicstats: Support CalculationMode
This commit is contained in:
parent
1f3c68ad79
commit
9d777db805
2 changed files with 17 additions and 2 deletions
9
periodicstats/Config.in
Normal file
9
periodicstats/Config.in
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
if PACKAGE_periodicstats
|
||||
config PERIODICSTAT_INTERNAL_SAMPLING_RATE
|
||||
int "Number of times statistics will be measured within a sample interval"
|
||||
range 3 10
|
||||
default 3
|
||||
depends on PACKAGE_periodicstats
|
||||
help
|
||||
This value must be in range of 3 to 10. (default 3)
|
||||
endif
|
||||
|
|
@ -5,13 +5,13 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=periodicstats
|
||||
PKG_VERSION:=1.5.7
|
||||
PKG_VERSION:=1.5.8
|
||||
|
||||
LOCAL_DEV:=0
|
||||
ifneq ($(LOCAL_DEV),1)
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/bbf/periodicstats.git
|
||||
PKG_SOURCE_VERSION:=28bea5be686013af0ba8e54cf4871f10015e4b06
|
||||
PKG_SOURCE_VERSION:=ce9ca3fdb37d6503eecdf769179eed77dd7016fb
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
PKG_MIRROR_HASH:=skip
|
||||
endif
|
||||
|
|
@ -33,6 +33,12 @@ define Package/periodicstats/description
|
|||
Manage periodic statistics
|
||||
endef
|
||||
|
||||
define Package/periodicstats/config
|
||||
source "$(SOURCE)/Config.in"
|
||||
endef
|
||||
|
||||
TARGET_CFLAGS += -DINTERNAL_SAMPLING_RATE=$(CONFIG_PERIODICSTAT_INTERNAL_SAMPLING_RATE)
|
||||
|
||||
ifeq ($(LOCAL_DEV),1)
|
||||
define Build/Prepare
|
||||
$(CP) -rf ~/git/periodicstats/* $(PKG_BUILD_DIR)/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue