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
:=a38a7bf3242aad607f50f57b988bc87c
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/ltq-tapidemo
24 TITLE
:=TAPIdemo application for Lantiq boards
25 URL
:=http
://www.lantiq.com
/
26 DEPENDS
:=+kmod-ltq-tapi
+kmod-ltq-vmmc
27 MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
31 define Package
/ltq-tapidemo
/description
32 Voice Access mini-PBX Demo Application
35 define Package
/ltq-tapidemo
/config
36 source
"$(SOURCE)/Config.in"
42 --enable-kernelincl
="$(LINUX_DIR)/include" \
43 --with-drvincl
="$(STAGING_DIR)/usr/include" \
44 $(call autoconf_bool
,CONFIG_VOICE_CPE_TAPI_QOS
,qos
) \
45 $(call autoconf_bool
,CONFIG_VOICE_CPE_TAPIDEMO_FAX_T
,fax-t38
) \
49 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY50712
),y
)
50 CONFIGURE_ARGS
+= --enable-boardname
=EASY50712
52 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY50712_V3
),y
)
53 CONFIGURE_ARGS
+= --enable-boardname
=EASY50712_V3
55 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY508xx
),y
)
56 CONFIGURE_ARGS
+= --enable-boardname
=EASY508XX
58 ifeq ($(CONFIG_VOICE_CPE_TAPIDEMO_BOARD_EASY80910
),y
)
59 CONFIGURE_ARGS
+= --enable-boardname
=EASY508XX
62 define Package
/ltq-tapidemo
/install
63 $(INSTALL_DIR
) $(1)/usr
/sbin
$(1)/etc
/init.d
/
64 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/tapidemo
$(1)/usr
/sbin
65 $(INSTALL_BIN
) .
/files
/bringup_tapidemo
$(1)/etc
/init.d
/tapidemo
68 $(eval
$(call BuildPackage
,ltq-tapidemo
))