obuspa: config option for cwmp specific datamodels

This commit is contained in:
Vivek Kumar Dutta 2024-12-03 09:59:48 +05:30
parent 84ac60736f
commit 386412064c
2 changed files with 10 additions and 1 deletions

View file

@ -55,3 +55,10 @@ config OBUSPA_SESSION_EXTENSION
Adds Device.LocalAgent.X_IOPSYS_EU_Session. object to simulate
a CWMP like session
config OBUSPA_CWMP_DATAMODEL_SUPPORT
bool "Adds USPAgent, STOMP and MQTT dm from CWMP"
default n
help
Expose Device.USPAgent., Device.STOMP., Device.MQTT.Client. objects over
ubus to make it available to bbfdm for CWMP access

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=9.0.0.17
PKG_VERSION:=9.0.0.18
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
@ -127,7 +127,9 @@ define Package/obuspa/install
$(INSTALL_BIN) ./files/etc/uci-defaults/92-obuspa_firewall $(1)/etc/uci-defaults/
$(INSTALL_BIN) ./files/etc/firewall.usp $(1)/etc/
$(INSTALL_BIN) ./files/etc/udhcpc.user.d/udhcpc_obuspa_opt125.user $(1)/etc/udhcpc.user.d/udhcpc_obuspa_opt125.user
ifeq ($(CONFIG_OBUSPA_CWMP_DATAMODEL_SUPPORT),y)
$(BBFDM_INSTALL_MS_DM) $(PKG_BUILD_DIR)/libuspagentdm.so $(1) $(PKG_NAME)
endif
ifeq ($(CONFIG_OBUSPA_ENABLE_TEST_CONTROLLER),y)
$(INSTALL_BIN) ./files/etc/uci-defaults/54-test-usp-remote $(1)/etc/uci-defaults/
endif