source: trunk/package/ltq-tapi/Makefile @ 27498

Last change on this file since 27498 was 27498, checked in by blogic, 5 years ago

ltq-tapi/vmmc were build on none lantiq targets due to bad builddepends of pjsip

File size: 2.2 KB
Line 
1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_NAME:=drv_tapi
12PKG_VERSION:=3.13.0
13PKG_RELEASE:=3
14
15PKG_SOURCE:=drv_tapi-$(PKG_VERSION).tar.bz2
16PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
17PKG_MD5SUM:=edb43b494832c540cc035493d18db58f
18
19include $(INCLUDE_DIR)/package.mk
20
21define KernelPackage/ltq-tapi
22  SUBMENU:=Voice over IP
23  TITLE:=Lantiq TAPI subsystem
24  URL:=http://www.lantiq.com/
25  DEPENDS:=+kmod-ltq-ifxos @TARGET_lantiq
26  FILES:=$(PKG_BUILD_DIR)/src/drv_tapi.ko
27  AUTOLOAD:=$(call AutoLoad,20,drv_tapi)
28  MAINTAINER:=John Crispin <blogic@openwrt.org>
29endef
30
31define KernelPackage/ltq-tapi/description
32        Voice Subsystem Telephony API High Level Driver
33endef
34
35define KernelPackage/ltq-tapi/config
36        source "$(SOURCE)/Config.in"
37endef
38
39CONFIGURE_ARGS += \
40        ARCH=$(LINUX_KARCH) \
41        --enable-linux-26 \
42        --enable-kernelbuild="$(LINUX_DIR)" \
43        --enable-kernelincl="$(LINUX_DIR)/include" \
44        --with-ifxos-incl=$(STAGING_DIR)/usr/include/ifxos \
45        $(call autoconf_bool,CONFIG_IFX_DRV_TAPI_EVENT_LOGGER,el-debug) \
46        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_FAX,fax t38) \
47        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_CID,cid) \
48        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_DECT,dect) \
49        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_KPI,kpi) \
50        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_QOS,qos) \
51        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_LT_GR909,lt) \
52        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_STATISTICS,statistics) \
53        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_METERING,metering) \
54        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_HDLC,hdlc) \
55        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_TRACES,trace) \
56        $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_LINUX_HOTPLUG,hotplug)
57
58define Build/Configure
59        (cd $(PKG_BUILD_DIR); aclocal && autoconf && automake)
60        $(call Build/Configure/Default)
61endef
62
63define Build/InstallDev
64        $(INSTALL_DIR) $(1)/usr/include/drv_tapi
65        $(CP) --dereference $(PKG_BUILD_DIR)/include/* $(1)/usr/include/drv_tapi
66        (cd $(1)/usr/include/drv_tapi && ln -s . include && ln -s ../ifxos/ifx_types.h .)
67endef
68
69$(eval $(call KernelPackage,ltq-tapi))
Note: See TracBrowser for help on using the repository browser.