mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
#
|
|
# Copyright (C) 2018 IOPSYS Software Solutions AB
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=endptmngr
|
|
PKG_VERSION:=0.6
|
|
|
|
LOCAL_DEV=0
|
|
ifneq ($(LOCAL_DEV),1)
|
|
PKG_SOURCE_PROTO:=git
|
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/endptmngr.git
|
|
PKG_SOURCE_VERSION:=0901382048bb7ce01fc1767fef75e54692f56743
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
|
PKG_MIRROR_HASH:=skip
|
|
endif
|
|
|
|
PKG_LICENSE:=PROPRIETARY
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
export BUILD_DIR
|
|
|
|
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
# All config variable that are passed to the make invocation, directly or
|
|
# indirectly. This ensures that the package is rebuilt on config-changes.
|
|
PKG_CONFIG_DEPENDS:=CONFIG_TARGET_BOARD
|
|
|
|
export CONFIG_BRCM_SDK_VER_504040
|
|
export CONFIG_BCM_CHIP_ID
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/endptmngr/config
|
|
source "$(SOURCE)/Config.in"
|
|
endef
|
|
|
|
define Package/endptmngr
|
|
CATEGORY:=Utilities
|
|
TITLE:=Broadcom Voice Endpoint Manager
|
|
URL:=
|
|
DEPENDS:= +libubox +ubus +libpicoevent +uci +bcmkernel @TARGET_HAS_VOICE @BCM_VOICE
|
|
endef
|
|
|
|
define Package/endptmngr/description
|
|
endptmngr
|
|
endef
|
|
|
|
ifeq ($(LOCAL_DEV),1)
|
|
define Build/Prepare
|
|
rsync -av --exclude=.* ~/git/endptmngr/* $(PKG_BUILD_DIR)/
|
|
endef
|
|
endif
|
|
|
|
TARGET_CFLAGS += \
|
|
-Wall \
|
|
-Werror
|
|
|
|
define Package/endptmngr/install
|
|
$(CP) ./files/* $(1)/
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/endptmngr $(1)/usr/sbin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,endptmngr))
|