mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-28 01:47:19 +01:00
netmode: allow to build without dm-service
This commit is contained in:
parent
b806bfbece
commit
cf73734c0a
1 changed files with 9 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ include $(TOPDIR)/feeds/iopsys/bbfdm/bbfdm.mk
|
|||
define Package/netmode
|
||||
CATEGORY:=Utilities
|
||||
TITLE:=Network Modes and Utils
|
||||
DEPENDS:=+dm-service
|
||||
DEPENDS:=+NETMODE_TR181_SUPPORT:dm-service
|
||||
endef
|
||||
|
||||
define Package/netmode/description
|
||||
|
|
@ -30,6 +30,12 @@ define Package/$(PKG_NAME)/config
|
|||
depends on PACKAGE_netmode
|
||||
string "Vendor Extension used for netmode datamodel"
|
||||
default ""
|
||||
config NETMODE_TR181_SUPPORT
|
||||
depends on PACKAGE_netmode
|
||||
bool "Enable TR-181 datamodel support"
|
||||
default y
|
||||
help
|
||||
Enable TR-181 datamodel integration for netmode.
|
||||
endef
|
||||
|
||||
ifeq ($(CONFIG_NETMODE_VENDOR_PREFIX),"")
|
||||
|
|
@ -46,8 +52,10 @@ define Package/netmode/install
|
|||
$(INSTALL_DIR) $(1)/lib
|
||||
$(CP) ./files/etc/* $(1)/etc/
|
||||
$(CP) ./files/lib/* $(1)/lib/
|
||||
ifeq ($(CONFIG_NETMODE_TR181_SUPPORT),y)
|
||||
$(BBFDM_REGISTER_SERVICES) -v ${VENDOR_PREFIX} ./bbfdm_service.json $(1) $(PKG_NAME)
|
||||
$(BBFDM_INSTALL_MS_DM) -v ${VENDOR_PREFIX} ./files/datamodel.json $(1) $(PKG_NAME)
|
||||
endif
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage,netmode))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue