From 9f54857be0e61a1b345ac2199573c6479491ccbb Mon Sep 17 00:00:00 2001 From: Vivek Kumar Dutta Date: Fri, 31 Jan 2025 14:25:27 +0530 Subject: [PATCH] timemngr: package specific vendor extension --- timemngr/Config.in | 4 ++++ timemngr/Makefile | 10 ++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/timemngr/Config.in b/timemngr/Config.in index 980dbbdec..8c0f4279b 100644 --- a/timemngr/Config.in +++ b/timemngr/Config.in @@ -32,4 +32,8 @@ config TIMEMNGR_VENDOR_EXTENSIONS bool "Iopsys vendor extensions for Device.Time." depends on PACKAGE_timemngr default y + +config TIMEMNGR_VENDOR_PREFIX + string "Package specific datamodel Vendor Prefix for TR181 extensions" + default "" endif diff --git a/timemngr/Makefile b/timemngr/Makefile index 9d5e27183..01316e879 100644 --- a/timemngr/Makefile +++ b/timemngr/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=timemngr -PKG_VERSION:=1.1.5 +PKG_VERSION:=1.1.6 LOCAL_DEV:=0 ifneq ($(LOCAL_DEV),1) @@ -50,7 +50,13 @@ define Build/Prepare endef endif -TARGET_CFLAGS += -DBBF_VENDOR_PREFIX=\\\"$(CONFIG_BBF_VENDOR_PREFIX)\\\" +ifeq ($(CONFIG_TIMEMNGR_VENDOR_PREFIX),"") +VENDOR_PREFIX = $(CONFIG_BBF_VENDOR_PREFIX) +else +VENDOR_PREFIX = $(CONFIG_TIMEMNGR_VENDOR_PREFIX) +endif + +TARGET_CFLAGS += -DBBF_VENDOR_PREFIX=\\\"$(VENDOR_PREFIX)\\\" define Package/$(PKG_NAME)/install $(INSTALL_DIR) $(1)/etc/timemngr/