Makefile 2.2 KB

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