From 3cd58f18ccc6d0280f09a3390c6bc2c3beeed9a5 Mon Sep 17 00:00:00 2001 From: Grzegorz Sluja Date: Thu, 2 Feb 2023 10:40:20 +0000 Subject: [PATCH] Add a new package libvoice-airoha --- libvoice-airoha/Makefile | 58 ++++++++++++++++++++++++++++++++++++++++ voicemngr/Makefile | 2 +- 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 libvoice-airoha/Makefile diff --git a/libvoice-airoha/Makefile b/libvoice-airoha/Makefile new file mode 100644 index 000000000..76c0de24d --- /dev/null +++ b/libvoice-airoha/Makefile @@ -0,0 +1,58 @@ +# +# Copyright (C) 2022 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:=libvoice-airoha +PKG_VERSION:=0.1 +PKG_LICENSE:=PROPRIETARY +PKG_LICENSE_FILES:=LICENSE + +LOCAL_SRC_DIR:=~/git/voip/$(PKG_NAME) +LOCAL_DEV=0 +ifneq ($(LOCAL_DEV),1) +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/$(PKG_NAME).git +PKG_SOURCE_VERSION:=47849f3764c32a26e3756e527daa4f5f71ba082b +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz +PKG_MIRROR_HASH:=skip +endif + +# 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 + +LIBVOICE_PKG_BUILD_DIR := $(PKG_BUILD_DIR) + +include $(INCLUDE_DIR)/package.mk + +TARGET_CFLAGS += -Wall -Werror + +define Package/$(PKG_NAME) + CATEGORY:=Utilities + TITLE:=IOPSYS libvoice for Airoha platform + URL:= + DEPENDS:= +endef + +define Package/$(PKG_NAME)/description + Libvoice is a library that provides a uniform set of APIs and data types with hardware abstract layer for DSP/SLIC from different vendors +endef + +ifeq ($(LOCAL_DEV),1) +define Build/Prepare + rsync -av --exclude=.* $(LOCAL_SRC_DIR)/* $(PKG_BUILD_DIR)/ +endef +endif + +define Package/$(PKG_NAME)/install + # Although there is nothing needs to be installed, but the install section must NOT be empty. Otherwise the package will be skipped as below. + # WARNING: skipping libvoice-airoha -- package has no install section + $(INSTALL_DIR) $(1)/usr/lib +endef + +$(eval $(call BuildPackage,$(PKG_NAME))) + diff --git a/voicemngr/Makefile b/voicemngr/Makefile index 179e60ea1..cf9372b9e 100644 --- a/voicemngr/Makefile +++ b/voicemngr/Makefile @@ -39,7 +39,7 @@ define Package/$(PKG_NAME) TITLE:=IOPSYS Voice Manager URL:= DEPENDS:= +libubox +ubus +libpicoevent +uci +TARGET_brcmbca:bcmkernel +TARGET_brcmbca:libvoice-broadcom \ - +TARGET_ipq95xx:libvoice-d2 + +TARGET_ipq95xx:libvoice-d2 +TARGET_airoha:kmod-voip_driver +TARGET_airoha:voip_app +TARGET_airoha:libvoice-airoha endef define Package/$(PKG_NAME)/description