2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://mirror2.openwrt.org
/sources
17 PKG_MD5SUM
:=c970becc46b2935fb9e18f795d4e8469
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/ltq-tapidemo
27 TITLE
:=TAPIdemo application for Lantiq boards
28 URL
:=http
://www.lantiq.com
/
29 DEPENDS
:=+kmod-ltq-tapi
+kmod-ltq-vmmc
30 MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
34 define Package
/ltq-tapidemo
/description
35 Voice Access mini-PBX Demo Application
38 define Package
/ltq-tapidemo
/config
39 source
"$(SOURCE)/Config.in"
45 --enable-kernelincl
="$(LINUX_DIR)/include" \
46 --with-drvincl
="$(STAGING_DIR)/usr/include" \
47 --with-ifxos-incl
=$(STAGING_DIR
)/usr
/include/ifxos \
48 --with-ifxos-lib
=$(STAGING_DIR
)/usr
/lib \
49 $(call autoconf_bool
,CONFIG_VOICE_CPE_TAPI_QOS
,qos
) \
50 $(call autoconf_bool
,CONFIG_VOICE_CPE_TAPIDEMO_FAX_T
,fax-t38
) \
54 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY50712
),y
)
55 CONFIGURE_ARGS
+= --enable-boardname
=EASY50712
57 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY50712_V3
),y
)
58 CONFIGURE_ARGS
+= --enable-boardname
=EASY50712_V3
60 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY508xx
),y
)
61 CONFIGURE_ARGS
+= --enable-boardname
=EASY508XX
63 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY80910
),y
)
64 CONFIGURE_ARGS
+= --enable-boardname
=EASY508XX
66 ifneq ($(CONFIG_VOICE_CPE_TAPIDEMO_FW_FILE
),)
67 CONFIGURE_ARGS
+= --with-fw-file
="$(strip $(subst ",, $(CONFIG_VOICE_CPE_TAPIDEMO_FW_FILE
)))"
69 ifneq ($(CONFIG_VOICE_CPE_TAPIDEMO_BBD_FILE), "")
70 CONFIGURE_ARGS += --with-bbd-file="$(strip $(subst ",, $(CONFIG_VOICE_CPE_TAPIDEMO_BBD_FILE)))"
73 define Package
/ltq-tapidemo
/install
74 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/init.d
/
75 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/tapidemo
$(1)/usr
/sbin
76 $(INSTALL_BIN
) .
/files
/bringup_tapidemo
$(1)/etc
/init.d
/tapidemo
79 $(eval
$(call BuildPackage
,ltq-tapidemo
))