mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
Add support for installing default DECT FW per target. This solves the need to be able to have different default FW for different hardware architectures. For Airoha we will update the DECT FW to DSPG 4.13 build 21 RC1.
73 lines
1.7 KiB
Makefile
73 lines
1.7 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=dectmngr
|
|
PKG_RELEASE:=3
|
|
PKG_VERSION:=3.7.3
|
|
|
|
LOCAL_DEV=0
|
|
ifneq ($(LOCAL_DEV),1)
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dectmngr.git
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_VERSION:=393dfd7637fdeccc24ef286c3daec9a232896b98
|
|
PKG_MIRROR_HASH:=skip
|
|
endif
|
|
|
|
PKG_LICENSE:=PROPRIETARY
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
RSTRIP:=true
|
|
export BUILD_DIR
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/$(PKG_NAME)
|
|
CATEGORY:=Utilities
|
|
TITLE:=DECT Manager
|
|
DEPENDS:= +libubox +ubus +uci +libxml2 +libjson-c +gpiod-tools +voicemngr
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/description
|
|
DECT manager is a daemon that provides UBUS RPC objects and sends UBUS events for communication with the DECT chip.
|
|
endef
|
|
|
|
define Package/$(PKG_NAME)/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
ifeq ($(LOCAL_DEV),1)
|
|
define Build/Prepare
|
|
rsync -av --exclude=.* ~/git/voip/dectmngr/* $(PKG_BUILD_DIR)/
|
|
endef
|
|
endif
|
|
|
|
TARGET_CFLAGS += \
|
|
-Wall \
|
|
-Werror \
|
|
-I$(STAGING_DIR)/usr/include/libxml2
|
|
|
|
ifeq ($(CONFIG_ENABLE_LINE_SETTINGS_EXTENSION),y)
|
|
TARGET_CFLAGS += -DENABLE_LINE_SETTINGS_EXTENSION
|
|
endif
|
|
|
|
define Package/$(PKG_NAME)/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_DIR) $(1)/etc/dspg
|
|
$(INSTALL_DIR) $(1)/lib/upgrade/keep.d
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/app/dectmngr $(1)/usr/sbin/
|
|
$(STRIP) $(1)/usr/sbin/dectmngr
|
|
ifneq ($(CONFIG_TARGET_airoha),)
|
|
$(CP) ./firmware/airoha/* $(1)/etc/dspg/
|
|
else
|
|
$(CP) ./firmware/common/* $(1)/etc/dspg/
|
|
endif
|
|
$(CP) ./files/etc/* $(1)/etc/
|
|
$(INSTALL_DATA) ./files/lib/upgrade/keep.d/dect $(1)/lib/upgrade/keep.d/dect
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,$(PKG_NAME)))
|