timemngr: package specific vendor extension

This commit is contained in:
Vivek Kumar Dutta 2025-01-31 14:25:27 +05:30
parent a733e610b4
commit 9f54857be0
2 changed files with 12 additions and 2 deletions

View file

@ -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

View file

@ -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/