87469542ff39fd108f8e69f1e6197bf1ed590f41
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-tapi / Makefile
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
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_NAME:=drv_tapi
12 PKG_VERSION:=3.13.0
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=drv_tapi-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
17 PKG_MD5SUM:=edb43b494832c540cc035493d18db58f
18 PKG_MAINTAINER:=John Crispin <john@phrozen.org>
19
20 PKG_USE_MIPS16:=0
21 PKG_CHECK_FORMAT_SECURITY:=0
22 PKG_FIXUP:=autoreconf
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define KernelPackage/ltq-tapi
27 SUBMENU:=Voice over IP
28 TITLE:=Lantiq TAPI subsystem
29 URL:=http://www.lantiq.com/
30 DEPENDS:=@(TARGET_lantiq_falcon||TARGET_lantiq_xway) +kmod-ltq-ifxos
31 FILES:=$(PKG_BUILD_DIR)/src/drv_tapi.ko
32 AUTOLOAD:=$(call AutoLoad,20,drv_tapi)
33 endef
34
35 define KernelPackage/ltq-tapi/description
36 Voice Subsystem Telephony API High Level Driver
37 endef
38
39 define KernelPackage/ltq-tapi/config
40 source "$(SOURCE)/Config.in"
41 endef
42
43 CONFIGURE_ARGS += \
44 ARCH=$(LINUX_KARCH) \
45 --enable-linux-26 \
46 --enable-kernelbuild="$(LINUX_DIR)" \
47 --enable-kernelincl="$(LINUX_DIR)/include" \
48 --with-ifxos-incl=$(STAGING_DIR)/usr/include/ifxos \
49 $(call autoconf_bool,CONFIG_IFX_DRV_TAPI_EVENT_LOGGER,el-debug) \
50 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_FAX,fax t38) \
51 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_CID,cid) \
52 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_DECT,dect) \
53 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_KPI,kpi) \
54 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_QOS,qos) \
55 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_LT_GR909,lt) \
56 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_STATISTICS,statistics) \
57 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_METERING,metering) \
58 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_HDLC,hdlc) \
59 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_TRACES,trace) \
60 $(call autoconf_bool,CONFIG_VOICE_CPE_TAPI_LINUX_HOTPLUG,hotplug)
61
62 define Build/InstallDev
63 $(INSTALL_DIR) $(1)/usr/include/drv_tapi
64 $(CP) --dereference $(PKG_BUILD_DIR)/include/* $(1)/usr/include/drv_tapi
65 (cd $(1)/usr/include/drv_tapi && ln -s . include && ln -s ../ifxos/ifx_types.h .)
66 endef
67
68 $(eval $(call KernelPackage,ltq-tapi))