From 9d777db805fe2bbe9a9d1c39f5692e560fc57d4d Mon Sep 17 00:00:00 2001 From: Suvendhu Hansa Date: Wed, 24 Apr 2024 09:39:17 +0000 Subject: [PATCH] periodicstats: Support CalculationMode --- periodicstats/Config.in | 9 +++++++++ periodicstats/Makefile | 10 ++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 periodicstats/Config.in diff --git a/periodicstats/Config.in b/periodicstats/Config.in new file mode 100644 index 000000000..71448a206 --- /dev/null +++ b/periodicstats/Config.in @@ -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 diff --git a/periodicstats/Makefile b/periodicstats/Makefile index 77ae7b79a..6788a5440 100644 --- a/periodicstats/Makefile +++ b/periodicstats/Makefile @@ -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)/