mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-07 01:41:25 +01:00
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2023 IOPSYS
|
|
#
|
|
|
|
# Utility to install the plugin in bbfdm core path
|
|
# inputs:
|
|
# $1 => package install directory
|
|
# $2 => Plugin artifact
|
|
#
|
|
# Example:
|
|
# $(call BbfdmInstallPlugin,$(1),./files/etc/bbfdm/json/CWMPManagementServer.json)
|
|
#
|
|
define BbfdmInstallPlugin
|
|
$(INSTALL_DIR) $(1)/etc/bbfdm/plugins
|
|
$(INSTALL_DATA) $(2) $(1)/etc/bbfdm/plugins/
|
|
endef
|
|
|
|
# Utility to install the plugin in bbfdm core path with priority
|
|
# inputs:
|
|
# $1 => package install directory
|
|
# $2 => Priority of the installed plugin
|
|
# $3 => Plugin artifact
|
|
#
|
|
# Example:
|
|
# $(call BbfdmInstallPluginWithPriority,$(1),01,$(PKG_BUILD_DIR)/bbf_plugin/bulkdata.json)
|
|
#
|
|
define BbfdmInstallPluginWithPriority
|
|
$(INSTALL_DIR) $(1)/etc/bbfdm/plugins
|
|
$(INSTALL_DATA) $(3) $(1)/etc/bbfdm/plugins/$(2)_$(shell basename ${3})
|
|
endef
|
|
|
|
# Utility to install the plugin in datamodel microservice directory
|
|
# inputs:
|
|
# $1 => package install directory with micro-service directory
|
|
# $2 => Plugin artifact
|
|
#
|
|
# Example:
|
|
# $(call BbfdmInstallPluginInMicroservice,$(1)/etc/bulkdata,$(PKG_BUILD_DIR)/bbf_plugin/bulkdata.json)
|
|
#
|
|
define BbfdmInstallPluginInMicroservice
|
|
$(INSTALL_DIR) $(1)
|
|
$(INSTALL_DATA) $(2) $(1)/
|
|
endef
|
|
|
|
# Utility to install the datamodel plugin input file
|
|
# inputs:
|
|
# $1 => package install directory
|
|
# $2 => Microservice input.json path
|
|
#
|
|
# Example:
|
|
# $(call BbfdmInstallMicroServiceInputFile,$(1),./files/etc/bulkdata/input.json)
|
|
#
|
|
define BbfdmInstallMicroServiceInputFile
|
|
$(INSTALL_DIR) $(1)/etc/bbfdm/micro_services
|
|
$(INSTALL_DATA) $(2) $(1)/etc/bbfdm/micro_services/$(PKG_NAME).json
|
|
endef
|
|
|